Debian Codegraph @

tools/extra_defs_gen/generate_plugin_module_defs_gst.cc

raw symbols SCIP
1 /*
2 * generate_plugin_module_defs_gst.cc
3 *
4 * Created on: Jul 30, 2015
5 * Author: mkolny
6 */
7
8 #include <glibmm_generate_extra_defs/generate_extra_defs.h>
9
10 #include <gst/gst.h>
11
12 #include <iostream>
13
14 static stdcxx . . $ std/::stringcxx . . $ std/string#
15 get_element_factory_defscxx . . $ get_element_factory_defs(9fd9c2316217da8e).(GstElementFactory *factory)
16 {
17 GType type = 0;
18 stdcxx . . $ std/::stringcxx . . $ std/string# resultcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).;
19
20 GstPluginFeature* loaded_feature = gst_plugin_feature_load(GST_PLUGIN_FEATUREcxx . . $ `<external>/139039714904699713/gstpluginfeature.h:34:9`!(factory));
21 factory = GST_ELEMENT_FACTORYcxx . . $ `<external>/15193377161217626871/gstelementfactory.h:45:9`!(loaded_feature);
22 type = gst_element_factory_get_element_type(factory);
23 result =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). get_defscxx . . $ get_defs(51ec6cbd2d7d81ed).(type, gtype_is_a_pointercxx . . $ gtype_is_a_pointer(31596a199e1d8a50).);
24 g_object_unref(factory);
25 return resultcxx . . $ std/__cxx11/basic_string#basic_string(8f3aaafa33d05d0b).;
26 }
27
28
29 static gboolean
30 feature_filtercxx . . $ feature_filter(d36efe7715b99d6a). (GstPluginFeature *feature, gpointer user_data)
31 {
32 GstPlugin *plugin = gst_plugin_feature_get_plugin (feature);
33 gchar *expected_source = reinterpret_cast<char*>(user_data);
34
35 if (plugin == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!) {
36 return FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!;
37 }
38
39 return g_strcmp0 (expected_source, gst_plugin_get_source (plugin)) == 0;
40 }
41
42 int maincxx . . $ main(afcd3168fc1188a4). (int argc, char** argv)
43 {
44 if (argc < 2) {
45 stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Usage: " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). argv[0] <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " <source module>" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).;
46 return -1;
47 }
48
49 gst_init (&argc, &argv);
50
51 GstRegistry *registry = gst_registry_get ();
52
53 GList *features_list = gst_registry_feature_filter (registry, feature_filtercxx . . $ feature_filter(d36efe7715b99d6a)., FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!, argv[1]);
54 GList *l = features_list;
55 while (l) {
56 GstPluginFeature *feature = reinterpret_cast<GstPluginFeature*>(l->datacxx . . $ _GList#data.);
57
58 if (GST_IS_ELEMENT_FACTORYcxx . . $ `<external>/15193377161217626871/gstelementfactory.h:49:9`! (feature)) {
59 stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). get_element_factory_defscxx . . $ get_element_factory_defs(9fd9c2316217da8e). (GST_ELEMENT_FACTORY_CASTcxx . . $ `<external>/15193377161217626871/gstelementfactory.h:51:9`! (feature)) <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).;
60 }
61 l = l->nextcxx . . $ _GList#next.;
62 }
63
64 gst_plugin_feature_list_free (features_list);
65
66
67
68 }