| 1 | /* |
| 2 | * Copyright 2008 The gstreamermm Development Team |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public |
| 15 | * License along with this library; if not, write to the Free |
| 16 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 17 | */ |
| 18 | |
| 19 | #include <glibmm.h> |
| 20 | #include <gst/gst.h> |
| 21 | #include <algorithm> |
| 22 | #include <iostream> |
| 23 | |
| 24 | namespacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/ |
| 25 | { |
| 26 | |
| 27 | static gchar* nmspacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/nmspace. = 0; |
| 28 | static gchar* defsFilecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/defsFile. = 0; |
| 29 | static gchar* targetcxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/target. = 0; |
| 30 | |
| 31 | static stdcxx . . $ std/::stringcxx . . $ std/string# pluginNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/pluginName.; |
| 32 | static stdcxx . . $ std/::stringcxx . . $ std/string# cTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cTypeName.; |
| 33 | static stdcxx . . $ std/::stringcxx . . $ std/string# cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName.; |
| 34 | static stdcxx . . $ std/::stringcxx . . $ std/string# cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName.; |
| 35 | static stdcxx . . $ std/::stringcxx . . $ std/string# cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName.; |
| 36 | static stdcxx . . $ std/::stringcxx . . $ std/string# castMacrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/castMacro.; |
| 37 | static stdcxx . . $ std/::stringcxx . . $ std/string# parentIncludecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentInclude.; |
| 38 | static stdcxx . . $ std/::stringcxx . . $ std/string# parentNameSpacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentNameSpace.; |
| 39 | |
| 40 | static GType typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type. = 0; |
| 41 | |
| 42 | // To add a base class that is already wrapped to the list of wrapped base |
| 43 | // classes, insert it alphabetically below. |
| 44 | static const char *const wrappedBaseClassescxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/wrappedBaseClasses.[] = |
| 45 | { |
| 46 | "GstAudioFilter", |
| 47 | "GstAudioSink", |
| 48 | "GstAudioSrc", |
| 49 | "GstAudioBaseSink", |
| 50 | "GstAudioBaseSrc", |
| 51 | "GstBaseSink", |
| 52 | "GstBaseSrc", |
| 53 | "GstBaseTransform", |
| 54 | "GstBin", |
| 55 | "GstCddaParanoiaSrc", |
| 56 | "GstElement", |
| 57 | "GstPipeline", |
| 58 | "GstPushSrc", |
| 59 | "GstVideoSink" |
| 60 | }; |
| 61 | |
| 62 | static bool gst_type_is_a_pointercxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/gst_type_is_a_pointer(31596a199e1d8a50).(GType gtype) |
| 63 | { |
| 64 | return (g_type_is_acxx . . $ `<external>/9567554376676449156/gtype.h:760:9`!(gtype, G_TYPE_OBJECTcxx . . $ `<external>/9567554376676449156/gtype.h:189:9`!) || |
| 65 | g_type_is_acxx . . $ `<external>/9567554376676449156/gtype.h:760:9`!(gtype, G_TYPE_BOXEDcxx . . $ `<external>/9567554376676449156/gtype.h:177:9`!)); |
| 66 | } |
| 67 | |
| 68 | static stdcxx . . $ std/::stringcxx . . $ std/string# to_lowercasecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/to_lowercase(fd626fc03107dd24).(const stdcxx . . $ std/::stringcxx . . $ std/string#& str) |
| 69 | { |
| 70 | stdcxx . . $ std/::stringcxx . . $ std/string# resultcxx . . $ std/__cxx11/basic_string#basic_string(57f9c416bbf2a7d6). (str.sizecxx . . $ std/__cxx11/basic_string#size(6f8bd5c0ea8fb29a).(), '\0'); |
| 71 | stdcxx . . $ std/::transformcxx . . $ std/transform(da30451c4a040264).(str.begincxx . . $ std/__cxx11/basic_string#begin(a479f6ffbc603b2b).(), str.endcxx . . $ std/__cxx11/basic_string#end(a479f6ffbc603b2b).(), result.begincxx . . $ std/__cxx11/basic_string#begin(417acd00ce8503f4).(), &Glibcxx . . $ Glib/::Asciicxx . . $ Glib/Ascii/::tolowercxx . . $ Glib/Ascii/tolower(e6e5e845b55315fc).); |
| 72 | return resultcxx . . $ std/__cxx11/basic_string#basic_string(8f3aaafa33d05d0b).; |
| 73 | } |
| 74 | |
| 75 | static stdcxx . . $ std/::stringcxx . . $ std/string# get_cast_macrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_cast_macro(fd626fc03107dd24).(const stdcxx . . $ std/::stringcxx . . $ std/string#& typeName) |
| 76 | { |
| 77 | stdcxx . . $ std/::stringcxx . . $ std/string# resultcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 78 | |
| 79 | stdcxx . . $ std/::stringcxx . . $ std/string#::const_iteratorcxx . . $ std/__cxx11/basic_string#const_iterator# iter = typeName.endcxx . . $ std/__cxx11/basic_string#end(a479f6ffbc603b2b).(); |
| 80 | |
| 81 | bool prev_is_upper = false; |
| 82 | bool prev_is_lower = true; // Going backwards so last char should be lower. |
| 83 | int underscore_char_count = 0; // Used to count characters between underscores. |
| 84 | |
| 85 | for(--cxx . . $ __gnu_cxx/__normal_iterator#operator--(1613faa01bc3d014).iter; iter !=cxx . . $ __gnu_cxx/`operator!=`(30ee64f2df4eef8b). typeName.begincxx . . $ std/__cxx11/basic_string#begin(a479f6ffbc603b2b).(); --cxx . . $ __gnu_cxx/__normal_iterator#operator--(1613faa01bc3d014).iter, ++underscore_char_count) |
| 86 | { |
| 87 | if(Glibcxx . . $ Glib/::Asciicxx . . $ Glib/Ascii/::isuppercxx . . $ Glib/Ascii/isupper(b5fd09639b7a0261).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).iter)) |
| 88 | { |
| 89 | result.insertcxx . . $ std/__cxx11/basic_string#insert(b83086ae82b2f438).(0, 1, *cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).iter); |
| 90 | if(prev_is_lower && underscore_char_count > 1) |
| 91 | { |
| 92 | result.insertcxx . . $ std/__cxx11/basic_string#insert(b83086ae82b2f438).(0, 1, '_'); |
| 93 | underscore_char_count = 0; |
| 94 | } |
| 95 | prev_is_upper = true; |
| 96 | prev_is_lower = false; |
| 97 | } |
| 98 | else |
| 99 | { |
| 100 | if(prev_is_upper && underscore_char_count > 1) |
| 101 | { |
| 102 | result.insertcxx . . $ std/__cxx11/basic_string#insert(b83086ae82b2f438).(0, 1, '_'); |
| 103 | underscore_char_count = 0; |
| 104 | } |
| 105 | result.insertcxx . . $ std/__cxx11/basic_string#insert(b83086ae82b2f438).(0, 1, Glibcxx . . $ Glib/::Asciicxx . . $ Glib/Ascii/::touppercxx . . $ Glib/Ascii/toupper(e6e5e845b55315fc).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).iter)); |
| 106 | prev_is_upper = false; |
| 107 | prev_is_lower = true; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | // Insert first character (not included in the for loop). |
| 112 | result.insertcxx . . $ std/__cxx11/basic_string#insert(b83086ae82b2f438).(0, 1, Glibcxx . . $ Glib/::Asciicxx . . $ Glib/Ascii/::touppercxx . . $ Glib/Ascii/toupper(e6e5e845b55315fc).(*cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).iter)); |
| 113 | |
| 114 | return resultcxx . . $ std/__cxx11/basic_string#basic_string(8f3aaafa33d05d0b).; |
| 115 | } |
| 116 | |
| 117 | static bool is_wrapped_base_classcxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/is_wrapped_base_class(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string#& cTypeName) |
| 118 | { |
| 119 | return stdcxx . . $ std/::binary_searchcxx . . $ std/binary_search(9c8c5feaeede5dcf).(&wrappedBaseClassescxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/wrappedBaseClasses.[0], |
| 120 | &wrappedBaseClassescxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/wrappedBaseClasses.[G_N_ELEMENTScxx . . $ `<external>/12741050725406041920/gmacros.h:993:9`!(wrappedBaseClasses)], |
| 121 | cTypeName); |
| 122 | } |
| 123 | |
| 124 | static bool is_plugincxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/is_plugin(7c222eea44a24d43).(const stdcxx . . $ std/::stringcxx . . $ std/string#& cTypeName) |
| 125 | { |
| 126 | const stdcxx . . $ std/::stringcxx . . $ std/string# element = to_lowercasecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/to_lowercase(fd626fc03107dd24).(cTypeName.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(3)); |
| 127 | |
| 128 | if (GstElementFactory *const fact = gst_element_factory_find(element.c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).())) |
| 129 | { |
| 130 | g_object_unref(fact); |
| 131 | return true; |
| 132 | } |
| 133 | return false; |
| 134 | } |
| 135 | |
| 136 | static stdcxx . . $ std/::stringcxx . . $ std/string# get_property_wrap_statementscxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_property_wrap_statements(e578b9dc0f4e5036).(stdcxx . . $ std/::stringcxx . . $ std/string#& includeMacroCalls, |
| 137 | stdcxx . . $ std/::stringcxx . . $ std/string#& enumWrapStatements, |
| 138 | stdcxx . . $ std/::stringcxx . . $ std/string#& enumGTypeFunctionDefinitions) |
| 139 | { |
| 140 | stdcxx . . $ std/::stringcxx . . $ std/string# wrapStatementscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 141 | |
| 142 | //Get the list of properties: |
| 143 | GParamSpec** ppParamSpec = 0; |
| 144 | guint iCount = 0; |
| 145 | if(G_TYPE_IS_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:44:9`!(type)) |
| 146 | { |
| 147 | GObjectClass* pGClass = G_OBJECT_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:61:9`!(g_type_class_ref(type)); |
| 148 | ppParamSpec = g_object_class_list_properties (pGClass, &iCount); |
| 149 | g_type_class_unref(pGClass); |
| 150 | } |
| 151 | else if(G_TYPE_IS_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:300:9`!(type)) |
| 152 | { |
| 153 | gpointer pGInterface = g_type_default_interface_ref(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type.); |
| 154 | if(pGInterface) //We check because this fails for G_TYPE_VOLUME, for some reason. |
| 155 | { |
| 156 | ppParamSpec = g_object_interface_list_properties(pGInterface, &iCount); |
| 157 | g_type_default_interface_unref(pGInterface); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | //This extra check avoids an occasional crash, for instance for GVolume |
| 162 | if(!ppParamSpec) |
| 163 | iCount = 0; |
| 164 | |
| 165 | for(guint i = 0; i < iCount; i++) |
| 166 | { |
| 167 | GParamSpec* pParamSpec = ppParamSpec[i]; |
| 168 | if(pParamSpec) |
| 169 | { |
| 170 | GType propertyGType = pParamSpec->value_typecxx . . $ _GParamSpec#value_type.; |
| 171 | GType ownerGType = pParamSpec->owner_typecxx . . $ _GParamSpec#owner_type.; |
| 172 | |
| 173 | if(ownerGType == typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type.) |
| 174 | { |
| 175 | //Name and type: |
| 176 | stdcxx . . $ std/::stringcxx . . $ std/string# propertyName = g_param_spec_get_namecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(pParamSpec); |
| 177 | stdcxx . . $ std/::stringcxx . . $ std/string# propertyCType = g_type_namecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(propertyGType); |
| 178 | if (gst_type_is_a_pointercxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/gst_type_is_a_pointer(31596a199e1d8a50).(propertyGType)) |
| 179 | propertyCType +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). '*'; |
| 180 | |
| 181 | if((G_TYPE_IS_ENUMcxx . . $ `<external>/14280463788989859268/genums.h:39:9`!(propertyGType) || G_TYPE_IS_FLAGScxx . . $ `<external>/14280463788989859268/genums.h:83:9`!(propertyGType))) |
| 182 | { |
| 183 | stdcxx . . $ std/::stringcxx . . $ std/string# enumPrefix = propertyCType.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0, 3); |
| 184 | stdcxx . . $ std/::stringcxx . . $ std/string# propertyCppType = propertyCType.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(3); |
| 185 | |
| 186 | enumWrapStatements +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). |
| 187 | "_WRAP_PLUGIN_ENUM(" +cxx . . $ std/operator+(42c652dfebe55ad7). enumPrefix +cxx . . $ std/operator+(cd4e1e16c2d05e54). ',' +cxx . . $ std/operator+(db5dc2ea912c6495). propertyCppType +cxx . . $ std/operator+(cd4e1e16c2d05e54). ')'; |
| 188 | enumGTypeFunctionDefinitions +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). |
| 189 | "_PLUGIN_ENUM_GET_TYPE_FUNC(" +cxx . . $ std/operator+(42c652dfebe55ad7). propertyCType +cxx . . $ std/operator+(cd4e1e16c2d05e54). ')'; |
| 190 | } |
| 191 | |
| 192 | wrapStatements +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). " _WRAP_PROPERTY(\"" +cxx . . $ std/operator+(42c652dfebe55ad7). propertyName |
| 193 | +cxx . . $ std/operator+(900ec9581c410ad9). "\", _TRANSLATE(" +cxx . . $ std/operator+(db5dc2ea912c6495). propertyCType +cxx . . $ std/operator+(900ec9581c410ad9). ", `return'))\n"; |
| 194 | |
| 195 | includeMacroCalls +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_TRANSLATION_INCLUDE(" +cxx . . $ std/operator+(42c652dfebe55ad7). propertyCType +cxx . . $ std/operator+(900ec9581c410ad9). ")dnl\n"; |
| 196 | } |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | g_free(ppParamSpec); |
| 201 | return wrapStatementscxx . . $ std/__cxx11/basic_string#basic_string(8f3aaafa33d05d0b).; |
| 202 | } |
| 203 | |
| 204 | static stdcxx . . $ std/::stringcxx . . $ std/string# get_method_namecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_method_name(fd626fc03107dd24).(const stdcxx . . $ std/::stringcxx . . $ std/string#& signalName) |
| 205 | { |
| 206 | stdcxx . . $ std/::stringcxx . . $ std/string# result = signalNamecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).; |
| 207 | stdcxx . . $ std/::replacecxx . . $ std/replace(816cee973d7ce286).(result.begincxx . . $ std/__cxx11/basic_string#begin(417acd00ce8503f4).(), result.endcxx . . $ std/__cxx11/basic_string#end(417acd00ce8503f4).(), '-', '_'); |
| 208 | return resultcxx . . $ std/__cxx11/basic_string#basic_string(8f3aaafa33d05d0b).; |
| 209 | } |
| 210 | |
| 211 | static stdcxx . . $ std/::stringcxx . . $ std/string# get_c_enum_definition_macrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_c_enum_definition_macro(5ff892556e236fdf).(GType enumGType, |
| 212 | stdcxx . . $ std/::stringcxx . . $ std/string#& enumCType) |
| 213 | { |
| 214 | stdcxx . . $ std/::stringcxx . . $ std/string# resultcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 215 | |
| 216 | if(G_TYPE_IS_ENUMcxx . . $ `<external>/14280463788989859268/genums.h:39:9`!(enumGType)) |
| 217 | { |
| 218 | GEnumClass* enumClass = G_ENUM_CLASScxx . . $ `<external>/14280463788989859268/genums.h:46:9`!(g_type_class_ref(enumGType)); |
| 219 | if(enumClass) |
| 220 | { |
| 221 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_C_ENUM_DEFINITION(" +cxx . . $ std/operator+(42c652dfebe55ad7). enumCType +cxx . . $ std/operator+(cd4e1e16c2d05e54). ','; |
| 222 | for(guint i = 0; i < enumClass->n_valuescxx . . $ _GEnumClass#n_values.; i++) |
| 223 | { |
| 224 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# streamcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 225 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). stdcxx . . $ std/::stringcxx . . $ std/string#(enumClass->valuescxx . . $ _GEnumClass#values.[i].value_nickcxx . . $ _GEnumValue#value_nick.) +cxx . . $ std/operator+(cd4e1e16c2d05e54). ','; |
| 226 | stream <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). enumClass->valuescxx . . $ _GEnumClass#values.[i].valuecxx . . $ _GEnumValue#value.; |
| 227 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). stream.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).(); |
| 228 | if(i < enumClass->n_valuescxx . . $ _GEnumClass#n_values. - 1) |
| 229 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). ','; |
| 230 | } |
| 231 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). ')'; |
| 232 | } |
| 233 | g_type_class_unref(enumClass); |
| 234 | } |
| 235 | else |
| 236 | { |
| 237 | GFlagsClass* flagsClass = G_FLAGS_CLASScxx . . $ `<external>/14280463788989859268/genums.h:90:9`!(g_type_class_ref(enumGType)); |
| 238 | if(flagsClass) |
| 239 | { |
| 240 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_C_ENUM_DEFINITION(" +cxx . . $ std/operator+(42c652dfebe55ad7). enumCType +cxx . . $ std/operator+(cd4e1e16c2d05e54). ','; |
| 241 | for(guint i = 0; i < flagsClass->n_valuescxx . . $ _GFlagsClass#n_values.; i++) |
| 242 | { |
| 243 | stdcxx . . $ std/::stringstreamcxx . . $ std/stringstream# streamcxx . . $ std/__cxx11/basic_stringstream#basic_stringstream(49f6e7a06ebc5aa8).; |
| 244 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). stdcxx . . $ std/::stringcxx . . $ std/string#(flagsClass->valuescxx . . $ _GFlagsClass#values.[i].value_nickcxx . . $ _GFlagsValue#value_nick.) +cxx . . $ std/operator+(cd4e1e16c2d05e54). ','; |
| 245 | stream <<cxx . . $ std/basic_ostream#`operator<<`(b4c055c363850233). flagsClass->valuescxx . . $ _GFlagsClass#values.[i].valuecxx . . $ _GFlagsValue#value.; |
| 246 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). stream.strcxx . . $ std/__cxx11/basic_stringstream#str(d33e1a6fd36255f7).(); |
| 247 | if(i < flagsClass->n_valuescxx . . $ _GFlagsClass#n_values. - 1) |
| 248 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). ','; |
| 249 | } |
| 250 | result +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). ')'; |
| 251 | } |
| 252 | g_type_class_unref(flagsClass); |
| 253 | } |
| 254 | return resultcxx . . $ std/__cxx11/basic_string#basic_string(8f3aaafa33d05d0b).; |
| 255 | } |
| 256 | |
| 257 | static stdcxx . . $ std/::stringcxx . . $ std/string# get_signal_wrap_statementscxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_signal_wrap_statements(49697c13104b05a).(stdcxx . . $ std/::stringcxx . . $ std/string#& includeMacroCalls, |
| 258 | stdcxx . . $ std/::stringcxx . . $ std/string#& cEnumDefinitions, |
| 259 | stdcxx . . $ std/::stringcxx . . $ std/string#& enumWrapStatements, |
| 260 | stdcxx . . $ std/::stringcxx . . $ std/string#& actionSignalsMethodDeclarations, |
| 261 | stdcxx . . $ std/::stringcxx . . $ std/string#& enumGTypeFunctionDefinitions, |
| 262 | stdcxx . . $ std/::stringcxx . . $ std/string#& actionSignalsMethodDefinitions) |
| 263 | { |
| 264 | stdcxx . . $ std/::stringcxx . . $ std/string# wrapStatementscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 265 | |
| 266 | gpointer gclass_ref = 0; |
| 267 | gpointer ginterface_ref = 0; |
| 268 | |
| 269 | if(G_TYPE_IS_OBJECTcxx . . $ `<external>/1341695927569185362/gobject.h:44:9`!(type)) |
| 270 | gclass_ref = g_type_class_ref(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type.); //Ensures that class_init() is called. |
| 271 | else if(G_TYPE_IS_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:300:9`!(type)) |
| 272 | ginterface_ref = g_type_default_interface_ref(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type.); //install signals. |
| 273 | |
| 274 | //Get the list of signals: |
| 275 | guint iCount = 0; |
| 276 | guint* pIDs = g_signal_list_ids(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type., &iCount); |
| 277 | |
| 278 | //Loop through the list of signals: |
| 279 | if(pIDs) |
| 280 | { |
| 281 | for(guint i = 0; i < iCount; i++) |
| 282 | { |
| 283 | stdcxx . . $ std/::stringcxx . . $ std/string# convertMacroscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 284 | stdcxx . . $ std/::stringcxx . . $ std/string# wrapStatementcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 285 | stdcxx . . $ std/::stringcxx . . $ std/string# pluginEnumsTranslationMacroscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 286 | |
| 287 | stdcxx . . $ std/::stringcxx . . $ std/string# actionSignalMethodDeclarationcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 288 | stdcxx . . $ std/::stringcxx . . $ std/string# actionSignalReturnDeclarationcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 289 | stdcxx . . $ std/::stringcxx . . $ std/string# actionSignalReturnStatementcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 290 | stdcxx . . $ std/::stringcxx . . $ std/string# actionSignalEmitSignalStatementcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 291 | stdcxx . . $ std/::stringcxx . . $ std/string# actionSignalMethodDefinitioncxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 292 | |
| 293 | guint signal_id = pIDs[i]; |
| 294 | |
| 295 | //Name: |
| 296 | stdcxx . . $ std/::stringcxx . . $ std/string# signalName = g_signal_namecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(signal_id); |
| 297 | stdcxx . . $ std/::stringcxx . . $ std/string# signalMethodName = get_method_namecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_method_name(fd626fc03107dd24).(signalName); |
| 298 | |
| 299 | //Other information about the signal: |
| 300 | GSignalQuery signalQuery = { 0, 0, 0, GSignalFlags(0), 0, 0, 0, }; |
| 301 | g_signal_query(signal_id, &signalQuery); |
| 302 | |
| 303 | //Return type: |
| 304 | GType returnGType = signalQuery.return_typecxx . . $ _GSignalQuery#return_type. & ~G_SIGNAL_TYPE_STATIC_SCOPEcxx . . $ `<external>/15952772511652638895/gsignal.h:249:9`!; |
| 305 | |
| 306 | stdcxx . . $ std/::stringcxx . . $ std/string# returnCType = g_type_namecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(returnGType); |
| 307 | if (gst_type_is_a_pointercxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/gst_type_is_a_pointer(31596a199e1d8a50).(returnGType)) |
| 308 | returnCType +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). '*'; |
| 309 | |
| 310 | stdcxx . . $ std/::stringcxx . . $ std/string# returnCTypeTranslation = "_TRANSLATE(" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). |
| 311 | ", `return')"; |
| 312 | |
| 313 | // Start building action signal method declaration, definition and |
| 314 | // emit statement if dealing with an action signal. |
| 315 | if(signalQuery.signal_flagscxx . . $ _GSignalQuery#signal_flags. & G_SIGNAL_ACTION) |
| 316 | { |
| 317 | // Start the method declaration with a Doxygen comment about its |
| 318 | // purpose. |
| 319 | actionSignalMethodDeclaration =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). " /** This is a convenience method " |
| 320 | "for the action signal\n * signal_" +cxx . . $ std/operator+(42c652dfebe55ad7). signalMethodName +cxx . . $ std/operator+(900ec9581c410ad9). "().\n" |
| 321 | " */\n"; |
| 322 | |
| 323 | // Append the actual method declaration. |
| 324 | actionSignalMethodDeclaration +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). " " +cxx . . $ std/operator+(42c652dfebe55ad7). returnCTypeTranslation +cxx . . $ std/operator+(cd4e1e16c2d05e54). ' ' +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 325 | signalMethodName +cxx . . $ std/operator+(cd4e1e16c2d05e54). '('; |
| 326 | |
| 327 | // Start the method definition. |
| 328 | actionSignalMethodDefinition =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). returnCTypeTranslation +cxx . . $ std/operator+(4f1c09d7d89f005e). ' ' +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 329 | cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. +cxx . . $ std/operator+(900ec9581c410ad9). "::" +cxx . . $ std/operator+(db5dc2ea912c6495). signalMethodName +cxx . . $ std/operator+(cd4e1e16c2d05e54). '('; |
| 330 | |
| 331 | // Start the g_signal_emit() statement that will go in the method |
| 332 | // body. |
| 333 | actionSignalEmitSignalStatement =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). |
| 334 | " g_signal_emit_by_name(gobj(), \"" +cxx . . $ std/operator+(42c652dfebe55ad7). signalName +cxx . . $ std/operator+(900ec9581c410ad9). "\""; |
| 335 | |
| 336 | // Generate return declaration and return statement if not a void |
| 337 | // return. |
| 338 | if (returnCType !=cxx . . $ std/`operator!=`(4b17aa87c9f300c6). "void") |
| 339 | { |
| 340 | actionSignalReturnDeclaration =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). " " +cxx . . $ std/operator+(42c652dfebe55ad7). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). " result;\n"; |
| 341 | actionSignalReturnStatement =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). (cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).stdcxx . . $ std/::stringcxx . . $ std/string#)" return " +cxx . . $ std/operator+(900ec9581c410ad9). |
| 342 | "_CONVERT(``" +cxx . . $ std/operator+(db5dc2ea912c6495). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). "'', _LQ()" +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 343 | returnCTypeTranslation +cxx . . $ std/operator+(900ec9581c410ad9). "_RQ(), ``" +cxx . . $ std/operator+(900ec9581c410ad9). "result'');\n"; |
| 344 | } |
| 345 | |
| 346 | // Insert a newline above the action signal wrapping statements to |
| 347 | // separte it since it will have a Doxygen comment. |
| 348 | convertMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). '\n'; |
| 349 | } |
| 350 | |
| 351 | // Check for an enum first and attempt to generate _WRAP_ENUM() and |
| 352 | // _TRANSLATION() macros if it is not wrapped (see plugingen_base.m4 |
| 353 | // file for docs). |
| 354 | if(G_TYPE_IS_ENUMcxx . . $ `<external>/14280463788989859268/genums.h:39:9`!(returnGType) || G_TYPE_IS_FLAGScxx . . $ `<external>/14280463788989859268/genums.h:83:9`!(returnGType)) |
| 355 | { |
| 356 | stdcxx . . $ std/::stringcxx . . $ std/string# enumPrefix = returnCType.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0, 3); |
| 357 | stdcxx . . $ std/::stringcxx . . $ std/string# enumCppType = returnCType.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(3); |
| 358 | |
| 359 | enumWrapStatements +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_WRAP_PLUGIN_ENUM(" +cxx . . $ std/operator+(42c652dfebe55ad7). enumPrefix +cxx . . $ std/operator+(cd4e1e16c2d05e54). ',' |
| 360 | +cxx . . $ std/operator+(db5dc2ea912c6495). enumCppType +cxx . . $ std/operator+(cd4e1e16c2d05e54). ')'; |
| 361 | |
| 362 | enumGTypeFunctionDefinitions +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). |
| 363 | "_PLUGIN_ENUM_GET_TYPE_FUNC(" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCType +cxx . . $ std/operator+(cd4e1e16c2d05e54). ')'; |
| 364 | |
| 365 | cEnumDefinitions +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). get_c_enum_definition_macrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_c_enum_definition_macro(5ff892556e236fdf).(returnGType, |
| 366 | returnCType); |
| 367 | |
| 368 | // Define a translation for the plug-in enum in case the enum is |
| 369 | // used in an action signal method. These translations will be |
| 370 | // prepended to the action signals method definitions in the ccg file. |
| 371 | pluginEnumsTranslationMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_TRANSLATION(`" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). |
| 372 | "', `" +cxx . . $ std/operator+(db5dc2ea912c6495). enumPrefix +cxx . . $ std/operator+(900ec9581c410ad9). "::" +cxx . . $ std/operator+(db5dc2ea912c6495). enumCppType +cxx . . $ std/operator+(900ec9581c410ad9). "', `" +cxx . . $ std/operator+(db5dc2ea912c6495). enumPrefix +cxx . . $ std/operator+(900ec9581c410ad9). |
| 373 | "::" +cxx . . $ std/operator+(db5dc2ea912c6495). enumCppType +cxx . . $ std/operator+(900ec9581c410ad9). "')"; |
| 374 | } |
| 375 | else if(gst_type_is_a_pointercxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/gst_type_is_a_pointer(31596a199e1d8a50).(returnGType)) |
| 376 | { |
| 377 | // Boxed type returns for signals need special conversions because |
| 378 | // when unwrapping them, gobj_copy() should be used instead of just |
| 379 | // gobj() to guard against losing the original with a temporary |
| 380 | // wrapper. |
| 381 | if(g_type_is_acxx . . $ `<external>/9567554376676449156/gtype.h:760:9`!(returnGType, G_TYPE_BOXEDcxx . . $ `<external>/9567554376676449156/gtype.h:177:9`!)) |
| 382 | { |
| 383 | G_GNUC_BEGIN_IGNORE_DEPRECATIONScxx . . $ `<external>/12741050725406041920/gmacros.h:771:9`! // temporary disable deprecations because of G_TYPE_VALUE_ARRAY |
| 384 | // Unwrapping conversion: |
| 385 | stdcxx . . $ std/::stringcxx . . $ std/string# access_operator = (cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).returnGType != G_TYPE_ARRAYcxx . . $ `<external>/9334670746570349148/glib-types.h:116:9`! && |
| 386 | returnGType != G_TYPE_VALUE_ARRAYcxx . . $ `<external>/9852457533528670524/gvaluearray.h:40:9`! && |
| 387 | returnGType != GST_TYPE_TAG_LISTcxx . . $ `<external>/14531307554844243832/gsttaglist.h:111:9`! && |
| 388 | returnGType != GST_TYPE_STRUCTUREcxx . . $ `<external>/10942370624499717586/gststructure.h:64:9`!) ? "->" : "."; |
| 389 | G_GNUC_END_IGNORE_DEPRECATIONScxx . . $ `<external>/12741050725406041920/gmacros.h:774:9`! |
| 390 | // For GValueArray and TagList, RefPtr is not generated, and we need to use '.' operator. |
| 391 | convertMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "#m4 _CONVERSION(_LQ()" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCTypeTranslation +cxx . . $ std/operator+(900ec9581c410ad9). |
| 392 | "_RQ(), ``" +cxx . . $ std/operator+(db5dc2ea912c6495). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). "'', ``($3)" +cxx . . $ std/operator+(db5dc2ea912c6495). access_operator +cxx . . $ std/operator+(900ec9581c410ad9). "gobj_copy()'')\n"; |
| 393 | |
| 394 | // Also include a wrapping conversion: |
| 395 | |
| 396 | if(returnGType == GST_TYPE_TAG_LISTcxx . . $ `<external>/14531307554844243832/gsttaglist.h:111:9`!) |
| 397 | { |
| 398 | // Dealing with a GstTagList* return which has a special |
| 399 | // Glib::wrap() because of the conflict with the Glib::wrap() for |
| 400 | // GstStructure* (GstTagList is infact a GstStructure). |
| 401 | convertMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "#m4 _CONVERSION(``" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). "'', _LQ()" +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 402 | returnCTypeTranslation +cxx . . $ std/operator+(900ec9581c410ad9). "_RQ(), ``Glib::wrap_taglist($3)'')\n"; |
| 403 | } |
| 404 | else |
| 405 | { |
| 406 | // Dealing with a regular boxed type return. |
| 407 | convertMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "#m4 _CONVERSION(``" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). "'', " |
| 408 | "_LQ()" +cxx . . $ std/operator+(db5dc2ea912c6495). returnCTypeTranslation +cxx . . $ std/operator+(900ec9581c410ad9). "_RQ(), ``Glib::wrap($3)'')\n"; |
| 409 | } |
| 410 | } |
| 411 | else |
| 412 | { |
| 413 | // Dealing with a RefPtr<> return so include a wrapping conversion |
| 414 | // just so these conversions can be automatic for plug-ins and not |
| 415 | // needed in the global convert file. (An unwrapping conversion will |
| 416 | // already probably be included in the global convert file). |
| 417 | convertMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "#m4 _CONVERSION(``" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). |
| 418 | "'', _LQ()" +cxx . . $ std/operator+(db5dc2ea912c6495). returnCTypeTranslation +cxx . . $ std/operator+(900ec9581c410ad9). "_RQ(), " +cxx . . $ std/operator+(900ec9581c410ad9). |
| 419 | "``Glib::wrap($3)'')\n"; |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | includeMacroCalls +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_TRANSLATION_INCLUDE(" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCType +cxx . . $ std/operator+(900ec9581c410ad9). ")dnl\n"; |
| 424 | |
| 425 | // Start the wrap statement with a comment about action signals if |
| 426 | // dealing with an action signal. |
| 427 | if(signalQuery.signal_flagscxx . . $ _GSignalQuery#signal_flags. & G_SIGNAL_ACTION) |
| 428 | { |
| 429 | wrapStatement =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). |
| 430 | " /** This is an action signal which is designed to be used " |
| 431 | "as a method. To \n * do that, use its convenience method, " +cxx . . $ std/operator+(42c652dfebe55ad7). |
| 432 | signalMethodName +cxx . . $ std/operator+(900ec9581c410ad9). "().\n */\n"; |
| 433 | } |
| 434 | |
| 435 | wrapStatement +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). " _WRAP_SIGNAL(" +cxx . . $ std/operator+(42c652dfebe55ad7). returnCTypeTranslation +cxx . . $ std/operator+(cd4e1e16c2d05e54). ' ' +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 436 | signalMethodName +cxx . . $ std/operator+(cd4e1e16c2d05e54). '('; |
| 437 | |
| 438 | //Loop through the list of parameters: |
| 439 | const GType* pParameters = signalQuery.param_typescxx . . $ _GSignalQuery#param_types.; |
| 440 | if(pParameters) |
| 441 | { |
| 442 | for(unsigned i = 0; i < signalQuery.n_paramscxx . . $ _GSignalQuery#n_params.; i++) |
| 443 | { |
| 444 | GType paramGType = pParameters[i] & ~G_SIGNAL_TYPE_STATIC_SCOPEcxx . . $ `<external>/15952772511652638895/gsignal.h:249:9`!; |
| 445 | |
| 446 | //Parameter name: |
| 447 | //TODO: How can we get the real parameter name? |
| 448 | gchar* pchNum = g_strdup_printf("arg%u", i); |
| 449 | stdcxx . . $ std/::stringcxx . . $ std/string# paramName = stdcxx . . $ std/::stringcxx . . $ std/string#(pchNum); |
| 450 | g_free(pchNum); |
| 451 | |
| 452 | stdcxx . . $ std/::stringcxx . . $ std/string# paramCType = g_type_namecxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).(paramGType); |
| 453 | if (gst_type_is_a_pointercxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/gst_type_is_a_pointer(31596a199e1d8a50).(paramGType)) |
| 454 | paramCType +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). '*'; |
| 455 | |
| 456 | stdcxx . . $ std/::stringcxx . . $ std/string# paramCTypeTranslation = "_TRANSLATE(" +cxx . . $ std/operator+(42c652dfebe55ad7). paramCType +cxx . . $ std/operator+(900ec9581c410ad9). |
| 457 | ",`param')"; |
| 458 | |
| 459 | includeMacroCalls +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_TRANSLATION_INCLUDE(" +cxx . . $ std/operator+(42c652dfebe55ad7). paramCType +cxx . . $ std/operator+(900ec9581c410ad9). ")dnl\n"; |
| 460 | |
| 461 | // Continue building action signal method declaration, definition |
| 462 | // and emit statement if it is an action signal. |
| 463 | if(signalQuery.signal_flagscxx . . $ _GSignalQuery#signal_flags. & G_SIGNAL_ACTION) |
| 464 | { |
| 465 | actionSignalMethodDeclaration +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). paramCTypeTranslation +cxx . . $ std/operator+(4f1c09d7d89f005e). ' ' +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 466 | paramName; |
| 467 | |
| 468 | actionSignalMethodDefinition +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). paramCTypeTranslation +cxx . . $ std/operator+(4f1c09d7d89f005e). ' ' +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 469 | paramName; |
| 470 | |
| 471 | actionSignalEmitSignalStatement +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). ", _CONVERT(_LQ()" +cxx . . $ std/operator+(42c652dfebe55ad7). |
| 472 | paramCTypeTranslation +cxx . . $ std/operator+(900ec9581c410ad9). "_RQ(), ``" +cxx . . $ std/operator+(db5dc2ea912c6495). paramCType +cxx . . $ std/operator+(900ec9581c410ad9). "'', ``" +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 473 | paramName +cxx . . $ std/operator+(900ec9581c410ad9). "'')"; |
| 474 | } |
| 475 | |
| 476 | // Include wrapping conversions for signal parameters. (Unwrapping |
| 477 | // conversions will already probably be defined in the global |
| 478 | // convert file). Also try to wrap plug-in specific enums: |
| 479 | |
| 480 | if(G_TYPE_IS_ENUMcxx . . $ `<external>/14280463788989859268/genums.h:39:9`!(paramGType) || G_TYPE_IS_FLAGScxx . . $ `<external>/14280463788989859268/genums.h:83:9`!(paramGType)) |
| 481 | { |
| 482 | // Check for an enum first and attempt to generate _WRAP_ENUM() and |
| 483 | // _TRANSLATION() macros and other necessary code if it is not |
| 484 | // wrapped (see plugingen_base.m4 file for docs). |
| 485 | stdcxx . . $ std/::stringcxx . . $ std/string# enumPrefix = paramCType.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(0, 3); |
| 486 | stdcxx . . $ std/::stringcxx . . $ std/string# enumCppType = paramCType.substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(3); |
| 487 | |
| 488 | enumWrapStatements +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_WRAP_PLUGIN_ENUM(" +cxx . . $ std/operator+(42c652dfebe55ad7). enumPrefix +cxx . . $ std/operator+(cd4e1e16c2d05e54). ',' +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 489 | enumCppType +cxx . . $ std/operator+(cd4e1e16c2d05e54). ')'; |
| 490 | |
| 491 | enumGTypeFunctionDefinitions +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). |
| 492 | "_PLUGIN_ENUM_GET_TYPE_FUNC(" +cxx . . $ std/operator+(42c652dfebe55ad7). paramCType +cxx . . $ std/operator+(cd4e1e16c2d05e54). ')'; |
| 493 | |
| 494 | cEnumDefinitions +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). |
| 495 | get_c_enum_definition_macrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_c_enum_definition_macro(5ff892556e236fdf).(paramGType, paramCType); |
| 496 | |
| 497 | // Define a translation for the plug-in enum in case the enum is |
| 498 | // used in an action signal method. These translations will be |
| 499 | // prepended to the action signals method definitions in the |
| 500 | // ccg file. |
| 501 | pluginEnumsTranslationMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_TRANSLATION(`" +cxx . . $ std/operator+(42c652dfebe55ad7). paramCType +cxx . . $ std/operator+(900ec9581c410ad9). |
| 502 | "', `" +cxx . . $ std/operator+(db5dc2ea912c6495). enumPrefix +cxx . . $ std/operator+(900ec9581c410ad9). "::" +cxx . . $ std/operator+(db5dc2ea912c6495). enumCppType +cxx . . $ std/operator+(900ec9581c410ad9). "', `" +cxx . . $ std/operator+(db5dc2ea912c6495). enumPrefix +cxx . . $ std/operator+(900ec9581c410ad9). |
| 503 | "::" +cxx . . $ std/operator+(db5dc2ea912c6495). enumCppType +cxx . . $ std/operator+(900ec9581c410ad9). "')"; |
| 504 | } |
| 505 | if(gst_type_is_a_pointercxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/gst_type_is_a_pointer(31596a199e1d8a50).(paramGType)) |
| 506 | { |
| 507 | if(paramGType == GST_TYPE_TAG_LISTcxx . . $ `<external>/14531307554844243832/gsttaglist.h:111:9`!) |
| 508 | { |
| 509 | // Dealing with a GstTagList* which has a special Glib::wrap() |
| 510 | // because of the conflict with the Glib::wrap() for |
| 511 | // GstStructure* (GstTagList is in fact a GstStructure). |
| 512 | convertMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "#m4 _CONVERSION(``" +cxx . . $ std/operator+(42c652dfebe55ad7). paramCType +cxx . . $ std/operator+(900ec9581c410ad9). "'', " |
| 513 | "_LQ()" +cxx . . $ std/operator+(db5dc2ea912c6495). paramCTypeTranslation +cxx . . $ std/operator+(900ec9581c410ad9). "_RQ(), " |
| 514 | "``Glib::wrap_taglist($3, true)'')\n"; |
| 515 | } |
| 516 | else |
| 517 | { |
| 518 | // Dealing with reference counted parameter or a boxed type. |
| 519 | convertMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "#m4 _CONVERSION(``" +cxx . . $ std/operator+(42c652dfebe55ad7). paramCType +cxx . . $ std/operator+(900ec9581c410ad9). |
| 520 | "'', _LQ()" +cxx . . $ std/operator+(db5dc2ea912c6495). paramCTypeTranslation +cxx . . $ std/operator+(900ec9581c410ad9). "_RQ(), " +cxx . . $ std/operator+(900ec9581c410ad9). |
| 521 | "``Glib::wrap($3, true)'')\n"; |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | wrapStatement +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). paramCTypeTranslation +cxx . . $ std/operator+(4f1c09d7d89f005e). ' ' +cxx . . $ std/operator+(db5dc2ea912c6495). paramName; |
| 526 | |
| 527 | if(i < signalQuery.n_paramscxx . . $ _GSignalQuery#n_params. - 1) |
| 528 | { |
| 529 | wrapStatement +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). ", "; |
| 530 | |
| 531 | // Append commas to action signal method declaration and |
| 532 | // definition if it is an action signal. The emit statement |
| 533 | // pre-pends the commas so adding commas to it is not done here. |
| 534 | if(signalQuery.signal_flagscxx . . $ _GSignalQuery#signal_flags. & G_SIGNAL_ACTION) |
| 535 | { |
| 536 | actionSignalMethodDeclaration +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). ", "; |
| 537 | actionSignalMethodDefinition +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). ", "; |
| 538 | } |
| 539 | } |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | wrapStatement +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "), \"" +cxx . . $ std/operator+(42c652dfebe55ad7). signalName +cxx . . $ std/operator+(900ec9581c410ad9). "\", no_default_handler)\n"; |
| 544 | |
| 545 | // Finish off the action signal declaration and definition if this |
| 546 | // is an action signal. |
| 547 | if(signalQuery.signal_flagscxx . . $ _GSignalQuery#signal_flags. & G_SIGNAL_ACTION) |
| 548 | { |
| 549 | // Close off the method declaration. |
| 550 | actionSignalMethodDeclaration +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). ");\n\n"; |
| 551 | |
| 552 | // Append a return location if the signal return is not void. |
| 553 | if(returnCType !=cxx . . $ std/`operator!=`(4b17aa87c9f300c6). "void") |
| 554 | actionSignalEmitSignalStatement +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). ", &result"; |
| 555 | |
| 556 | // Close off the emit statement. |
| 557 | actionSignalEmitSignalStatement +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). ", static_cast<void*>(0));\n"; |
| 558 | |
| 559 | // Generate the method definition. |
| 560 | actionSignalMethodDefinition +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). ")\n" |
| 561 | "{\n" +cxx . . $ std/operator+(42c652dfebe55ad7). |
| 562 | actionSignalReturnDeclaration +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 563 | actionSignalEmitSignalStatement +cxx . . $ std/operator+(db5dc2ea912c6495). |
| 564 | actionSignalReturnStatement +cxx . . $ std/operator+(900ec9581c410ad9). |
| 565 | "}\n\n"; |
| 566 | |
| 567 | // Append and extra end of line to separate the wrap statement from |
| 568 | // the rest since it has a Doxygen comment block (that's how the wrap |
| 569 | // statement was started if this is an action signal). |
| 570 | wrapStatement +=cxx . . $ std/__cxx11/basic_string#`operator+=`(63cc1ae870623930). '\n'; |
| 571 | } |
| 572 | |
| 573 | wrapStatements +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). convertMacros +cxx . . $ std/operator+(2764d1739bf7913d). wrapStatement; |
| 574 | actionSignalsMethodDeclarations +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). actionSignalMethodDeclaration; |
| 575 | actionSignalsMethodDefinitions +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). pluginEnumsTranslationMacros +cxx . . $ std/operator+(2764d1739bf7913d). |
| 576 | actionSignalMethodDefinition; |
| 577 | } |
| 578 | } |
| 579 | |
| 580 | g_free(pIDs); |
| 581 | |
| 582 | if(gclass_ref) |
| 583 | g_type_class_unref(gclass_ref); |
| 584 | else if(ginterface_ref) |
| 585 | g_type_default_interface_unref(ginterface_ref); |
| 586 | |
| 587 | return wrapStatementscxx . . $ std/__cxx11/basic_string#basic_string(8f3aaafa33d05d0b).; |
| 588 | } |
| 589 | |
| 590 | static stdcxx . . $ std/::stringcxx . . $ std/string# get_interface_macroscxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_interface_macros(bf5aff8dd49a1301).(stdcxx . . $ std/::stringcxx . . $ std/string#& includeMacroCalls, |
| 591 | stdcxx . . $ std/::stringcxx . . $ std/string#& cppExtends) |
| 592 | { |
| 593 | stdcxx . . $ std/::stringcxx . . $ std/string# interfaceMacroscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 594 | |
| 595 | guint n_interfaces = 0; |
| 596 | GType* interfaces = g_type_interfaces(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type., &n_interfaces); |
| 597 | |
| 598 | GType parent_type = g_type_parent(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type.); |
| 599 | |
| 600 | for(guint i = 0; i < n_interfaces; i++) |
| 601 | { |
| 602 | if(!g_type_is_acxx . . $ `<external>/9567554376676449156/gtype.h:760:9`!(parent_type, interfaces[i])) |
| 603 | { |
| 604 | stdcxx . . $ std/::stringcxx . . $ std/string# interfaceCType = stdcxx . . $ std/::stringcxx . . $ std/string#(g_type_name(interfaces[i])) +cxx . . $ std/operator+(cd4e1e16c2d05e54). '*'; |
| 605 | |
| 606 | cppExtends +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "public _TRANSLATE(`" +cxx . . $ std/operator+(42c652dfebe55ad7). interfaceCType +cxx . . $ std/operator+(900ec9581c410ad9). "',`type')"; |
| 607 | |
| 608 | if(i < n_interfaces - 1) |
| 609 | cppExtends +=cxx . . $ std/__cxx11/basic_string#`operator+=`(978ca1133b5f6e74). ", "; |
| 610 | |
| 611 | interfaceMacros +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). " _IMPLEMENTS_INTERFACE(_TRANSLATE(`" +cxx . . $ std/operator+(42c652dfebe55ad7). |
| 612 | interfaceCType +cxx . . $ std/operator+(900ec9581c410ad9). "',`type'))\n"; |
| 613 | |
| 614 | includeMacroCalls +=cxx . . $ std/__cxx11/basic_string#`operator+=`(c0b47be1fddc0e75). "_TRANSLATION_INCLUDE(" +cxx . . $ std/operator+(42c652dfebe55ad7). interfaceCType +cxx . . $ std/operator+(900ec9581c410ad9). ")dnl\n"; |
| 615 | } |
| 616 | } |
| 617 | |
| 618 | g_free(interfaces); |
| 619 | return interfaceMacroscxx . . $ std/__cxx11/basic_string#basic_string(8f3aaafa33d05d0b).; |
| 620 | } |
| 621 | |
| 622 | static void generate_hg_filecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/generate_hg_file(769656a0f43d4700).(const stdcxx . . $ std/::stringcxx . . $ std/string#& includeMacroCalls, |
| 623 | const stdcxx . . $ std/::stringcxx . . $ std/string#& cEnumDefinitions, |
| 624 | const stdcxx . . $ std/::stringcxx . . $ std/string#& enumWrapStatements, |
| 625 | const stdcxx . . $ std/::stringcxx . . $ std/string#& cppExtends, |
| 626 | const stdcxx . . $ std/::stringcxx . . $ std/string#& interfaceMacros, |
| 627 | const stdcxx . . $ std/::stringcxx . . $ std/string#& actionSignalsMethodDeclarations, |
| 628 | const stdcxx . . $ std/::stringcxx . . $ std/string#& propertyWrapStatements, |
| 629 | const stdcxx . . $ std/::stringcxx . . $ std/string#& signalWrapStatements) |
| 630 | { |
| 631 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "// Generated by generate_plugin_gmmproc_file. Don't edit this file." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 632 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "include(plugingen_base.m4)dnl" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 633 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "changecom()dnl" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 634 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "#include <" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). parentIncludecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentInclude. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '/' <<cxx . . $ std/`operator<<`(88df5bef833f7f83). |
| 635 | to_lowercasecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/to_lowercase(fd626fc03107dd24).(cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ".h>" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 636 | |
| 637 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). includeMacroCalls; |
| 638 | |
| 639 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "_DEFS(" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). targetcxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/target. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ',' <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). defsFilecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/defsFile. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ')' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). |
| 640 | stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 641 | |
| 642 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "_CONFIGINCLUDE(gstreamermmconfig.h)" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 643 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "_IS_DEPRECATED" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 644 | |
| 645 | if(!cEnumDefinitions.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 646 | { |
| 647 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "// Plug-in C enums used in signals:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 648 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cEnumDefinitions; |
| 649 | } |
| 650 | |
| 651 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "namespace " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). nmspacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/nmspace. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 652 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '{' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 653 | |
| 654 | if(!enumWrapStatements.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 655 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). enumWrapStatements; |
| 656 | |
| 657 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "/** A Wrapper for the " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). pluginNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/pluginName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " plugin." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 658 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " * Please note that not all plug-ins are available on all " |
| 659 | "systems so care\n * must be taken that they exist before they are used " |
| 660 | "otherwise there will\n * be errors and possibly a crash." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 661 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " *" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 662 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " * @ingroup " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). nmspacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/nmspace. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Plugins" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 663 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " * @deprecated Plugins API is deprecated, and should not be used in a new code." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 664 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " */" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 665 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "class " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 666 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ": public " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). parentNameSpacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentNameSpace. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "::" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName.; |
| 667 | |
| 668 | if(!cppExtends.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 669 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ", " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppExtends; |
| 670 | |
| 671 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 672 | |
| 673 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '{' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 674 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " _CLASS_GOBJECT(" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ", " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). |
| 675 | ", " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). castMacrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/castMacro. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "_GSTREAMERMM, " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). parentNameSpacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentNameSpace. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "::" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). |
| 676 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ", " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ')' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 677 | |
| 678 | if(!interfaceMacros.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 679 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). interfaceMacros <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 680 | |
| 681 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " _IS_GSTREAMERMM_PLUGIN" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 682 | |
| 683 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "protected:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 684 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "();" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 685 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " explicit " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "(const Glib::ustring& name);" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 686 | |
| 687 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "public:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 688 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " /** Creates a new " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). pluginNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/pluginName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " plugin with a unique name." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 689 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " */" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 690 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " _WRAP_CREATE()" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 691 | |
| 692 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " /** Creates a new " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). pluginNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/pluginName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " plugin with the given name." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 693 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " */" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 694 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " _WRAP_CREATE(const Glib::ustring& name)" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 695 | |
| 696 | if(!actionSignalsMethodDeclarations.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 697 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(88df5bef833f7f83). actionSignalsMethodDeclarations; |
| 698 | |
| 699 | if(!propertyWrapStatements.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 700 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(88df5bef833f7f83). propertyWrapStatements; |
| 701 | |
| 702 | if(!signalWrapStatements.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 703 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(88df5bef833f7f83). signalWrapStatements; |
| 704 | |
| 705 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "};" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 706 | |
| 707 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "} // namespace " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). nmspacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/nmspace. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 708 | } |
| 709 | |
| 710 | static void generate_ccg_filecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/generate_ccg_file(c3ca1c130ce09c52).(const stdcxx . . $ std/::stringcxx . . $ std/string#& enumGTypeFunctionDefinitions, |
| 711 | const stdcxx . . $ std/::stringcxx . . $ std/string#& actionSignalsMethodDefinitions) |
| 712 | { |
| 713 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "// Generated by generate_plugin_gmmproc_file. Don't edit this file." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 714 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "include(plugingen_base.m4)dnl" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 715 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "changecom()dnl" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 716 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "_PINCLUDE(" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). parentIncludecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentInclude. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "/private/" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). |
| 717 | to_lowercasecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/to_lowercase(fd626fc03107dd24).(cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName.) <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "_p.h)" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 718 | |
| 719 | stdcxx . . $ std/::stringcxx . . $ std/string# getTypeName = to_lowercasecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/to_lowercase(fd626fc03107dd24).(castMacrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/castMacro.) +cxx . . $ std/operator+(900ec9581c410ad9). "_gstreamermm_get_type"; |
| 720 | |
| 721 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "extern \"C\"" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 722 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '{' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 723 | |
| 724 | if(!enumGTypeFunctionDefinitions.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 725 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). enumGTypeFunctionDefinitions; |
| 726 | |
| 727 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "GType " <<cxx . . $ std/`operator<<`(88df5bef833f7f83). getTypeName <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "()" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 728 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '{' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 729 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " static GType type = 0;" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 730 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " GstElementFactory* factory = 0;" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 731 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " GstPluginFeature* feature = 0;" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 732 | |
| 733 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " if(!type)" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 734 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " {" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 735 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " factory = gst_element_factory_find(\"" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). pluginNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/pluginName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\");" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 736 | |
| 737 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " // Make sure that the feature is actually loaded:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 738 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " if(factory)" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 739 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " {" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 740 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " feature =" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 741 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 742 | |
| 743 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " g_object_unref(factory);" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 744 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " factory = GST_ELEMENT_FACTORY(feature);" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 745 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " type = gst_element_factory_get_element_type(factory);" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 746 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " g_object_unref(factory);" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 747 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " }" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 748 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " }" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 749 | |
| 750 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " return type;" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 751 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '}' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 752 | |
| 753 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "} // extern \"C\"" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 754 | |
| 755 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "namespace " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). nmspacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/nmspace. <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 756 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '{' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 757 | |
| 758 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "::" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "()" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 759 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ": _CONSTRUCT(\"name\", static_cast<char*>(0))" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 760 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "{}" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 761 | |
| 762 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "::" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). |
| 763 | "(const Glib::ustring& name)" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 764 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). ": _CONSTRUCT(\"name\", name.c_str())" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 765 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "{}" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 766 | |
| 767 | if(!actionSignalsMethodDefinitions.emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).()) |
| 768 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). actionSignalsMethodDefinitions; |
| 769 | |
| 770 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). '}' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 771 | } |
| 772 | |
| 773 | } // anonymous namespace |
| 774 | |
| 775 | int maincxx . . $ main(afcd3168fc1188a4).(int argc, char** argv) |
| 776 | { |
| 777 | gboolean hgFile = false; |
| 778 | gboolean ccgFile = false; |
| 779 | gboolean confirmExistence = false; |
| 780 | |
| 781 | static const GOptionEntry optionEntries[] = |
| 782 | { |
| 783 | {"hg", 'h', 0, G_OPTION_ARG_NONE, &hgFile, "Generate preliminary .hg file.", 0 }, |
| 784 | {"ccg", 'c', 0, G_OPTION_ARG_NONE, &ccgFile, "Generate preliminary .ccg file.", 0 }, |
| 785 | {"confirm-existence", 'e', 0, G_OPTION_ARG_NONE, &confirmExistence, "Returns success if the plugin exists.", 0 }, |
| 786 | {"namespace", 'n', 0, G_OPTION_ARG_STRING, &nmspacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/nmspace., "The namespace of the plugin.", "namespace" }, |
| 787 | {"main-defs", 'm', 0, G_OPTION_ARG_STRING, &defsFilecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/defsFile., "The main defs file (no .defs extension).", "def" }, |
| 788 | {"target", 't', 0, G_OPTION_ARG_STRING, &targetcxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/target., "The .h and .cc target directory.", "directory" }, |
| 789 | { 0, '\0', 0, G_OPTION_ARG_NONE, 0, 0, 0 } |
| 790 | }; |
| 791 | |
| 792 | Glibcxx . . $ Glib/::OptionContextcxx . . $ Glib/OptionContext# optionContextcxx . . $ Glib/OptionContext#OptionContext(1ff0bff2cee2bc51).("<plugin-name> [CppPluginClassName]"cxx . . $ Glib/ustring#ustring(85c52e162fed56f9).); |
| 793 | optionContext.set_summarycxx . . $ Glib/OptionContext#set_summary(1ff0bff2cee2bc51).( |
| 794 | "Outputs a GStreamer plugin's gmmproc files to be processed by gmmproc "cxx . . $ Glib/ustring#ustring(85c52e162fed56f9). |
| 795 | "for\nwrapping in gstreamermm. Use the same syntax for the plugin name " |
| 796 | "as in\ngst-inspect and supply the desired C++ class name unless " |
| 797 | "the\n--confirm-existence option is used. The generated files are " |
| 798 | "preliminary\nfiles that need to be run through m4 including the macros " |
| 799 | "in the\nplugingen*.m4 files to get the final .hg or .ccg file." |
| 800 | ); |
| 801 | |
| 802 | g_option_context_add_main_entries(optionContext.gobjcxx . . $ Glib/OptionContext#gobj(33a0adbaac4af6fe).(), optionEntries, 0); |
| 803 | g_option_context_add_group(optionContext.gobjcxx . . $ Glib/OptionContext#gobj(33a0adbaac4af6fe).(), gst_init_get_option_group()); |
| 804 | |
| 805 | try |
| 806 | { |
| 807 | if(!optionContext.parsecxx . . $ Glib/OptionContext#parse(82fa2dc335b2ba4e).(argc, argv)) |
| 808 | { |
| 809 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Error parsing options and initializing. Sorry." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). |
| 810 | stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 811 | return 1; |
| 812 | } |
| 813 | } |
| 814 | catch(Glibcxx . . $ Glib/::OptionErrorcxx . . $ Glib/OptionError#& error) |
| 815 | { |
| 816 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Error parsing options and initializing GStreamer." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). |
| 817 | stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Run `" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). argv[0] <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -?' for a list of options." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). |
| 818 | stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 819 | return 1; |
| 820 | } |
| 821 | |
| 822 | if(confirmExistence) |
| 823 | { |
| 824 | if(argc != 2) |
| 825 | { |
| 826 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "A plugin name must be supplied to confirm plugin " |
| 827 | "existence." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Run `" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). argv[0] <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). |
| 828 | " -?' for help." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 829 | return 1; |
| 830 | } |
| 831 | } |
| 832 | else if(argc != 3) |
| 833 | { |
| 834 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "A plugin name and C++ class name must be supplied to " |
| 835 | "generate gmmproc files." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). |
| 836 | "Run `" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). argv[0] <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -?' for help." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 837 | return 1; |
| 838 | } |
| 839 | |
| 840 | pluginNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/pluginName. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). argv[1]; |
| 841 | |
| 842 | if(!confirmExistence) |
| 843 | cppTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppTypeName. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). argv[2]; |
| 844 | |
| 845 | GstElementFactory* factory = 0; |
| 846 | |
| 847 | factory = gst_element_factory_find(pluginNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/pluginName..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()); |
| 848 | |
| 849 | // Make sure that the feature is actually loaded: |
| 850 | if(factory) |
| 851 | { |
| 852 | GstPluginFeature* loaded_feature = |
| 853 | gst_plugin_feature_load(GST_PLUGIN_FEATUREcxx . . $ `<external>/139039714904699713/gstpluginfeature.h:34:9`!(factory)); |
| 854 | |
| 855 | g_object_unref(factory); |
| 856 | factory = GST_ELEMENT_FACTORYcxx . . $ `<external>/15193377161217626871/gstelementfactory.h:45:9`!(loaded_feature); |
| 857 | typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type. = gst_element_factory_get_element_type(factory); |
| 858 | } |
| 859 | |
| 860 | if(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type.) |
| 861 | { |
| 862 | if(confirmExistence) |
| 863 | return 0; |
| 864 | |
| 865 | if(!nmspacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/nmspace. || !defsFilecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/defsFile. || !targetcxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/target.) |
| 866 | { |
| 867 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "A namespace, a default defs file and a target directory " |
| 868 | "must be supplied" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "with the --namespace, --main-defs " |
| 869 | "and --target options (run with -? option for " <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). |
| 870 | "details)." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 871 | return 1; |
| 872 | } |
| 873 | |
| 874 | cTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cTypeName. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). g_type_name(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type.); |
| 875 | cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). g_type_name(g_type_parent(typecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/type.)); |
| 876 | |
| 877 | while(!cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName..emptycxx . . $ std/__cxx11/basic_string#empty(3482b152b9333168).() && |
| 878 | !is_wrapped_base_classcxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/is_wrapped_base_class(7c222eea44a24d43).(cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName.) && !is_plugincxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/is_plugin(7c222eea44a24d43).(cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName.)) |
| 879 | { |
| 880 | cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). |
| 881 | g_type_name(g_type_parent(g_type_from_name(cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName..c_strcxx . . $ std/__cxx11/basic_string#c_str(8e614c7de0b1573e).()))); |
| 882 | } |
| 883 | |
| 884 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName. =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). cParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cParentTypeName..substrcxx . . $ std/__cxx11/basic_string#substr(149c655009c9bbd2).(3); |
| 885 | castMacrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/castMacro. =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). get_cast_macrocxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_cast_macro(fd626fc03107dd24).(cTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cTypeName.); |
| 886 | |
| 887 | // Check for gstreamermm base classes so that the Gst namespace and the |
| 888 | // gstreamermm include directory is always used with them. |
| 889 | if( |
| 890 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("AudioFilter") == 0 || |
| 891 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("AudioSink") == 0 || |
| 892 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("AudioSrc") == 0 || |
| 893 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("AudioBaseSink") == 0 || |
| 894 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("AudioBaseSrc") == 0 || |
| 895 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("BaseSink") == 0 || |
| 896 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("BaseSrc") == 0 || |
| 897 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("BaseTransform") == 0 || |
| 898 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("Bin") == 0 || |
| 899 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("AudioCdSrc") == 0 || |
| 900 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("Element") == 0 || |
| 901 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("Object") == 0 || |
| 902 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("Pipeline") == 0 || |
| 903 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("PushSrc") == 0 || |
| 904 | cppParentTypeNamecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/cppParentTypeName..comparecxx . . $ std/__cxx11/basic_string#compare(a291d14eafe45d05).("VideoSink") == 0 |
| 905 | ) |
| 906 | { |
| 907 | parentIncludecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentInclude. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). "gstreamermm"; |
| 908 | parentNameSpacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentNameSpace. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). "Gst"; |
| 909 | } |
| 910 | else |
| 911 | { |
| 912 | parentIncludecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentInclude. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). targetcxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/target.; |
| 913 | parentNameSpacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/parentNameSpace. =cxx . . $ std/__cxx11/basic_string#`operator=`(978ca1133b5f6e74). nmspacecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/nmspace.; |
| 914 | } |
| 915 | |
| 916 | if(hgFile || ccgFile) |
| 917 | { |
| 918 | stdcxx . . $ std/::stringcxx . . $ std/string# includeMacroCallscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 919 | stdcxx . . $ std/::stringcxx . . $ std/string# cEnumDefinitionscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 920 | stdcxx . . $ std/::stringcxx . . $ std/string# enumWrapStatementscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 921 | stdcxx . . $ std/::stringcxx . . $ std/string# actionSignalsMethodDeclarationscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 922 | stdcxx . . $ std/::stringcxx . . $ std/string# propertyWrapStatementscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 923 | stdcxx . . $ std/::stringcxx . . $ std/string# signalWrapStatementscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 924 | stdcxx . . $ std/::stringcxx . . $ std/string# enumGTypeFunctionDefinitionscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 925 | stdcxx . . $ std/::stringcxx . . $ std/string# actionSignalsMethodDefinitionscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 926 | |
| 927 | propertyWrapStatements =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). get_property_wrap_statementscxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_property_wrap_statements(e578b9dc0f4e5036).(includeMacroCalls, |
| 928 | enumWrapStatements, enumGTypeFunctionDefinitions); |
| 929 | |
| 930 | signalWrapStatements =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). get_signal_wrap_statementscxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_signal_wrap_statements(49697c13104b05a).(includeMacroCalls, |
| 931 | cEnumDefinitions, enumWrapStatements, actionSignalsMethodDeclarations, |
| 932 | enumGTypeFunctionDefinitions, actionSignalsMethodDefinitions); |
| 933 | |
| 934 | if(hgFile) |
| 935 | { |
| 936 | stdcxx . . $ std/::stringcxx . . $ std/string# interfaceMacroscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 937 | stdcxx . . $ std/::stringcxx . . $ std/string# cppExtendscxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 938 | |
| 939 | interfaceMacros =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). get_interface_macroscxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/get_interface_macros(bf5aff8dd49a1301).(includeMacroCalls, cppExtends); |
| 940 | |
| 941 | generate_hg_filecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/generate_hg_file(769656a0f43d4700).(includeMacroCalls, cEnumDefinitions, |
| 942 | enumWrapStatements, cppExtends, interfaceMacros, |
| 943 | actionSignalsMethodDeclarations, propertyWrapStatements, |
| 944 | signalWrapStatements); |
| 945 | } |
| 946 | else |
| 947 | { |
| 948 | generate_ccg_filecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/generate_ccg_file(c3ca1c130ce09c52).(enumGTypeFunctionDefinitions, |
| 949 | actionSignalsMethodDefinitions); |
| 950 | } |
| 951 | } |
| 952 | } |
| 953 | else |
| 954 | { |
| 955 | stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Unrecognized Gstreamer element type." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 956 | |
| 957 | if(confirmExistence) |
| 958 | return 1; |
| 959 | |
| 960 | if(hgFile) |
| 961 | { |
| 962 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "_DEFS(" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). targetcxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/target. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ',' <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). defsFilecxx . . $ `$anonymous_namespace_tools/extra_defs_gen/generate_plugin_gmmproc_file.cc`/defsFile. <<cxx . . $ std/`operator<<`(dd93bb5737bfac24). ')' <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). |
| 963 | stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 964 | |
| 965 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "// The build system does not know of a gstreamer plugin named " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). |
| 966 | argv[1] <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 967 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "// A wrapper class for it was not generated." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). |
| 968 | stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 969 | } |
| 970 | } |
| 971 | |
| 972 | if(factory) |
| 973 | g_object_unref(factory); |
| 974 | |
| 975 | return 0; |
| 976 | } |