Browse Source

Expand VLC_COMMON_MEMBERS

This is now a one-liner. Expansion helps readability/high-lighting.
pull/62/head
Rémi Denis-Courmont 8 years ago
parent
commit
c3dea95c4a
  1. 2
      extras/analyser/vlc.vim
  2. 4
      include/vlc_addons.h
  3. 2
      include/vlc_aout.h
  4. 2
      include/vlc_aout_volume.h
  5. 4
      include/vlc_codec.h
  6. 4
      include/vlc_demux.h
  7. 6
      include/vlc_events.h
  8. 2
      include/vlc_extensions.h
  9. 2
      include/vlc_filter.h
  10. 2
      include/vlc_fingerprinter.h
  11. 2
      include/vlc_inhibit.h
  12. 2
      include/vlc_input.h
  13. 2
      include/vlc_interface.h
  14. 2
      include/vlc_keystore.h
  15. 2
      include/vlc_meta.h
  16. 2
      include/vlc_meta_fetcher.h
  17. 9
      include/vlc_objects.h
  18. 2
      include/vlc_opengl.h
  19. 4
      include/vlc_playlist.h
  20. 2
      include/vlc_probe.h
  21. 2
      include/vlc_renderer_discovery.h
  22. 2
      include/vlc_services_discovery.h
  23. 8
      include/vlc_sout.h
  24. 2
      include/vlc_spu.h
  25. 2
      include/vlc_stream.h
  26. 4
      include/vlc_stream_extractor.h
  27. 2
      include/vlc_tls.h
  28. 2
      include/vlc_video_splitter.h
  29. 2
      include/vlc_vod.h
  30. 2
      include/vlc_vout.h
  31. 2
      include/vlc_vout_display.h
  32. 2
      include/vlc_vout_window.h
  33. 4
      include/vlc_xml.h
  34. 2
      lib/media_player_internal.h
  35. 2
      modules/audio_output/mmdevice.h
  36. 2
      modules/codec/avcodec/encoder.c
  37. 2
      modules/codec/avcodec/va.h
  38. 2
      modules/gui/qt/qt.hpp
  39. 2
      modules/video_output/opengl/converter.h
  40. 2
      src/input/input_internal.h
  41. 2
      src/input/vlm_internal.h
  42. 2
      src/misc/messages.c
  43. 2
      src/misc/update.h
  44. 2
      src/network/httpd.c

2
extras/analyser/vlc.vim

@ -103,7 +103,7 @@ function VlcSyntax()
syn keyword cType md5_t vlc_meta_t vlc_callback_t iso639_lang_t
" misc macros
syn keyword cOperator VLC_OBJECT VLC_EXPORT VLC_COMMON_MEMBERS
syn keyword cOperator VLC_OBJECT VLC_EXPORT
" don't use these any more, please
syn keyword cError u8 s8 u16 s16 u32 s32 u64 s64
" don't put trailing spaces! DON'T USE TABS!!!

4
include/vlc_addons.h

@ -106,7 +106,7 @@ typedef struct addons_finder_t addons_finder_t;
typedef struct addons_finder_sys_t addons_finder_sys_t;
struct addons_finder_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
int ( * pf_find )( addons_finder_t * );
int ( * pf_retrieve )( addons_finder_t *, addon_entry_t * );
@ -120,7 +120,7 @@ typedef struct addons_storage_t addons_storage_t;
typedef struct addons_storage_sys_t addons_storage_sys_t;
struct addons_storage_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
int ( * pf_install )( addons_storage_t *, addon_entry_t * );
int ( * pf_remove )( addons_storage_t *, addon_entry_t * );

2
include/vlc_aout.h

@ -113,7 +113,7 @@
/** Audio output object */
struct audio_output
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
struct aout_sys_t *sys; /**< Private data for callbacks */

2
include/vlc_aout_volume.h

@ -44,7 +44,7 @@ typedef struct audio_volume audio_volume_t;
*/
struct audio_volume
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
vlc_fourcc_t format; /**< Audio samples format */
void (*amplify)(audio_volume_t *, block_t *, float); /**< Amplifier */

4
include/vlc_codec.h

@ -54,7 +54,7 @@ typedef struct decoder_cc_desc_t decoder_cc_desc_t;
*/
struct decoder_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module properties */
module_t * p_module;
@ -210,7 +210,7 @@ struct decoder_cc_desc_t
struct encoder_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module properties */
module_t * p_module;

4
include/vlc_demux.h

@ -42,7 +42,7 @@
struct demux_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module properties */
module_t *p_module;
@ -108,7 +108,7 @@ struct demux_t
/* demux_meta_t is returned by "meta reader" module to the demuxer */
typedef struct demux_meta_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
input_item_t *p_item; /***< the input item that is being read */
vlc_meta_t *p_meta; /**< meta data */

6
include/vlc_events.h

