Commit Graph

678 Commits

Author SHA1 Message Date
Rémi Denis-Courmont 86c47f64c5 Implement vlc_ngettext() to deal with plurals 2012-04-16 18:02:50 +03:00
Rémi Denis-Courmont d521b25d6f Move httpd typedefs to <vlc_httpd.h>
Also remove stray httpd_t.
2012-04-02 20:15:16 +03:00
Rémi Denis-Courmont 4d26b98a15 Remove core ACL support
I wrote this as a quick hack after Gildas made the HTTP server bind to
all addresses instead of only loopback by default. It turns out it
lasted a bit longer :D
2012-04-01 23:17:51 +03:00
Rémi Denis-Courmont 21f905e175 Add parity() helper 2012-03-18 11:36:55 +02:00
Rémi Denis-Courmont 66b102008a Replace posix_memalign() 2012-02-29 18:59:54 +02:00
Rémi Denis-Courmont dd648be95a Define WIN32_LEAN_AND_MEAN in config.h rather than vlc_common.h 2012-01-28 16:56:58 +02:00
Rémi Denis-Courmont 359e03c3cc Win32: do not redefine stat/fstat, fix piles of warnings
MingW picks the correct version according to _FILE_OFFSET_BITS.
Of course, we use 64-bits offsets for large files.
2012-01-27 23:31:49 +02:00
Rémi Denis-Courmont 9ce7c7d986 Move 'struct stat' forward declaration where actually needed 2012-01-27 23:31:49 +02:00
Rafaël Carré 022964d9a5 remove unused custom typedef 2011-12-21 01:08:02 -05:00
Pere Orga 9abcaacf83 fix filename self-references
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-12-15 17:09:31 +02:00
Jean-Baptiste Kempf e9bcb750e6 Finish the LGPL switch for libVLC and libVLCcore 2011-12-11 19:08:16 +01:00
Rémi Denis-Courmont a1f861a076 Move stats counter declaration to core
One last full rebuild for this!
2011-11-29 20:40:18 +02:00
Can Wu b009862bea introduce VLC_CLIP() macro to replace use pair of __MAX() and __MIN()
Signed-off-by: Rafaël Carré <funman@videolan.org>
2011-11-16 15:14:00 -05:00
Jean-Baptiste Kempf 69f5eeae3d Win32: always use mingw's snprintf 2011-10-31 00:42:18 +01:00
KO Myung-Hun 86df8c0439 Implement thread support for OS/2
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-10-14 17:46:51 +03:00
KO Myung-Hun 47be7a6627 Undefine bswap16, bswap32, and bswap64 to avoid name clash on OS/2
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-10-10 19:16:45 +03:00
Rafaël Carré 510b8c25b1 remove hack no longer needed for win32 2011-09-28 18:54:54 -04:00
Sébastien Toque 278a69e81f posix_memalign is not available on android
Signed-off-by: Rafaël Carré <funman@videolan.org>
2011-09-25 11:57:02 -04:00
Rafaël Carré 06c9784ad6 vlc_memalign(): osx 10.5 doesn't have posix_memalign() 2011-09-24 23:22:41 -04:00
Rafaël Carré 3388e6b03a Revert "vlc_memalign: use memalign() if posix_memalign() isn't here"
This reverts commit 0ad141d394.
2011-09-24 20:27:47 -04:00
Rafaël Carré 0ad141d394 vlc_memalign: use memalign() if posix_memalign() isn't here
Also rename confusing vlc_free()
2011-09-21 22:31:21 -04:00
Jean-Baptiste Kempf c74a885f7c Include: add some win32 comment 2011-09-19 15:36:23 +02:00
Rémi Denis-Courmont 8f683236f8 Improve vlc_memalign()
- use native MingW back-end on Windows, instead of kludges,
 - remove "base" pointer parameter,
 - inline.
2011-09-05 23:44:06 +03:00
Pierre Ynard bbfd99f28c Proofread byte order inline functions 2011-08-24 20:03:22 +02:00
Rémi Denis-Courmont 67fc58a5e7 bswap64: hack for C++ brain damage
Contrary to C, C++ compilers don't promote larger constants up to
unsigned long long when needed.
2011-08-18 22:17:12 +03:00
Rémi Denis-Courmont 9ff7bdc468 Improve byte order inline functions
* Use GCC built-ins for 32-bits and 64-bits byte swap where available.
 * Load/store with single memcpy() instead of many byte operations.
 * Do not use bits operations for the local byte order.
 * Do not use reserved C keywords with leading underscores.
