1 | /* GStreamer |
2 | * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> |
3 | * 2000 Wim Taymans <wim.taymans@chello.be> |
4 | * |
5 | * gstregistry.h: Header for registry handling |
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., 51 Franklin St, Fifth Floor, |
20 | * Boston, MA 02110-1301, USA. |
21 | */ |
22 | |
23 | |
24 | #ifndef __GST_REGISTRY_H__ |
25 | #define __GST_REGISTRY_H__ |
26 | |
27 | #include <gst/gstconfig.h> |
28 | #include <gst/gstplugin.h> |
29 | #include <gst/gstpluginfeature.h> |
30 | |
31 | G_BEGIN_DECLS |
32 | |
33 | #define GST_TYPE_REGISTRY (gst_registry_get_type ()) |
34 | #define GST_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_REGISTRY, GstRegistry)) |
35 | #define GST_IS_REGISTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_REGISTRY)) |
36 | #define GST_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_REGISTRY, GstRegistryClass)) |
37 | #define GST_IS_REGISTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_REGISTRY)) |
38 | #define GST_REGISTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_REGISTRY, GstRegistryClass)) |
39 | |
40 | typedef struct _GstRegistry GstRegistry; |
41 | typedef struct _GstRegistryClass GstRegistryClass; |
42 | typedef struct _GstRegistryPrivate GstRegistryPrivate; |
43 | |
44 | /** |
45 | * GstRegistry: |
46 | * |
47 | * Opaque #GstRegistry structure. |
48 | */ |
49 | struct _GstRegistry { |
50 | GstObject object; |
51 | |
52 | /*< private >*/ |
53 | GstRegistryPrivate *priv; |
54 | }; |
55 | |
56 | struct _GstRegistryClass { |
57 | GstObjectClass parent_class; |
58 | }; |
59 | |
60 | GST_API |
61 | GType gst_registry_get_type (void); |
62 | |
63 | GST_API |
64 | GstRegistry * gst_registry_get (void); |
65 | |
66 | GST_API |
67 | gboolean gst_registry_scan_path (GstRegistry *registry, const gchar *path); |
68 | |
69 | #if 0 |
70 | void gst_registry_add_path (GstRegistry * registry, const gchar * path); |
71 | GList* gst_registry_get_path_list (GstRegistry *registry); |
72 | #endif |
73 | |
74 | GST_API |
75 | gboolean gst_registry_add_plugin (GstRegistry *registry, GstPlugin *plugin); |
76 | |
77 | GST_API |
78 | void gst_registry_remove_plugin (GstRegistry *registry, GstPlugin *plugin); |
79 | |
80 | GST_API |
81 | gboolean gst_registry_add_feature (GstRegistry * registry, GstPluginFeature * feature); |
82 | |
83 | GST_API |
84 | void gst_registry_remove_feature (GstRegistry * registry, GstPluginFeature * feature); |
85 | |
86 | GST_API |
87 | GList* gst_registry_get_plugin_list (GstRegistry *registry); |
88 | |
89 | GST_API |
90 | GList* gst_registry_plugin_filter (GstRegistry *registry, |
91 | GstPluginFilter filter, |
92 | gboolean first, |
93 | gpointer user_data); |
94 | GST_API |
95 | GList* gst_registry_feature_filter (GstRegistry *registry, |
96 | GstPluginFeatureFilter filter, |
97 | gboolean first, |
98 | gpointer user_data); |
99 | GST_API |
100 | GList * gst_registry_get_feature_list (GstRegistry *registry, |
101 | GType type); |
102 | GST_API |
103 | GList * gst_registry_get_feature_list_by_plugin (GstRegistry *registry, const gchar *name); |
104 | |
105 | GST_API |
106 | guint32 gst_registry_get_feature_list_cookie (GstRegistry *registry); |
107 | |
108 | GST_API |
109 | GstPlugin* gst_registry_find_plugin (GstRegistry *registry, const gchar *name); |
110 | |
111 | GST_API |
112 | GstPluginFeature* gst_registry_find_feature (GstRegistry *registry, const gchar *name, GType type); |
113 | |
114 | GST_API |
115 | GstPlugin * gst_registry_lookup (GstRegistry *registry, const char *filename); |
116 | |
117 | GST_API |
118 | GstPluginFeature * gst_registry_lookup_feature (GstRegistry *registry, const char *name); |
119 | |
120 | GST_API |
121 | gboolean gst_registry_check_feature_version (GstRegistry *registry, |
122 | const gchar *feature_name, |
123 | guint min_major, |
124 | guint min_minor, |
125 | guint min_micro); |
126 | |
127 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRegistry, gst_object_unref) |
128 | |
129 | G_END_DECLS |
130 | |
131 | #endif /* __GST_REGISTRY_H__ */ |
132 | |
133 | |