X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_common.h;h=615f630d37329ead986a2fdaf1565dc36773a449;hb=89ae1690f9c9bcc71d45c30da3938ece83dd1e5a;hp=0511e9dce5c23fa4842652353f6bbaa002ab66b4;hpb=16b99ba1557e46efce54149ce9e860855626a7be;p=vlc diff --git a/include/vlc_common.h b/include/vlc_common.h index 0511e9dce5..615f630d37 100644 --- a/include/vlc_common.h +++ b/include/vlc_common.h @@ -2,7 +2,7 @@ * common.h: common definitions * Collection of useful common types and macros definitions ***************************************************************************** - * Copyright (C) 1998-2004 VideoLAN + * Copyright (C) 1998-2005 the VideoLAN team * $Id$ * * Authors: Samuel Hocevar @@ -110,6 +110,15 @@ typedef uint8_t byte_t; +/* Systems that don't have stdint.h may not define INT64_MIN and + INT64_MAX */ +#ifndef INT64_MIN +#define INT64_MIN (-9223372036854775807LL-1) +#endif +#ifndef INT64_MAX +#define INT64_MAX (9223372036854775807LL) +#endif + /* ptrdiff_t definition */ #ifdef HAVE_STDDEF_H # include @@ -122,7 +131,7 @@ typedef int ptrdiff_t; # endif #endif -#if defined( WIN32 ) +#if defined( WIN32 ) || defined( UNDER_CE ) # include # ifndef PATH_MAX # define PATH_MAX MAX_PATH @@ -205,18 +214,27 @@ typedef struct msg_subscription_t msg_subscription_t; * Playlist commands */ typedef enum { - PLAYLIST_PLAY, /**< Starts playing. No arg. */ - PLAYLIST_PAUSE, /**< Toggles playlist pause. No arg. */ - PLAYLIST_STOP, /**< Stops playing. No arg. */ - PLAYLIST_SKIP, /**< Skip X items and play. */ - PLAYLIST_GOTO, /**< Goto Xth item. */ + PLAYLIST_PLAY, /**< No arg. res=can fail*/ + PLAYLIST_AUTOPLAY, /**< No arg. res=cant fail*/ + PLAYLIST_VIEWPLAY, /**< arg1= int, arg2= playlist_item_t*,*/ + /** arg3 = playlist_item_t* , res=can fail */ + PLAYLIST_ITEMPLAY, /** #endif -/* lseek (defined in src/extras/libc.c) */ -#ifndef HAVE_LSEEK -# define lseek vlc_lseek - VLC_EXPORT( off_t, vlc_lseek, ( int fildes, off_t offset, int whence ) ); -#elif !defined(__PLUGIN__) -# define vlc_lseek NULL -#endif - -VLC_EXPORT( vlc_bool_t, vlc_reduce, ( int *, int *, int64_t, int64_t, int64_t ) ); +VLC_EXPORT( vlc_bool_t, vlc_ureduce, ( unsigned *, unsigned *, uint64_t, uint64_t, uint64_t ) ); +VLC_EXPORT( char **, vlc_parse_cmdline, ( const char *, int * ) ); /* vlc_wraptext (defined in src/extras/libc.c) */ #define wraptext vlc_wraptext @@ -944,6 +1054,10 @@ VLC_EXPORT( vlc_iconv_t, vlc_iconv_open, ( const char *, const char * ) ); VLC_EXPORT( size_t, vlc_iconv, ( vlc_iconv_t, char **, size_t *, char **, size_t * ) ); VLC_EXPORT( int, vlc_iconv_close, ( vlc_iconv_t ) ); +/* execve wrapper (defined in src/extras/libc.c) */ +VLC_EXPORT( int, __vlc_execve, ( vlc_object_t *p_object, int i_argc, char **pp_argv, char **pp_env, char *psz_cwd, char *p_in, int i_in, char **pp_data, int *pi_data ) ); +#define vlc_execve(a,b,c,d,e,f,g,h,i) __vlc_execve(VLC_OBJECT(a),b,c,d,e,f,g,h,i) + /***************************************************************************** * CPU capabilities *****************************************************************************/ @@ -983,6 +1097,17 @@ VLC_EXPORT( char *, vlc_dgettext, ( const char *package, const char *msgid ) ); # define N_(String) ((char*)(String)) #endif +/***************************************************************************** + * libvlc features + *****************************************************************************/ +VLC_EXPORT( const char *, VLC_Version, ( void ) ); +VLC_EXPORT( const char *, VLC_CompileBy, ( void ) ); +VLC_EXPORT( const char *, VLC_CompileHost, ( void ) ); +VLC_EXPORT( const char *, VLC_CompileDomain, ( void ) ); +VLC_EXPORT( const char *, VLC_Compiler, ( void ) ); +VLC_EXPORT( const char *, VLC_Changeset, ( void ) ); +VLC_EXPORT( const char *, VLC_Error, ( int ) ); + /***************************************************************************** * Additional vlc stuff *****************************************************************************/