@ -47,9 +47,9 @@
* (see src/misc/variables.c).
*
* It has the following advantages over Variable based Callback:
* - No need to implement the whole VLC_COMMON_MEMBERS in the object,
* - No need to implement the whole vlc_common_members in the object,
* thus it reduce it size. This is especially true for input_item_t which
* doesn't have VLC_COMMON_MEMBERS. This is the first reason of existence of
* doesn't have vlc_common_members. This is the first reason of existence of
* this implementation.
* - Libvlc can easily be based upon that.
* - Existing event are clearly declared (in include/vlc_events.h)
@ -57,7 +57,7 @@
*
**** Example usage
*
* (vlc_cool_object_t doesn't need to have the VLC_COMMON_MEMBERS.)
* (vlc_cool_object_t doesn't need to have the vlc_common_members.)
*
* struct vlc_cool_object_t
* {

2
include/vlc_extensions.h

@ -52,7 +52,7 @@ typedef struct extension_t {
/** Extensions manager object */
struct extensions_manager_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t *p_module; /**< Extensions manager module */
extensions_manager_sys_t *p_sys; /**< Reserved for the module */

2
include/vlc_filter.h

@ -64,7 +64,7 @@ struct vlc_mouse_t;
*/
struct filter_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module properties */
module_t * p_module;

2
include/vlc_fingerprinter.h

@ -68,7 +68,7 @@ static inline void fingerprint_request_Delete( fingerprint_request_t *p_f )
struct fingerprinter_thread_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Specific interfaces */
fingerprinter_sys_t * p_sys;

2
include/vlc_inhibit.h

@ -40,7 +40,7 @@ enum vlc_inhibit_flags
struct vlc_inhibit
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
vlc_inhibit_sys_t *p_sys;
void (*inhibit) (vlc_inhibit_t *, unsigned flags);

2
include/vlc_input.h

@ -224,7 +224,7 @@ typedef struct input_resource_t input_resource_t;
*/
struct input_thread_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
};
/**

2
include/vlc_interface.h

@ -45,7 +45,7 @@ typedef struct intf_sys_t intf_sys_t;
/** Describe all interface-specific data of the interface thread */
typedef struct intf_thread_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
struct intf_thread_t *p_next; /** LibVLC interfaces book keeping */

2
include/vlc_keystore.h

@ -293,7 +293,7 @@ vlc_keystore_release_entry(vlc_keystore_entry *p_entry)
typedef struct vlc_keystore_sys vlc_keystore_sys;
struct vlc_keystore
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t *p_module;
vlc_keystore_sys *p_sys;

2
include/vlc_meta.h

@ -99,7 +99,7 @@ VLC_API const char * vlc_meta_TypeToLocalizedString( vlc_meta_type_t meta_type )
typedef struct meta_export_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
input_item_t *p_item;
const char *psz_file;
} meta_export_t;

2
include/vlc_meta_fetcher.h

@ -30,7 +30,7 @@ typedef enum meta_fetcher_scope_t
typedef struct meta_fetcher_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
input_item_t *p_item;
meta_fetcher_scope_t e_scope;
} meta_fetcher_t;

9
include/vlc_objects.h

@ -73,11 +73,6 @@ struct vlc_common_members
vlc_object_t *parent;
};
/**
* Backward compatibility macro
*/
#define VLC_COMMON_MEMBERS struct vlc_common_members obj;
/**
* Type-safe vlc_object_t cast
*
@ -106,13 +101,13 @@ struct vlc_common_members
/** The main vlc_object_t structure */
struct vlc_object_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
};
/* The root object */
struct libvlc_int_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
};
/*****************************************************************************

2
include/vlc_opengl.h

@ -39,7 +39,7 @@ typedef struct vlc_gl_t vlc_gl_t;
struct vlc_gl_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
struct vout_window_t *surface;
module_t *module;

4
include/vlc_playlist.h

@ -116,7 +116,7 @@ struct intf_thread_t;
/** Helper structure to export to file part of the playlist */
typedef struct playlist_export_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
char *base_url;
FILE *p_file;
playlist_item_t *p_root;
@ -150,7 +150,7 @@ typedef enum
/** Structure containing information about the playlist */
struct playlist_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
playlist_item_array_t items; /**< Arrays of items */

2
include/vlc_probe.h

@ -38,7 +38,7 @@ void *vlc_probe (vlc_object_t *, const char *, size_t *);
struct vlc_probe_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
void *list;
size_t count;

2
include/vlc_renderer_discovery.h

@ -163,7 +163,7 @@ struct vlc_renderer_discovery_owner
struct vlc_renderer_discovery_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t * p_module;
struct vlc_renderer_discovery_owner owner;

2
include/vlc_services_discovery.h

@ -53,7 +53,7 @@ struct services_discovery_owner_t
*/
struct services_discovery_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t * p_module; /**< Loaded module */
char *psz_name; /**< Main name of the SD */

8
include/vlc_sout.h

