X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_common.h;h=fc4656749438a12ff10ccc67c006c58a012d5fbe;hb=073c5a248e71a73a47c80066ad9848516e96778e;hp=2ca14508c001caf60fb04252e033cdb9609e3d5d;hpb=818639153101c70514bc001d465485d23899a320;p=vlc diff --git a/include/vlc_common.h b/include/vlc_common.h index 2ca14508c0..fc46567494 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -176,12 +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 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; @@ -440,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 */ @@ -507,7 +500,6 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */ */ \ /**@{*/ \ const char *psz_object_type; \ - char *psz_object_name; \ \ /* Messages header */ \ char *psz_header; \ @@ -786,10 +778,6 @@ static inline uint64_t ntoh64 (uint64_t ll) 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 ); @@ -831,6 +819,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 *****************************************************************************/