2011-08-17 18:21:32 +03:00
Rémi Denis-Courmont f7db1e80a3 Introduce VLC_NORETURN function attribute and use it
Note that this attribute implies that the function never returns in
any circumstances (it exits, it aborts or it gets cancelled).
Do not use this attribute for function that do not return at the end
but may return from other branches.
2011-08-17 18:21:32 +03:00
Rémi Denis-Courmont 9fd4a6a6ba Introduce VLC_GCC_VERSION macro, fix popcount and clz
This can be used as follows:

 #if VLC_GCC_VERSION(major,minor)
 ...
 #endif

There is nothing "VLC" about it. The prefix is only about namespacing.
2011-08-17 18:21:32 +03:00
Rémi Denis-Courmont 2516061e58 Rename aout_instance_t to audio_output_t 2011-07-25 18:15:57 +03:00
Rémi Denis-Courmont 4dcdc8c402 Big cleanup of TLS interface 2011-07-23 14:52:23 +03:00
Rémi Denis-Courmont f260a493c0 Move variable types to vlc_variables.h
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-07-21 17:24:03 +03:00
Rémi Denis-Courmont c1f0e3ce23 Add xcalloc(). Do not use this in new code! 2011-07-11 21:24:35 +03:00
Rémi Denis-Courmont 5fb50884c1 Remove unused vlc_execve() 2011-07-07 19:00:52 +03:00
Rémi Denis-Courmont e5ccd0bf33 Remove aout_filter_t 2011-05-30 18:42:41 +03:00
Rémi Denis-Courmont 6a45dac72f Alias vlc_memset() to memset()
This saves two function calls per memset() since there are no optimized
implementations of memset() at all.
2011-05-10 18:10:27 +03:00
Rémi Denis-Courmont 92f1b3aee7 Rename LIBVLC_* function attributes to VLC_* within plugin API 2011-05-07 23:08:28 +03:00
Rémi Denis-Courmont d95990dc0c Mark exported symbols with default visibility on GCC 4 2011-05-07 19:14:44 +03:00
Rémi Denis-Courmont 6f258887aa Replace VLC_EXPORT macro with a simple prefix, VLC_API
This should help Doxygen parse VLC headers, and generally makes headers
easier to read. LibVLC already uses a similar approach.
2011-05-07 18:43:51 +03:00
Rémi Denis-Courmont 68a63466f4 Fix VLC_OBJECT expansion 2011-04-10 21:32:15 +03:00
KO Myung-Hun 397919b41b OS/2 uses the same path style as Win32.
Drive letters, backslashes instead of slashes, and so on.

