*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/**
typedef struct vlc_t vlc_t;
typedef struct variable_t variable_t;
typedef struct date_t date_t;
+typedef struct hashtable_entry_t hashtable_entry_t;
/* Messages */
typedef struct msg_bank_t msg_bank_t;
typedef int (*httpd_file_callback_t)( httpd_file_sys_t *, httpd_file_t *, uint8_t *psz_request, uint8_t **pp_data, int *pi_data );
typedef struct httpd_handler_t httpd_handler_t;
typedef struct httpd_handler_sys_t httpd_handler_sys_t;
-typedef int (*httpd_handler_callback_t)( httpd_handler_sys_t *, httpd_handler_t *, uint8_t *psz_url, uint8_t *psz_request, int i_type, uint8_t *p_in, int i_in, char *psz_remote_addr, char *psz_remote_host, uint8_t **pp_data, int *pi_data );
+typedef int (*httpd_handler_callback_t)( httpd_handler_sys_t *, httpd_handler_t *, char *psz_url, uint8_t *psz_request, int i_type, uint8_t *p_in, int i_in, char *psz_remote_addr, char *psz_remote_host, uint8_t **pp_data, int *pi_data );
typedef struct httpd_redirect_t httpd_redirect_t;
typedef struct httpd_stream_t httpd_stream_t;
/* divers */
typedef struct vlc_meta_t vlc_meta_t;
+/* Stats */
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;
+typedef struct update_iterator_t update_iterator_t;
/*****************************************************************************
* Variable callbacks
/*****************************************************************************
* Plug-in stuff
*****************************************************************************/
-#ifndef __PLUGIN__
-# define VLC_EXPORT( type, name, args ) type name args
+#if !defined (__PLUGIN__) || defined (HAVE_SHARED_LIBVLC)
+# ifdef __cplusplus
+# define VLC_EXPORT( type, name, args ) extern "C" type name args
+# else
+# define VLC_EXPORT( type, name, args ) type name args
+# endif
#else
# define VLC_EXPORT( type, name, args ) struct _u_n_u_s_e_d_
extern module_symbols_t* p_symbols;
/**@{*/ \
int i_object_id; \
int i_object_type; \
- char *psz_object_type; \
+ const char *psz_object_type; \
char *psz_object_name; \
\
+ /* Messages header */ \
+ char *psz_header; \
+ int i_flags; \
+ \
/* Thread properties, if any */ \
vlc_bool_t b_thread; \
vlc_thread_t thread_id; \
} \
}
+/* Hash tables handling */
+struct hashtable_entry_t
+{
+ int i_id;
+ char *psz_name;
+ uint64_t i_hash;
+ void *p_data;
+};
+
+VLC_EXPORT( void, vlc_HashInsert, (hashtable_entry_t **, int *, int, const char *, void *));
+VLC_EXPORT( void*, vlc_HashRetrieve, (hashtable_entry_t*, int, int, const char *) );
+VLC_EXPORT( int, vlc_HashLookup, (hashtable_entry_t *, int, int, const char *) );
+
+
/* MSB (big endian)/LSB (little endian) conversions - network order is always
* MSB, and should be used for both network communications and files. Note that
* byte orders other than little and big endians are not supported, but only
# define vlc_strdup NULL
#endif
-#if !defined(HAVE_VASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS)
+#if !defined(HAVE_VASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS)
# define vasprintf vlc_vasprintf
VLC_EXPORT( int, vlc_vasprintf, (char **, const char *, va_list ) );
#elif !defined(__PLUGIN__)
# define vlc_vasprintf NULL
#endif
-#if !defined(HAVE_ASPRINTF) || defined(SYS_DARWIN) || defined(SYS_BEOS)
+#if !defined(HAVE_ASPRINTF) || defined(__APPLE__) || defined(SYS_BEOS)
# define asprintf vlc_asprintf
VLC_EXPORT( int, vlc_asprintf, (char **, const char *, ... ) );
#elif !defined(__PLUGIN__)
/* vlc_wraptext (defined in src/extras/libc.c) */
#define wraptext vlc_wraptext
-VLC_EXPORT( char *, vlc_wraptext, ( const char *, int, vlc_bool_t ) );
+VLC_EXPORT( char *, vlc_wraptext, ( const char *, int ) );
/* iconv wrappers (defined in src/extras/libc.c) */
typedef void *vlc_iconv_t;
/*****************************************************************************
* I18n stuff
*****************************************************************************/
+#ifndef HAVE_SHARED_LIBVLC
VLC_EXPORT( char *, vlc_dgettext, ( const char *package, const char *msgid ) );
+#endif
#if defined( ENABLE_NLS ) && \
(defined(MODULE_NAME_IS_gnome)||defined(MODULE_NAME_IS_gnome_main)||\
# include <libintl.h>
# endif
# undef _
-# define _(String) vlc_dgettext (PACKAGE_NAME, String)
+# ifdef HAVE_SHARED_LIBVLC
+# define _(String) dgettext (PACKAGE_NAME, String)
+# else
+# define _(String) vlc_dgettext(PACKAGE_NAME, String)
+# endif
# define N_(String) ((char*)(String))
#else
# define _(String) ((char*)(String))
/*****************************************************************************
* Additional vlc stuff
*****************************************************************************/
-#include "vlc_symbols.h"
+#ifndef HAVE_SHARED_LIBVLC
+# include "vlc_symbols.h"
+#endif
#include "os_specific.h"
#include "vlc_messages.h"
#include "variables.h"