@ -47,7 +47,7 @@ extern "C" {
* invalid unsynchronized access) */
struct sout_instance_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
char *psz_sout;
@ -72,7 +72,7 @@ typedef struct sout_stream_id_sys_t sout_stream_id_sys_t;
/** Stream output access_output */
struct sout_access_out_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t *p_module;
char *psz_access;
@ -120,7 +120,7 @@ static inline bool sout_AccessOutCanControlPace( sout_access_out_t *p_ao )
/** Muxer structure */
struct sout_mux_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t *p_module;
sout_instance_t *p_sout;
@ -196,7 +196,7 @@ enum sout_stream_query_e {
struct sout_stream_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t *p_module;
sout_instance_t *p_sout;

2
include/vlc_spu.h

@ -46,7 +46,7 @@ typedef struct spu_private_t spu_private_t;
*/
struct spu_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
spu_private_t *p;
};

2
include/vlc_stream.h

@ -45,7 +45,7 @@ extern "C" {
struct stream_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module properties for stream filter */
module_t *p_module;

4
include/vlc_stream_extractor.h

@ -48,7 +48,7 @@ extern "C" {
**/
typedef struct stream_extractor_t {
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/**
* \name Callbacks for entity extraction
@ -71,7 +71,7 @@ typedef struct stream_extractor_t {
} stream_extractor_t;
typedef struct stream_directory_t {
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/**
* \name Callbacks for stream directories

2
include/vlc_tls.h

@ -66,7 +66,7 @@ typedef struct vlc_tls
*/
typedef struct vlc_tls_creds
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t *module;
void *sys;

2
include/vlc_video_splitter.h

@ -69,7 +69,7 @@ typedef struct
*/
struct video_splitter_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module properties */
module_t *p_module;

2
include/vlc_vod.h

@ -35,7 +35,7 @@
struct vod_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module properties */
module_t *p_module;

2
include/vlc_vout.h

@ -68,7 +68,7 @@ typedef struct vout_thread_sys_t vout_thread_sys_t;
* structure.
*/
struct vout_thread_t {
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Private vout_thread data */
vout_thread_sys_t *p;

2
include/vlc_vout_display.h

@ -254,7 +254,7 @@ struct vout_display_owner_t {
};
struct vout_display_t {
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module */
module_t *module;

2
include/vlc_vout_window.h

@ -128,7 +128,7 @@ typedef struct vout_window_owner {
* Finally, it must support some control requests such as for fullscreen mode.
*/
struct vout_window_t {
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/**
* Window handle type

4
include/vlc_xml.h

@ -35,7 +35,7 @@ extern "C" {
struct xml_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* Module properties */
module_t *p_module;
@ -64,7 +64,7 @@ static inline void xml_CatalogAdd( xml_t *xml, const char *type,
struct xml_reader_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
xml_reader_sys_t *p_sys;
stream_t *p_stream;

2
lib/media_player_internal.h

@ -38,7 +38,7 @@
struct libvlc_media_player_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
int i_refcount;
vlc_mutex_t object_lock;

2
modules/audio_output/mmdevice.h

@ -28,7 +28,7 @@ typedef struct aout_stream aout_stream_t;
*/
struct aout_stream
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
void *sys;
HRESULT (*time_get)(aout_stream_t *, mtime_t *);

2
modules/codec/avcodec/encoder.c

@ -76,7 +76,7 @@ struct thread_context_t;
*****************************************************************************/
struct thread_context_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
AVCodecContext *p_context;
int (* pf_func)(AVCodecContext *c, void *arg);

2
modules/codec/avcodec/va.h

@ -30,7 +30,7 @@ typedef struct vlc_va_t vlc_va_t;
typedef struct vlc_va_sys_t vlc_va_sys_t;
struct vlc_va_t {
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
vlc_va_sys_t *sys;
module_t *module;

2
modules/gui/qt/qt.hpp

@ -29,7 +29,7 @@
# include "config.h"
#endif
#include <vlc_common.h> /* VLC_COMMON_MEMBERS for vlc_interface.h */
#include <vlc_common.h>
#include <vlc_interface.h> /* intf_thread_t */
#include <vlc_playlist.h> /* playlist_t */

2
modules/video_output/opengl/converter.h

@ -219,7 +219,7 @@ typedef struct {
typedef struct opengl_tex_converter_t opengl_tex_converter_t;
struct opengl_tex_converter_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
module_t *p_module;

2
src/input/input_internal.h

@ -43,7 +43,7 @@
/* input_source_t: gathers all information per input source */
typedef struct
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
demux_t *p_demux; /**< Demux object (most downstream) */

2
src/input/vlm_internal.h

@ -83,7 +83,7 @@ typedef struct
struct vlm_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
vlc_mutex_t lock;
vlc_thread_t thread;

2
src/misc/messages.c

@ -45,7 +45,7 @@
struct vlc_logger_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
vlc_rwlock_t lock;
vlc_log_cb log;
void *sys;

2
src/misc/update.h

@ -131,7 +131,7 @@ typedef struct public_key_t public_key_t;
*/
typedef struct
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
vlc_thread_t thread;
atomic_bool aborted;

2
src/network/httpd.c

@ -72,7 +72,7 @@ static void httpd_AppendData(httpd_stream_t *stream, uint8_t *p_data, int i_data
/* each host run in his own thread */
struct httpd_host_t
{
VLC_COMMON_MEMBERS
struct vlc_common_members obj;
/* ref count */
unsigned i_ref;

Loading…
Cancel
Save