Signed-off-by: Rémi Duraffort <ivoire@videolan.org>
2011-04-03 16:05:42 +02:00
Rémi Denis-Courmont 9cbf9c3b16 inline is inline
We assume C99 nowadays.
2011-03-05 15:10:55 +02:00
Rémi Denis-Courmont 9477ef1f3b popcount(): compute bit weight 2011-02-15 19:20:36 +02:00
Rémi Duraffort cd95603da4 Use a macro for the deprecated attribute. 2011-02-15 00:12:40 +01:00
Pierre Ynard 147438b3a0 Remove references to removed structures 2011-01-13 21:53:19 +01:00
Jean-Baptiste Kempf b048d0aab0 Symbian: fix for PATH_MAX 2010-12-30 21:21:47 +01:00
Jean-Baptiste Kempf 2cb957df80 Symbian: native separator is \\ 2010-12-30 21:18:59 +01:00
Rémi Duraffort 315f8e47d9 More cleaner fix when tdestroy only is missing. 2010-12-13 14:43:19 +01:00
Rémi Duraffort 3df02ef034 Fix make check. 2010-12-07 17:37:27 +01:00
Rémi Denis-Courmont 4e64795124 Remove VLC_VAR_MODULE, VLC_VAR_FILE and VLC_VAR_DIRECTORY
Those variable types were identical to VLC_VAR_STRING in practice
(Note: do not confuse variable types with configuration item types).
2010-12-05 06:41:06 +02:00
Rémi Denis-Courmont 8e1c86a065 Expand and remove VLC_Version() 2010-11-06 18:09:44 +02:00
Rémi Denis-Courmont 362dbda8eb Remove some typedefs to non-existent structs 2010-11-06 17:35:40 +02:00
Rémi Denis-Courmont 0df5550c1e Privatize appropriate module typedefs 2010-11-06 17:25:10 +02:00
Rémi Denis-Courmont b755e003aa Remove unused typedefs 2010-11-06 13:18:35 +02:00
Rémi Denis-Courmont e8da701b61 Do not redefine standard types 2010-11-06 13:18:34 +02:00
Rémi Denis-Courmont e50e29c750 Move vlc_iconv* to <vlc_charset.h> 2010-10-26 20:12:07 +03:00
Brad Smith 09a2365da0 Only define LIBVLC_USED for GCC 3.4 or newer. GCC 3.3 does not support the warn_unused_result attribute.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2010-08-12 11:55:08 +02:00
Rémi Denis-Courmont 04ad4fc735 Do not export vlc_wclosedir() 2010-08-03 19:21:34 +03:00
Rémi Denis-Courmont 59117b2862 Do not include vlc_modules.h in vlc_common.h 2010-07-27 22:33:36 +03:00
Rémi Duraffort ec87e89b59 Core: add some LIBVLC_USED. 2010-07-05 21:56:06 +02:00
Rémi Denis-Courmont b4c9cb160e Make vlc_value_t.i_int 64-bits
The memory usage is already there anyway. However, this increases the
code size a little, especially on 32-bits platforms.

N.B.: helper getter functions are still 32-bits until further change.
So are configuration items.
2010-07-02 20:56:37 +03:00
Rémi Denis-Courmont e284f2409e padding is superfluous (mtime_t, coords...) 2010-07-02 19:52:13 +03:00
Rémi Denis-Courmont a9daba19eb Move vlc_atomic_t typedef to <vlc_common.h>
Then we don't always need to include <vlc_atomic.h>
2010-06-29 17:29:01 +03:00
Rémi Denis-Courmont e5640463ca Rewrite GC code on top of atomic ops
(This saves one useless spin lock per GC object)
2010-06-28 02:19:22 +03:00
Rémi Denis-Courmont 3f573875f6 Fix vlc_pgettext 2010-06-26 03:16:31 +03:00
Rémi Denis-Courmont f90eeab1ee Remove VLC_VAR_LIST variable type 2010-06-08 21:03:11 +03:00
Laurent Aimar 54bac7d87a Made vlc_memalign public. 2010-05-09 16:18:40 +02:00
Laurent Aimar d6a118bda1 Splitted out text_style_t and related function to its own header. 2010-05-04 22:25:33 +02:00
Laurent Aimar b147e3fa23 Moved picture_heap_t out of vlc_vout.h 2010-04-18 19:58:19 +02:00
Laurent Aimar 9754c0acfb Moved vout_sys_t out of vlc_common.h. 2010-04-18 14:58:37 +02:00
Rémi Denis-Courmont 5f687f53d5 utf8_lstat is called vlc_lstat nowadays 2010-04-10 17:36:10 +03:00
Rémi Denis-Courmont c01dd91cd2 Add coordinates (VLC_VAR_COORDS) variable type 2010-02-13 20:30:11 +02:00
Rémi Denis-Courmont 4a38deb970 Remove the old form of variable variable
This is not used. The VLC_VAR_VARIABLE type is used by "navigation" only
in a different way (basically, it is a string).
2010-02-13 18:23:08 +02:00
Gildas Bazin 23e09ee7ec __builtin_offsetof() needs gcc >= 4 2010-02-09 18:18:14 +00:00
Rémi Denis-Courmont 7e45ab1b28 utf8_* -> vlc_* (sed roxxors) 2010-02-07 15:25:29 +02:00
Rémi Denis-Courmont 0ec6ee7cbd common: remove leading underscores 2010-02-07 13:33:51 +02:00
Rémi Denis-Courmont 3a29031f75 variables: remove leading underscores 2010-02-07 13:33:43 +02:00
Rémi Denis-Courmont 3c6a0755e7 clz: count leading zeroes 2010-02-07 11:39:46 +02:00
Rémi Denis-Courmont feeef1ef39 Remove be_sure_to_add_VLC_COMMOM_MEMBERS and check offset
This saves a bit of space (though the message becomes a bit more
confusing). This also ensures that VLC_COMMOM_MEMBERS is actually at the
top of the struct (in C only).
2010-02-04 20:12:43 +02:00
Jakob Leben defbc4a490 vlc core: single storage playlist
- Playlist items are stored only once. No category / onelevel separation
- Services Discovery nodes always stay a tree
- The playlist and Media Library are tree or flat depending on variable "playlist-tree".
  It means that if the setting variable says flat, the items that come from playlist
  demuxers are flattened into a single level list.
