mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 22:46:35 +00:00
4582abb4f3
We unfortunately need to do this to properly generate bindings for GstMiniObject...
24 lines
1.1 KiB
Diff
24 lines
1.1 KiB
Diff
Index: FieldBase.cs
|
|
===================================================================
|
|
--- FieldBase.cs (Revision 134154)
|
|
+++ FieldBase.cs (Arbeitskopie)
|
|
@@ -89,7 +89,7 @@
|
|
void CheckGlue ()
|
|
{
|
|
getterName = setterName = getOffsetName = null;
|
|
- if (Access != "public")
|
|
+ if (DefaultAccess != "public" && (!elem.HasAttribute ("access") || (Access != "public" && Access != "protected" && Access != "internal")))
|
|
return;
|
|
|
|
string prefix = (container_type.NS + "Sharp_" + container_type.NS + "_" + container_type.Name).Replace(".", "__").ToLower ();
|
|
@@ -154,8 +154,9 @@
|
|
StreamWriter sw = gen_info.Writer;
|
|
string modifiers = elem.HasAttribute ("new_flag") ? "new " : "";
|
|
bool is_struct = table.IsStruct (CType) || table.IsBoxed (CType);
|
|
+ string access = elem.HasAttribute ("access") ? elem.GetAttribute ("access") : "public";
|
|
|
|
- sw.WriteLine (indent + "public " + modifiers + CSType + " " + Name + " {");
|
|
+ sw.WriteLine (indent + access + " " + modifiers + CSType + " " + Name + " {");
|
|
|
|
if (Getter != null) {
|
|
sw.Write (indent + "\tget ");
|