summaryrefslogtreecommitdiff
path: root/src/xine-utils/xineutils.h
AgeCommit message (Collapse)Author
2011-10-10Added asprintf wrapperPetri Hintukainen
2011-10-03Prefix open_cloexec() and create_cloexec() with xine_, and add new ↵Chris Rankin
xine_socket_cloexec() function.
2011-10-01Mark simple file and socket descriptors as uninheritable.Chris Rankin
This patch creates two utility functions: int open_cloexec(pathname, flags) int create_cloexec(pathname, flags, mode) These return a file descriptor with the CLOEXEC flag set, to ensure that the descriptor is not inherited across a fork/exec operation. The sockets returned by: _x_io_tcp_connect_ipv4() _x_io_tcp_connect() now also have their CLOEXEC flag set.
2009-11-30Trim trailing space & reduce space+tab.Darren Salt
2009-01-18Remove '#include "config.h"' from all public header files.Darren Salt
This requires that many other files include config.h themselves. Also convert <config.h> to "config.h".
2009-01-15Split most of the MMX declarations in xineutils.h out into xine_mmx.h.Darren Salt
This does not incompatibly change the API and has no effect on the ABI. --HG-- rename : src/xine-utils/xineutils.h => src/xine-utils/xine_mmx.h
2008-06-15Move the declaration of xine_strcat_realloc.Darren Salt
2008-06-12Fix up reporting of supported formats by the ALSA & OSS output plugins.Darren Salt
Adjust translations for the spacing changes etc. which this introduces.
2008-05-23Mark initialisation functions with malloc attribute.Diego 'Flameeyes' Pettenò
All the initialisation functions returning a new object instance that was allocated through malloc() or calloc() can get the malloc attribute so that the compiler can optimise their call.
2008-05-20Make xine_mm_accel() appear like a constant function.Diego 'Flameeyes' Pettenò
Its result will be always the same during execution, as it depends on the hardware present. --HG-- extra : transplant_source : %F2%D1%1A%84%0F%D4%08%C0%12%09%1A%BBb%7Ef%CC%F2%FB%A3t
2008-05-07Deprecate xine_xmalloc().Diego 'Flameeyes' Pettenò
2008-05-05Check for malloc attribute and define XINE_MALLOC for use in xineutils.h, ↵Diego 'Flameeyes' Pettenò
rather than just checking for GCC 3.
2008-05-03Mark some removed-in-1.2 exported/unimplemented functions as deprecated.Darren Salt
2008-04-28Add xine_get_pluginroot() for win32. Completely untested.Darren Salt
2007-11-10Delete most of the CVS $Id$/$Log$ lines.Darren Salt
--HG-- extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
2007-11-09Update FSF address on non-contributed code and COPYING files.Diego 'Flameeyes' Pettenò
For contributed code, leave whatever the version we last synced for is using to make simpler future syncs.
2006-12-25 * Allow building with Sun CC by fixing the lprintf variadic macro; patch byDiego 'Flameeyes' Pettenò
Taso N. Devetzis. [bug #1614406] CVS patchset: 8438 CVS date: 2006/12/25 15:16:33
2006-12-18Automatically flush lprintf() output.Claudio Ciccani
CVS patchset: 8420 CVS date: 2006/12/18 18:32:44
2006-10-16Fixed several warnings (but warnings due to APIs not solved).František Dvořák
CVS patchset: 8344 CVS date: 2006/10/16 22:18:24
2006-09-26Forgot one symbol.Diego 'Flameeyes' Pettenò
CVS patchset: 8291 CVS date: 2006/09/26 07:48:57
2006-09-26Fix the missing protected symbols, and enable hidden visibility for libxine.so.Diego 'Flameeyes' Pettenò
CVS patchset: 8290 CVS date: 2006/09/26 05:48:16
2006-06-23Miscellaneous static/const fixups.Darren Salt
Optimise away _xine_buffer_strcat. CVS patchset: 8073 CVS date: 2006/06/23 18:24:22
2006-04-08Ancient platforms support:František Dvořák
- rint, lrint, M_PI (ffmpeg and goom) - avoid mkdir warnings - check for older _GUID_DEFINED too - ressurected generating inttypes, cleaned public os_types.h - moved function redefiniton used only in the old MSVC to central place Windows port update: - build internal ffmpeg: - workaround 'near' keyword problem - proper using __declspec(dllimport) Other changes: - LIBFFMPEG_CFLAGS --> LIBFFMPEG_CPPFLAGS CVS patchset: 7964 CVS date: 2006/04/08 16:42:23
2006-02-14Make input-only pointers point to const data.Darren Salt
CVS patchset: 7900 CVS date: 2006/02/14 19:12:16
2006-01-28Forgotten files.Thibaut Mattern
Sorry about the breakage. CVS patchset: 7855 CVS date: 2006/01/28 17:09:59
2005-08-29*BUGFIX*František Dvořák
Windows ports updates: - finished M$VC port update - moved xine plugins back to normal location for Windows ports, added relative directories (used relative to ${prefix}), make sure it's thread-safe (but it's still hacky) - fixed ugly bug with loading plugins, when working drive was differrent from plugins directory directory - directory and subdirectory separator called as platform specific - fix crash with newer win32 pthread (missing mutex_init in vo plugin), yes! - small doc update CVS patchset: 7712 CVS date: 2005/08/29 15:28:16
2005-08-25*BUGFIX*František Dvořák
Windows ports fixes and improvements due to my current work on toxine: - first experiments with external win32 pthreads, more portable code (pthread_t may be a struct) - headers refactored - moved dirent win32 replacement to lib/, hide it for frontends, used system version, if found, not used non-POSIX dirent->d_reclen (this item doesn't work in MinGW), fix memleak in dvb - separated settings for postproc and avcodec when using external ffmpeg - check for malloc.h in public xine.m4, used it conditionally in xine headers - replaced random() by POSIX more common rand() - prevent one segfault in directx vo plugin, if fails - M$VC port update CVS patchset: 7709 CVS date: 2005/08/25 15:36:29
2004-12-12Check absolute path in $ac_aux_dir (just reflected from gxine).František Dvořák
Compilation fixes for cross-compiling with MinGW32. CVS patchset: 7231 CVS date: 2004/12/12 13:51:28
2004-10-29use monotonic clock when availableMiguel Freitas
CVS patchset: 7087 CVS date: 2004/10/29 23:11:37
2004-09-26 - almost finalize headers refactoring needed for MSVC frontends (and for otherFrantišek Dvořák
poor platforms, of course) - fix a bug in generated xine-config for WIN32 and make it relocateable under Windows - MSVC port: update, fix some warnings, remove old unneeded files - improve function for getting runtime directory, it will need next fix yet (bug probably due to active volume drives) CVS patchset: 7001 CVS date: 2004/09/26 22:54:51
2004-09-20Build system improvements:František Dvořák
- use replacement functions (macro AC_REPLACE_FUNCS and variable LTLIBOBJS), each function is in a file placed into lib/ directory, it was not necessary, but it looks nice, IMHO - headers cleanups (this was needed): - prototypes of replacement funtions and macros are placed into separate os_internal.h (and included by config.h) - drop include inttypes.h from public xine.h, replaced by custom os_type.h, idea origins from Ogg/Vorbis public headers - disable generating inttypes.h: generated replacement isn't enough for xine-lib but nobody complained (and for M$VC we have special version) - better including headers for win32, let dvdnav use its mutex wrapper - updated M$VC port Result: - xine is compiled nicely by MinGW, CygWin and paritaly M$VC - frontends in M$VC port don't require additional helping headers - moved some platform specific things from xine-utils and win32/contrib to lib/ Finally I can start with real coding. :-) CVS patchset: 6982 CVS date: 2004/09/20 19:30:02
2004-09-06Updates:František Dvořák
- usability MSVC for frontends - remove unistd.h from public headers - add configure option "--with-dxheaders" - install .def file under WIN32 - MSVC port update (some people might want it) CVS patchset: 6944 CVS date: 2004/09/06 18:34:37
2004-09-01Improvements and implementing Michael's suggestions:František Dvořák
- new flags added at the end, so the users can override them properly - removed X11 libs and cflags from xine-config and libxine.pc - removed replacing for setenv (thanks to Robin for the hint) - better way for temporary disabling of w32dll module - data directories will be different on Windows - force installing catalogs with translation into XINE_LOCALEDIR - timer linked in xine-engine (just central place for linking such stuff) - adjusted load_plugins and remove reduntant WIN32 conditionals - removed unused $(lib_thr) CVS patchset: 6927 CVS date: 2004/09/01 18:19:49
2004-08-27MINGW32 port. Engine library and most of plugins compiles now.František Dvořák
List of some changes: - replaced some _MSC_VER by more common WIN32 - define INTLDIR, remove -static flag for included intl - shared more common CFLAGS with DEBUG_CFLAGS - use WIN32_CFLAGS for all building - separate some flags into THREAD_CFLAGS_CONFIG, THREAD_CFLAGS_CONFIG and ZLIB_LIB_CONFIG for public xine-config, automatically use internal libs if necessary - don't warn about missing X for mingw and cygwin - libw32dll disabled for WIN32 (making native loader would be interesting, or porting wine code to Windows? :->) - DVB and RTP disabled for WIN32, not ported yet - fix build and fix a warning in cdda - fix build for nosefart and libfaad - implement configure option --disable-freetype - sync libxine.pc and xine-config.in - add -liberty to goom under WIN32 - move original build files from included phread and zlib into archives and replace them by autotools CVS patchset: 6910 CVS date: 2004/08/27 19:33:17
2004-07-14 - Use Windows encoding for the external subtitles, guessed according to ↵František Dvořák
current locale. - Add "-" into encoding names. - Fix a typo. CVS patchset: 6793 CVS date: 2004/07/14 18:51:29
2004-06-14fix comment (this is enclosed in #ifdef DEBUG)Michael Roitzsch
CVS patchset: 6690 CVS date: 2004/06/14 16:36:40
2004-05-09Valid error description for gethostbyname. Obsolete function hstrerror() has ↵František Dvořák
no replacement, so it's used, but with configure check. CVS patchset: 6503 CVS date: 2004/05/09 17:42:23
2004-04-28Backport VIS motion_comp code from libmpeg2 CVS so libmpeg2 uses these ↵Robin KAY
routines as well as the recently synced ffmpeg tree. CVS patchset: 6454 CVS date: 2004/04/28 00:38:08
2004-04-25addeed ppcasm_cacheable_memcpy fix from David Woodhouse <dwmw2@infradead.org>Manfred Tremmel
CVS patchset: 6436 CVS date: 2004/04/25 17:43:58
2004-04-06Prepare for MinGW port:František Dvořák
move M$VC specific header files into sparate directory regenerate config.h for M$VC compilation fixes add some getchar()s into xineui.exe (popup dialogs would be better) CVS patchset: 6338 CVS date: 2004/04/06 19:20:15
2004-03-29fix prototypeMichael Roitzsch
CVS patchset: 6316 CVS date: 2004/03/29 19:10:36
2004-03-27"+y"+p code from xine-ui for guessing locale codeset (default encoding for OSD).František Dvořák
CVS patchset: 6309 CVS date: 2004/03/27 12:59:45
2004-03-18The string passed to putenv must not be freed during the lifetime of that ↵Robin KAY
entry. Using automatic varaibles was also wrong. CVS patchset: 6288 CVS date: 2004/03/18 16:50:00
2004-03-03arrays of variable size are not understood by all compilersMichael Roitzsch
(and I think they are not ANSI as well) CVS patchset: 6209 CVS date: 2004/03/03 19:59:43
2004-01-07frame copying functionsJames Stembridge
CVS patchset: 6008 CVS date: 2004/01/07 22:20:59
2003-12-29getting rid of some MSVC specific partsMichael Roitzsch
CVS patchset: 5955 CVS date: 2003/12/29 16:24:33
2003-12-26Win32 mega update:František Dvořák
- external ffmpeg (with some patches) built by MINGW works, wow! - cleanups (only one definition file for all plugins) - working release build target Notes to hybrid MINGW/MSVC build: - CVS version of ffmpeg is compiled by MINGW (small patch for compilation ffmpeg under MINGW, second for disabling flush because it crashes under windows) - libxine + xineui compiled by MSVC, additional patch into header files of ffmpeg is needed - export all data with '__declspec(dllimport)' CVS patchset: 5951 CVS date: 2003/12/26 18:37:58
2003-12-21if gcc knows that xine_xmalloc() behaves like malloc(), some moreMichael Roitzsch
aliasing assumptions can be made (malloc()-returned pointers never alias anything), which can leed to further optimizations CVS patchset: 5933 CVS date: 2003/12/21 14:14:39
2003-12-13Update win32 MSVC build:František Dvořák
* internal names cleanup * http input plugin uses http_helper.c * fix change in audio_directx * MSVC stoped compile xineui because of 'this', mysterious * change non-constand array lengths to malloc/free, it good for such old compilers as my MSVC 6.0 * change lprintf macro for MSVC to compile again (I don't know, how use variable number of macro arguments in MSVC...) * merge compiling of xine-utils and xine-engine CVS patchset: 5902 CVS date: 2003/12/13 11:35:07
2003-12-13no need to mallocing (and never freeing) for putenv() calls.Daniel Caujolle-Bert
CVS patchset: 5900 CVS date: 2003/12/13 01:47:35