X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fvlc_common.h;h=a70f7efe0f5621589b7d61e5b1a95b59f9ee009a;hb=e996cbefaf0f8db55513071b9678242e0a7733da;hp=23f27a0bbc1605d2062649b7ad7888bbd05b951c;hpb=046bfcf1517610b52fb3a39bfc4ddb79cced6ca7;p=vlc diff --git a/include/vlc_common.h b/include/vlc_common.h index 23f27a0bbc..a70f7efe0f 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -176,14 +176,6 @@ typedef struct module_cache_t module_cache_t; typedef struct config_category_t config_category_t; -/* Interface */ -typedef struct intf_thread_t intf_thread_t; -typedef struct intf_sys_t intf_sys_t; -typedef struct intf_msg_t intf_msg_t; -typedef struct interaction_t interaction_t; -typedef struct interaction_dialog_t interaction_dialog_t; -typedef struct user_widget_t user_widget_t; - /* Input */ typedef struct input_thread_t input_thread_t; typedef struct input_thread_sys_t input_thread_sys_t; @@ -361,7 +353,6 @@ typedef struct counter_t counter_t; typedef struct counter_sample_t counter_sample_t; typedef struct stats_handler_t stats_handler_t; typedef struct input_stats_t input_stats_t; -typedef struct global_stats_t global_stats_t; /* Update */ typedef struct update_t update_t; @@ -443,7 +434,6 @@ struct vlc_list_t *****************************************************************************/ #define VLC_SUCCESS -0 /* No error */ #define VLC_ENOMEM -1 /* Not enough memory */ -#define VLC_ETHREAD -2 /* Thread error */ #define VLC_ETIMEOUT -3 /* Timeout */ #define VLC_ENOMOD -10 /* Module not found */ @@ -734,10 +724,6 @@ static inline uint64_t ntoh64 (uint64_t ll) #define VLC_UNUSED(x) (void)(x) /* Stuff defined in src/extras/libc.c */ -VLC_EXPORT( size_t, vlc_strlcpy, ( char *, const char *, size_t ) ); -VLC_EXPORT( long long, vlc_strtoll, ( const char *nptr, char **endptr, int base ) LIBVLC_USED ); - -VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) LIBVLC_USED ); #if defined(WIN32) || defined(UNDER_CE) /* win32, cl and icl support */ @@ -786,14 +772,6 @@ VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) LIBVLC_US # ifndef alloca # define alloca _alloca -# endif - - /* These two are not defined in mingw32 (bug?) */ -# ifndef snprintf -# define snprintf _snprintf -# endif -# ifndef vsnprintf -# define vsnprintf _vsnprintf # endif # include @@ -801,10 +779,6 @@ VLC_EXPORT( char *, vlc_strcasestr, ( const char *s1, const char *s2 ) LIBVLC_US VLC_EXPORT( bool, vlc_ureduce, ( unsigned *, unsigned *, uint64_t, uint64_t, uint64_t ) ); -/* vlc_wraptext (defined in src/extras/libc.c) */ -#define wraptext vlc_wraptext -VLC_EXPORT( char *, vlc_wraptext, ( const char *, int ) LIBVLC_USED ); - /* iconv wrappers (defined in src/extras/libc.c) */ typedef void *vlc_iconv_t; VLC_EXPORT( vlc_iconv_t, vlc_iconv_open, ( const char *, const char * ) LIBVLC_USED ); @@ -846,6 +820,12 @@ VLC_EXPORT( void *, vlc_memset, ( void *, int, size_t ) ); *****************************************************************************/ VLC_EXPORT( char *, vlc_gettext, ( const char *msgid ) LIBVLC_USED ); +static inline const char *vlc_pgettext( const char *ctx, const char *id ) +{ + const char *tr = vlc_gettext( id ); + return (tr == ctx) ? id : tr; +} + /***************************************************************************** * libvlc features *****************************************************************************/