1 /* This header interprets the various GST_* macros that are typically *
2 * provided by the gstreamer-config or gstreamer.pc files. */
4 #ifndef __GST_CONFIG_H__
5 #define __GST_CONFIG_H__
7 /***** trick gtk-doc into believing these symbols are defined (yes, it's ugly) */
10 #define GST_DISABLE_LOADSAVE_REGISTRY 1
11 #define GST_DISABLE_GST_DEBUG 1
12 #define GST_DISABLE_LOADSAVE 1
13 #define GST_DISABLE_PARSE 1
14 #define GST_DISABLE_TRACE 1
15 #define GST_DISABLE_ALLOC_TRACE 1
16 #define GST_DISABLE_REGISTRY 1
17 #define GST_DISABLE_ENUMTYPES 1
18 #define GST_DISABLE_INDEX 1
19 #define GST_DISABLE_PLUGIN 1
20 #define GST_DISABLE_URI 1
24 /***** disabling of subsystems *****/
26 /* wether or not the debugging subsystem is enabled */
27 @GST_DISABLE_GST_DEBUG_DEFINE@
30 @GST_DISABLE_LOADSAVE_DEFINE@
33 @GST_DISABLE_PARSE_DEFINE@
36 @GST_DISABLE_TRACE_DEFINE@
39 @GST_DISABLE_ALLOC_TRACE_DEFINE@
42 @GST_DISABLE_REGISTRY_DEFINE@
45 @GST_DISABLE_ENUMTYPES_DEFINE@
48 @GST_DISABLE_INDEX_DEFINE@
51 @GST_DISABLE_PLUGIN_DEFINE@
54 @GST_DISABLE_URI_DEFINE@
56 /* printf extension format */
60 * printf format type used to debug GStreamer types.
61 * This can only be used on types whose size is >= sizeof(gpointer).
63 @GST_PRINTF_EXTENSION_FORMAT_DEFINE@
65 /* whether or not the CPU supports unaligned access */
66 @GST_HAVE_UNALIGNED_ACCESS_DEFINE@
68 /***** Deal with XML stuff, we have to handle both loadsave and registry *****/
70 #if (! (defined(GST_DISABLE_LOADSAVE) && defined(GST_DISABLE_REGISTRY)) )
71 # include <libxml/parser.h>
73 # define GST_DISABLE_LOADSAVE_REGISTRY
79 * Export the given variable from the built shared object.
81 * On Windows, this exports the variable from the DLL.
82 * On other platforms, this gets defined to "extern".
87 * Export the plugin's definition.
89 * On Windows, this exports the plugin definition from the DLL.
90 * On other platforms, this gets defined as a no-op.
93 #define GST_PLUGIN_EXPORT __declspec(dllexport) extern
95 #define GST_EXPORT __declspec(dllexport) extern
97 #define GST_EXPORT __declspec(dllimport) extern
100 #define GST_PLUGIN_EXPORT
101 #define GST_EXPORT extern
104 #endif /* __GST_CONFIG_H__ */