summaryrefslogtreecommitdiff
path: root/gst/gstconfig.h
blob: 844c2df8a2e4b76dcc41ff2957d1d81c9c905640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* This header interprets the various GST_* macros that are typically	*
 * provided by the gstreamer-config or gstreamer.pc files.		*/

#ifndef __GST_CONFIG_H__
#define __GST_CONFIG_H__


/***** We include config.h in case someone perhaps used a gstreamer.m4 or
       something else that provides funky overrides.  BEWARE! *****/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */


/***** Deal with XML stuff, we have to handle both loadsave and registry *****/

#if (! (defined(GST_DISABLE_LOADSAVE) && defined(GST_DISABLE_REGISTRY)) )
  #include <parser.h>
 
  // Include compatability defines: if libxml hasn't already defined these,
  // we have an old version 1.x
  #ifndef xmlChildrenNode
    #define xmlChildrenNode childs
    #define xmlRootNode root
  #endif
  
#else
  #define GST_DISABLE_LOADSAVE_REGISTRY
#endif

#endif /* __GST_CONFIG_H__ */