- The design demanded a different playlist demuxing system. Now playlist demuxers should
  construct a tree of items under an input_item_node_t root and send that using
  input_item_AddSubItemTree. Currently, the old scheme will be retained in modules, because
  there is still some listening to the old event in code (the libvlc media system for example)
2010-02-02 06:12:58 +01:00
Rémi Denis-Courmont ce67728ae1 Stick b_error to object types that actually use it 2010-01-28 21:19:55 +02:00
Rémi Denis-Courmont 00dc86ba39 Remove COMPILE_DOMAIN, merge into COMPILE_HOST 2010-01-19 23:28:03 +02:00
Jean-Baptiste Kempf e68c09ae28 Win32: be compatible with GCC version bigger than 4.x 2010-01-09 14:31:43 +01:00
Rémi Denis-Courmont 6d6fcaba2c vlc_tdestroy: safe replacement for GNU tdestroy() 2010-01-06 14:23:11 +02:00
Jean-Baptiste Kempf bdfe782fe0 Support for mingw32 gcc 4.4.0
This is meant to fix the *printf format strings.
This is compatible with mingw 4.2.1 and 4.3.0
I haven't find a better place where to put this code...

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2009-12-30 02:14:41 +01:00
Rémi Denis-Courmont 95a993e5f4 xmalloc, xrealloc: traditional functions to allocate memory
Those functions automatically abort if allocation fails (which is not
quite the same as calling assert()). Avoid these functions in new code.
2009-12-06 10:48:43 +02:00
Rémi Denis-Courmont 827b111356 likely, unlikely: convenience portability macros for branch prediction
Those are the same as the Linux kernel macros, and probably a bunch of
other projects. Usage:

    if (likely(condition))
        branch_likely_taken();

    if (unlikely(condition))
        branch_unlikely_taken();

Attention: those two macros convert the predicate to a boolean value.
Therefore you generally cannot use them for assignments like this:
    void *p_sys = likely (malloc (sizeof (*p_sys)));
    if (!p_sys)
        return VLC_ENOMEM;
Instead you can do this:
    void *p_sys = malloc (sizeof (*p_sys));
    if (unlikely (!p_sys))
        return VLC_ENOMEM;
