mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 16:25:27 +00:00
12cd8d0d17
a bit; only Ref the pointer if Owned is false (and then set it to true), and vice versa for Unref. * glib/Opaque.cs (Opaque): set owned before setting Raw, so that Raw will be reffed properly. (GetOpaque): Fix this up to dtrt in all cases with refcounted opaques. * gtk/TreeView.custom (GetPathAtPos): Use "GetOpaque(...)" rather than "new TreePath()" * sample/opaquetest/*: regression test for opaque free/ref/unref handling * sample/Makefile.am (SUBDIRS): add opaquetest * configure.in.in (AC_OUTPUT): add opaquetest files svn path=/trunk/gtk-sharp/; revision=48168
123 lines
5 KiB
XML
123 lines
5 KiB
XML
<?xml version="1.0"?>
|
|
<api>
|
|
<!--
|
|
|
|
This file was automatically generated.
|
|
Please DO NOT MODIFY THIS FILE, modify .metadata files instead.
|
|
|
|
-->
|
|
<namespace name="Gtksharp" library="libopaque.dll">
|
|
<callback name="GCFunc" cname="GtksharpGCFunc">
|
|
<return-type type="void" />
|
|
</callback>
|
|
<callback name="OpaqueReturnFunc" cname="GtksharpOpaqueReturnFunc">
|
|
<return-type type="GtksharpOpaque*" />
|
|
</callback>
|
|
<callback name="RefcountedReturnFunc" cname="GtksharpRefcountedReturnFunc">
|
|
<return-type type="GtksharpRefcounted*" />
|
|
</callback>
|
|
<struct name="Opaque" cname="GtksharpOpaque" opaque="1">
|
|
<field name="Serial" cname="serial" type="int" />
|
|
<field name="Valid" cname="valid" type="gboolean" />
|
|
<field name="Friend" cname="friend" type="GtksharpOpaque*" />
|
|
<method name="Check" cname="gtksharp_opaque_check" shared="true">
|
|
<return-type type="GtksharpOpaque*" />
|
|
<parameters>
|
|
<parameter type="GtksharpOpaqueReturnFunc" name="func" />
|
|
<parameter type="GtksharpGCFunc" name="gc" />
|
|
</parameters>
|
|
</method>
|
|
<method name="CheckFree" cname="gtksharp_opaque_check_free" shared="true">
|
|
<return-type type="GtksharpOpaque*" />
|
|
<parameters>
|
|
<parameter type="GtksharpOpaqueReturnFunc" name="func" />
|
|
<parameter type="GtksharpGCFunc" name="gc" />
|
|
</parameters>
|
|
</method>
|
|
<method name="Copy" cname="gtksharp_opaque_copy">
|
|
<return-type type="GtksharpOpaque*" owned="true" />
|
|
</method>
|
|
<method name="Free" cname="gtksharp_opaque_free">
|
|
<return-type type="void" />
|
|
</method>
|
|
<method name="GetFriend" cname="gtksharp_opaque_get_friend">
|
|
<return-type type="GtksharpOpaque*" />
|
|
</method>
|
|
<method name="GetLastSerial" cname="gtksharp_opaque_get_last_serial" shared="true">
|
|
<return-type type="int" />
|
|
</method>
|
|
<method name="GetSerial" cname="gtksharp_opaque_get_serial">
|
|
<return-type type="int" />
|
|
</method>
|
|
<constructor cname="gtksharp_opaque_new" />
|
|
<method name="SetFriend" cname="gtksharp_opaque_set_friend">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GtksharpOpaque*" name="friend" />
|
|
</parameters>
|
|
</method>
|
|
</struct>
|
|
<struct name="Refcounted" cname="GtksharpRefcounted" opaque="1">
|
|
<field name="Serial" cname="serial" type="int" />
|
|
<field name="Refcount" cname="refcount" type="int" />
|
|
<field name="Valid" cname="valid" type="gboolean" />
|
|
<field name="Friend" cname="friend" type="GtksharpRefcounted*" />
|
|
<method name="Check" cname="gtksharp_refcounted_check" shared="true">
|
|
<return-type type="GtksharpRefcounted*" />
|
|
<parameters>
|
|
<parameter type="GtksharpRefcountedReturnFunc" name="func" />
|
|
<parameter type="GtksharpGCFunc" name="gc" />
|
|
</parameters>
|
|
</method>
|
|
<method name="CheckUnref" cname="gtksharp_refcounted_check_unref" shared="true">
|
|
<return-type type="GtksharpRefcounted*" />
|
|
<parameters>
|
|
<parameter type="GtksharpRefcountedReturnFunc" name="func" />
|
|
<parameter type="GtksharpGCFunc" name="gc" />
|
|
</parameters>
|
|
</method>
|
|
<method name="GetFriend" cname="gtksharp_refcounted_get_friend">
|
|
<return-type type="GtksharpRefcounted*" />
|
|
</method>
|
|
<method name="GetLastSerial" cname="gtksharp_refcounted_get_last_serial" shared="true">
|
|
<return-type type="int" />
|
|
</method>
|
|
<method name="GetRefcount" cname="gtksharp_refcounted_get_refcount">
|
|
<return-type type="int" />
|
|
</method>
|
|
<method name="GetSerial" cname="gtksharp_refcounted_get_serial">
|
|
<return-type type="int" />
|
|
</method>
|
|
<constructor cname="gtksharp_refcounted_new" />
|
|
<method name="Ref" cname="gtksharp_refcounted_ref">
|
|
<return-type type="void" />
|
|
</method>
|
|
<method name="SetFriend" cname="gtksharp_refcounted_set_friend">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="GtksharpRefcounted*" name="friend" />
|
|
</parameters>
|
|
</method>
|
|
<method name="Unref" cname="gtksharp_refcounted_unref">
|
|
<return-type type="void" />
|
|
</method>
|
|
</struct>
|
|
<class name="Opaquetest" cname="GtksharpOpaquetest_">
|
|
<method name="GetError" cname="gtksharp_opaquetest_get_error" shared="true">
|
|
<return-type type="gboolean" />
|
|
</method>
|
|
<method name="SetError" cname="gtksharp_opaquetest_set_error" shared="true">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="gboolean" name="err" />
|
|
</parameters>
|
|
</method>
|
|
<method name="SetExpectError" cname="gtksharp_opaquetest_set_expect_error" shared="true">
|
|
<return-type type="void" />
|
|
<parameters>
|
|
<parameter type="gboolean" name="err" />
|
|
</parameters>
|
|
</method>
|
|
</class>
|
|
</namespace>
|
|
</api> |