gstfunnel: avoid access of freed pad
[platform/upstream/gstreamer.git] / gst / gst.h
1 /* GStreamer
2  * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3  *                    2000 Wim Taymans <wtay@chello.be>
4  *
5  * gst.h: Main header for GStreamer, apps should include this
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Library General Public
9  * License as published by the Free Software Foundation; either
10  * version 2 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Library General Public License for more details.
16  *
17  * You should have received a copy of the GNU Library General Public
18  * License along with this library; if not, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23
24 #ifndef __GST_H__
25 #define __GST_H__
26
27 #ifndef GST_USE_UNSTABLE_API
28 #warning "The GStreamer 0.11 API is still unstable and will change in future."
29 #warning "Define GST_USE_UNSTABLE_API to avoid this warning."
30 #endif
31
32 #include <glib.h>
33
34 #include <gst/glib-compat.h>
35
36 #include <gst/gstenumtypes.h>
37 #include <gst/gstversion.h>
38
39 #include <gst/gstbin.h>
40 #include <gst/gstbuffer.h>
41 #include <gst/gstbufferlist.h>
42 #include <gst/gstbufferpool.h>
43 #include <gst/gstcaps.h>
44 #include <gst/gstchildproxy.h>
45 #include <gst/gstclock.h>
46 #include <gst/gstcontrolsource.h>
47 #include <gst/gstdatetime.h>
48 #include <gst/gstdebugutils.h>
49 #include <gst/gstelement.h>
50 #include <gst/gstelementmetadata.h>
51 #include <gst/gsterror.h>
52 #include <gst/gstevent.h>
53 #include <gst/gstghostpad.h>
54 #include <gst/gstinfo.h>
55 #include <gst/gstiterator.h>
56 #include <gst/gstmessage.h>
57 #include <gst/gstmemory.h>
58 #include <gst/gstmeta.h>
59 #include <gst/gstminiobject.h>
60 #include <gst/gstobject.h>
61 #include <gst/gstpad.h>
62 #include <gst/gstparamspecs.h>
63 #include <gst/gstpipeline.h>
64 #include <gst/gstplugin.h>
65 #include <gst/gstpoll.h>
66 #include <gst/gstpreset.h>
67 #include <gst/gstquery.h>
68 #include <gst/gstregistry.h>
69 #include <gst/gstsample.h>
70 #include <gst/gstsegment.h>
71 #include <gst/gststructure.h>
72 #include <gst/gstsystemclock.h>
73 #include <gst/gsttaglist.h>
74 #include <gst/gsttagsetter.h>
75 #include <gst/gsttask.h>
76 #include <gst/gsttaskpool.h>
77 #include <gst/gsttoc.h>
78 #include <gst/gsttocsetter.h>
79 #include <gst/gsttypefind.h>
80 #include <gst/gsttypefindfactory.h>
81 #include <gst/gsturi.h>
82 #include <gst/gstutils.h>
83 #include <gst/gstvalue.h>
84
85 #include <gst/gstparse.h>
86
87 /* API compatibility stuff */
88 #include <gst/gstcompat.h>
89
90 G_BEGIN_DECLS
91
92 void            gst_init                        (int *argc, char **argv[]);
93 gboolean        gst_init_check                  (int *argc, char **argv[],
94                                                  GError ** err);
95 gboolean        gst_is_initialized              (void);
96 GOptionGroup *  gst_init_get_option_group       (void);
97 void            gst_deinit                      (void);
98
99 void            gst_version                     (guint *major, guint *minor,
100                                                  guint *micro, guint *nano);
101 gchar *         gst_version_string              (void);
102
103 gboolean        gst_segtrap_is_enabled          (void);
104 void            gst_segtrap_set_enabled         (gboolean enabled);
105
106 gboolean        gst_registry_fork_is_enabled    (void);
107 void            gst_registry_fork_set_enabled   (gboolean enabled);
108
109 gboolean        gst_update_registry             (void);
110
111 G_END_DECLS
112
113 #endif /* __GST_H__ */