2009-12-06 10:48:43 +02:00
Rémi Duraffort d1474ca68e Remove VLC_Error obsolete function. 2009-11-10 17:16:42 +01:00
Rémi Denis-Courmont 7c1fed031e Use __typeof__ which works with any GNU C profile, not like typeof 2009-10-05 17:41:21 +03:00
Rémi Denis-Courmont d5326a1508 Add and use LIBVLC_FORMAT_ARG for gettext functions 2009-09-24 20:51:50 +03:00
Rémi Denis-Courmont 11453720e5 Add LIBVLC_MALLOC function attribute
when the return value is a *unique* pointer (or NULL)...
2009-09-24 20:46:40 +03:00
Rémi Denis-Courmont b3b2157715 Make aout_buffer_t an alias for block_t 2009-09-23 22:00:07 +03:00
Rémi Denis-Courmont be5d9107a6 Use <vlc_cpu.h> 2009-09-22 18:21:37 +03:00
Jean-Baptiste Kempf eeae8ac67e Define new capabilities for SSE3 SSSE3 and SSE4 (4.1 is only useful) 2009-09-22 12:12:59 +02:00
Rémi Denis-Courmont 5712ce24d8 Remove unused 486 and 586 capabilities 2009-09-20 16:07:54 +03:00
Rémi Denis-Courmont 5dc4a72110 Remove never set, never used Pentium Pro capability 2009-09-20 16:05:25 +03:00
Rémi Denis-Courmont 600d29043e Add a CPU capability for ARM NEON
Currently, detection is done at build time. Feel free to add run-time
detect if you know how.
2009-09-05 18:22:50 +03:00
Rémi Denis-Courmont 182692caeb Remove vlc_object_t.p_private 2009-08-23 20:17:22 +03:00
Rémi Denis-Courmont 7d1e5fe7fb Use VLC object for meta writer and factor code 2009-08-23 20:17:21 +03:00
Rémi Denis-Courmont 62bd7af887 Use a VLC object for meta reader 2009-08-23 19:25:53 +03:00
Rémi Denis-Courmont 5a2184110b Make playlist_export_t a VLC object 2009-08-23 19:25:53 +03:00
Rémi Denis-Courmont 073c5a248e Hide psz_object_name in private data 2009-08-20 00:05:31 +03:00
Rémi Denis-Courmont 4a24608bb3 Replace VLC_ETHREAD with VLCENOMEM.
This is consistent with existing practice inside and outside of VLC.
We really don't need a separate error code for that.
2009-08-02 19:51:59 +03:00
Rémi Denis-Courmont 9e8ea4a669 Move intf_sys_t and intf_thread_t definitions 2009-05-23 20:01:36 +03:00
Rémi Denis-Courmont bbf31a42e6 Remove non-existent types 2009-05-23 19:39:34 +03:00
Rémi Denis-Courmont df3c9a7645 Support for pgettext 2009-04-15 22:05:34 +03:00
Rémi Denis-Courmont 0f749c6376 Remove buggy and unused vlc_wraptext()
It did not count non-ASCII characters at all (wrapping asian text must
have been fun...). Then again, to wrap even fixed-width font text, you
need to use wcwidth()/wcswidth().
2009-04-10 22:53:01 +03:00
Rémi Denis-Courmont 8186391531 Move remaining replacement to static import library 2009-04-10 22:17:13 +03:00
Rémi Denis-Courmont e1a78b744b Start moving replacement functions to a static import library 2009-04-10 20:14:10 +03:00
David Flynn 6bcbeed3e0 Revert "Revert "win32: remove old attempts to define snprintf _snprintf""
This reverts commit db01e438b2.

Original commit was correct. -- davidf

Signed-off-by: David Flynn <davidf@rd.bbc.co.uk>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2009-04-10 18:05:25 +02:00
Jean-Baptiste Kempf db01e438b2 Revert "win32: remove old attempts to define snprintf _snprintf"
This reverts commit 3bceb9cfef.
2009-04-09 21:56:54 +02:00
David Flynn 3bceb9cfef win32: remove old attempts to define snprintf _snprintf
fixup code handles this now.

