#include <stdlib.h>
#include <stdarg.h>
-#ifdef HAVE_STRING_H
-# include <string.h> /* strerror() */
-#endif
+#include <string.h> /* strerror() */
+#include <stdio.h>
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#include "vlc_threads.h"
+typedef struct vlc_object_internals_t vlc_object_internals_t;
+
/*****************************************************************************
* Common structure members
*****************************************************************************/
* these members are common for all vlc objects \
*/ \
/**@{*/ \
+ vlc_object_internals_t *p_internals; \
int i_object_id; \
int i_object_type; \
const char *psz_object_type; \
char *psz_header; \
int i_flags; \
\
- /* Thread properties, if any */ \
- vlc_bool_t b_thread; \
- vlc_thread_t thread_id; \
- \
/* Object access lock */ \
vlc_mutex_t object_lock; \
vlc_cond_t object_wait; \
volatile vlc_bool_t b_error; /**< set by the object */ \
volatile vlc_bool_t b_die; /**< set by the outside */ \
volatile vlc_bool_t b_dead; /**< set by the object */ \
- volatile vlc_bool_t b_attached; /**< set by the object */ \
vlc_bool_t b_force; /**< set by the outside (eg. module_Need()) */ \
\
- /* Object variables */ \
- vlc_mutex_t var_lock; \
- int i_vars; \
- variable_t * p_vars; \
- \
/* Stuff related to the libvlc structure */ \
- vlc_object_t *p_libvlc_global; /**< root of all evil */ \
libvlc_int_t *p_libvlc; /**< (root of all evil) - 1 */ \
\
volatile int i_refcount; /**< usage count */ \