Signed-off-by: David Flynn <davidf@rd.bbc.co.uk>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2009-04-03 12:11:02 +02:00
Rémi Denis-Courmont 6113551a3b Remove interaction core
One useless thread gone (the new subsystem does not need a thread).
2009-03-08 22:55:10 +02:00
Rémi Denis-Courmont 2f1189df0a Remove remaining global stats code 2009-02-28 19:19:45 +02:00
Rémi Denis-Courmont 046bfcf151 Remove VLC_Changeset, src/misc/revision.c, fixes make 2009-02-14 20:02:30 +02:00
Rémi Denis-Courmont 1e1fa17174 Privatize vlc_object_t.i_object_type 2009-01-17 21:31:35 +02:00
Rémi Denis-Courmont 61f37d78d9 Remove useless console type and pointer 2009-01-12 22:42:12 +02:00
Rémi Denis-Courmont 76ed9882aa Inline strsep 2008-12-21 15:56:05 +02:00
Rémi Duraffort b6366fc0b0 Remove MALLOC_NULL and use calloc when needed. 2008-11-02 13:00:01 +01:00
Rémi Duraffort 12879a4c3b Remove MALLOC_(VOID|ERR). (and use calloc instead of malloc+memset) 2008-11-02 12:40:43 +01:00
Rémi Duraffort 4d62902da8 Remove unused macros (or used only one time). 2008-10-31 23:29:04 +01:00
Rémi Denis-Courmont b815d93deb Cosmetic 2008-10-12 16:58:00 +03:00
Geoffroy Couprie a490cbb698 Remove IS_WINNT macro 2008-09-29 20:39:52 +02:00
Geoffroy Couprie e53c94ea14 WinCE: cleaning my header inclusion mess 2008-09-29 18:52:20 +02:00
Rémi Denis-Courmont acbad93b8b lower case the module_* functions 2008-09-21 14:59:23 +03:00
Rémi Denis-Courmont 2817b1e41d Remove the object ID field 2008-09-20 17:29:17 +03:00
Rémi Denis-Courmont 45e63d5980 Factor variable operations, as they're always the same for a type 2008-09-19 18:51:28 +03:00
Rémi Denis-Courmont e3d6b0ba19 GC: thread-safety, and offset independence 2008-09-19 17:27:52 +03:00
Rémi Denis-Courmont 432031d68c Improve VLC_COMMON_MEMBERS layout 2008-09-18 22:46:57 +03:00
Rémi Denis-Courmont a1f55ee909 vlc_object_internals_t is internal 2008-09-18 22:38:37 +03:00
Rémi Denis-Courmont 36e37a19e9 Only input uses b_dead 2008-09-14 14:42:23 +03:00
Rémi Denis-Courmont d62129ac74 Hide fetcher and prepase typedefs 2008-09-14 11:35:41 +03:00
Rémi Denis-Courmont e91e53cb83 Remove the useless announce handler object
It merely wrappeded the SAP object.
2008-09-14 10:46:43 +03:00
Rémi Denis-Courmont 5574f54de8 SAP announce: rewrite, use one thread per SAP group (fixes #1839) 2008-09-11 20:38:29 +03:00
Geoffroy Couprie 71d9f0d028 WinCE: header inclusion fixes
Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
2008-09-08 20:51:06 +03:00
Rémi Denis-Courmont cf270dd3c0 Tag some APIs as LIBVLC_USED 2008-09-06 11:30:44 +03:00
Rémi Denis-Courmont 050580d420 LIBVLC_USED: tag for function whose result must be used
GCC will print a warning if the result of such function is ignored
This is useful for functions returning an allocated object (which
would leak if ignored), "getter" functions, and functions that are
"likely" to fail.
2008-09-06 11:28:38 +03:00
Rémi Denis-Courmont 2ee13e893f strsep does not need to be exported for now 2008-09-03 22:46:20 +03:00
Laurent Aimar e2123909a9 Implemented strsep replacement. 2008-09-03 21:07:12 +02:00
Jean-Paul Saman ac20dc545b document vlc_fourcc_to_char() function. 2008-08-27 14:44:31 +02:00
Rémi Denis-Courmont 3bb56008ec VLC_OBJECT: expansion safety 2008-08-13 23:09:54 +03:00
Rémi Denis-Courmont 56aefe3186 Remove misleading comment
Funky byte sexes are supported here.
However they are not supported by VLC_FOURCC.
2008-07-23 22:02:00 +03:00
Pierre d'Herbemont 915f6a59a6 libvlccore: Make sure vlc_gc_* function correctly assert() on common errors, and de-inline them. 2008-07-08 21:35:43 +02:00
Rémi Denis-Courmont e21ba63b8a Move object lock and condition into the internals 2008-06-17 22:33:26 +03:00
Rémi Denis-Courmont b501c2e0bc Remove unused VLC_EBADOBJ 2008-06-15 15:32:09 +03:00
Antoine Cellerier 7f0421c222 Remove unused types and fix indentation. 2008-06-04 13:14:12 +02:00
Antoine Cellerier 2e2178f773 Chroma API change. Chromas are now normal video filters (almost). 2008-06-02 18:43:40 +02:00
Rémi Denis-Courmont 2ec3bddef1 Move LICENSE_MSG to the right section 2008-05-31 22:10:27 +03:00
Rémi Denis-Courmont df4d199617 vlc_common.h: protect against multiple inclusions 2008-05-31 21:56:59 +03:00
Rémi Denis-Courmont a308763e5e Separate libvlccore and libvlc headers
Now, we still need to remove the vlc/vlc.h hack.
2008-05-31 21:28:51 +03:00
Pierre d'Herbemont 1e50cd4c4d libvlccore: Add vlc_wclosedir to the exported symbols. 2008-05-28 01:25:36 +02:00
Pierre d'Herbemont b5aee88c08 libvlccore: Make sure all symbol listed in libvlccore.sym are exported. 2008-05-27 18:53:25 +02:00
Rémi Denis-Courmont c6c6c0e3a8 VLC_PRIVATE_API: no-op, removed 2008-05-27 19:01:38 +03:00
Rémi Denis-Courmont 3dc646548a Exporting private APIs is contradictory 2008-05-27 19:00:45 +03:00
Rémi Denis-Courmont 9970930dbc Revert "Move VLC_FOURCC to vlc_es.h"
This reverts commit 62b9f5b025.
2008-05-26 21:56:55 +03:00
Rémi Denis-Courmont 62b9f5b025 Move VLC_FOURCC to vlc_es.h 2008-05-26 21:11:01 +03:00
Rémi Denis-Courmont 8562522f06 Revert broken part of 653bca0a93 2008-05-26 20:45:38 +03:00
Rémi Denis-Courmont 653bca0a93 Have hton64 accept rvalues. Remove dep upon WORDS_BIGENDIAN 2008-05-26 20:24:39 +03:00
Rémi Denis-Courmont 024bed3c75 Penultimate (initial) public header fix 2008-05-26 20:04:35 +03:00
Rémi Denis-Courmont 9d85c35d50 Fix HAVE_ATTRIBUTE_FORMAT usage - refs #297 2008-05-26 19:58:57 +03:00
Rémi Denis-Courmont cf2f0f1e65 Another bunch of invalid config.h usage 2008-05-26 19:39:13 +03:00
Rémi Denis-Courmont cd5d7f6391 Remove HAVE_ATTRIBUTE_VISIBILITY - refs #297 2008-05-26 18:37:33 +03:00
Pierre d'Herbemont eb01699c9b Revert "Remove VLC_PRIVATE_API"
This reverts commit 96cc9c261d.

This commit is reverted because we are using a regexp to determine the list of exported symbols in libvlc. However some private symbols start with libvlc_, this produces (here on Mac OS X) a nmedit error about symbols not being found while exported. A solution is to externalize those private symbols, hence using VLC_PUBLIC_API.

Feel free to come up with a better solution.
2008-05-26 13:52:50 +02:00
Rémi Denis-Courmont f160db450a Inline and fix some linking errors
Should fix strlcpy() issues on Linux, but Win32 is surely still totally
broken by d754b40584
2008-05-24 19:57:58 +03:00
Rémi Denis-Courmont c80de559fa Fix win32 linking 2008-05-24 12:56:52 +03:00
Rémi Denis-Courmont 1231f33d9c vlc_scandir: remove (dead) code 2008-05-24 12:45:46 +03:00
Rémi Denis-Courmont 22fe2438b9 Simplify, fix and inline strcasecmp and strncasecmp 2008-05-24 12:40:57 +03:00
Rémi Denis-Courmont 287081caeb Inline strnlen() and use it 2008-05-24 12:24:47 +03:00
Rémi Denis-Courmont 71c7fb199a Try to fix make check 2008-05-24 12:12:15 +03:00
Rémi Denis-Courmont 2b617e77c1 Inline strdup, strndup, lldiv and getenv
Also fix an overflow in strndup().
2008-05-24 11:55:05 +03:00
Rémi Denis-Courmont bb29acd2f2 vlc_wclosedir is still needed on Windows 2008-05-24 11:33:03 +03:00
Rémi Denis-Courmont 9194945ade Remove VLC_INTERNAL
I should not have put internal stuff into the header files anyway
2008-05-24 11:19:42 +03:00
Rémi Denis-Courmont 00e71fbf49 Win32 vlc_w.*dir: declare internally 2008-05-24 11:18:51 +03:00
Rémi Denis-Courmont ff02bf907b seekdir, telldir: unused, remove 2008-05-24 10:52:00 +03:00
Rémi Denis-Courmont 96cc9c261d Remove VLC_PRIVATE_API 2008-05-24 10:47:32 +03:00
Rémi Denis-Courmont ab67a5346f Separate and refactor the win32 main code
It has almost nothing in common with the Unix main code anyway.
2008-05-23 18:42:19 +03:00
Rémi Denis-Courmont fa781f2253 Use netinet macros instead of pointer access 2008-05-22 23:46:34 +03:00
Rémi Denis-Courmont ccedc495eb Remove (hopefully) unused #include
We don't want config.h stuff in vlc_common.h
2008-05-22 23:03:00 +03:00
Rémi Denis-Courmont 5f2dd73ec8 Provide vlc_gettext on all platforms
This avoids having to link a few plugins with libintl on platforms where
it's not built-in libc. This also factors the internal use of
dgettext("vlc", ...).
2008-05-22 22:46:11 +03:00
Rémi Denis-Courmont a6ab35eee2 Move _ and N_ to the right header 2008-05-22 22:32:30 +03:00
Rémi Denis-Courmont 8dba805732 Hide i_children and pp_children away
They can only be read safely under the Big Structure Lock in
src/misc/objects.c, so it makes no sense for them to be public.

By the way, making i_children volatile wouldn't magically solve
thread-safety issues. The only correct use of volatile is in dealing
with asynchronous changes _within_ the same thread, such as signal
handling.

P.S.: I wish modules were not objects, and I wonder why they are
(they don't don't use threads, nor plugins, nor variables)
2008-05-16 19:01:19 +03:00
Rémi Denis-Courmont 9a719ad0af Win32 compile fixes 2008-05-08 22:33:21 +03:00
Rémi Denis-Courmont 707279b40c Merge vlc_threads.h and vlc_threads_funcs.h 2008-05-08 22:08:13 +03:00
Rémi Denis-Courmont e66ff92760 No need to auto-include <vlc_plugin.h> anymore 2008-05-08 19:35:15 +03:00
Rémi Denis-Courmont 0669643b1c vlc_modules_macros.h -> vlc_plugin.h 2008-05-08 19:24:35 +03:00
Rémi Denis-Courmont d2a0694d90 vlc_module_set: use vararg, more flexible 2008-05-08 19:20:19 +03:00
Rémi Denis-Courmont f802543426 VLC_OBJECT: add missing parenthesis 2008-05-07 20:58:36 +03:00
Rémi Denis-Courmont 973f2f06b0 Privatize msg_bank 2008-05-04 21:09:09 +03:00
Rémi Denis-Courmont aebd6a4333 libvlc_global_data_t: fix description 2008-05-04 19:48:59 +03:00
Rémi Denis-Courmont e29b2a0e67 Use the new registration mechanism for memcpy/memset 2008-05-03 17:17:30 +03:00
Rémi Denis-Courmont b04c6c66f4 Process-wide memcpy/memset accelarations
(CPU features don't change across libvlc instances)
2008-05-03 15:48:17 +03:00
Rémi Denis-Courmont 7f68203001 vlc_object_t.p_internals is not needed anymore 2008-05-03 12:51:03 +03:00
Rémi Denis-Courmont 89d56df65a main.h -> vlc_main.h 2008-05-02 19:06:43 +03:00
Rémi Denis-Courmont beee3221da Move dirent stuff to fixups.h, where it belongs 2008-05-01 23:11:42 +03:00
Rémi Denis-Courmont 4b8ce41a01 We need <inttypes.h>, always 2008-05-01 23:08:41 +03:00
Rémi Denis-Courmont a660c4fbe4 Don't use assert() here.
If it's really wanted, functions should de inlined
2008-05-01 22:27:06 +03:00
Rémi Denis-Courmont 44460e6de1 No need to include the same file twice 2008-05-01 22:22:30 +03:00
Rémi Denis-Courmont 6673258639 Put msg_context_global_key to the internal header.
It was not exported from libvlc anyhow.
2008-05-01 22:17:21 +03:00
Rémi Denis-Courmont d1d3dc1d10 Remove I64C as well 2008-05-01 22:11:47 +03:00
Rémi Denis-Courmont 1379ab26f3 Remove UI64_C
Turns out it was only used once in the whole tree.
2008-05-01 22:05:41 +03:00
Rémi Denis-Courmont 13a7c9af3c Remove I64F., not needed anymore 2008-05-01 21:59:36 +03:00