Пример #1
0
 /* <type name="none" type="void" managed-name="None" /> */
 /* transfer-ownership:none */
 static extern void g_log_set_writer_func(
     /* <type name="LogWriterFunc" type="GLogWriterFunc" managed-name="LogWriterFunc" /> */
     /* transfer-ownership:none nullable:1 allow-none:1 scope:notified closure:1 destroy:2 */
     UnmanagedLogWriterFunc func,
     /* <type name="gpointer" type="gpointer" managed-name="Gpointer" /> */
     /* transfer-ownership:none nullable:1 allow-none:1 closure:0 */
     IntPtr userData,
     /* <type name="DestroyNotify" type="GDestroyNotify" managed-name="DestroyNotify" /> */
     /* transfer-ownership:none scope:async destroy:0 */
     UnmanagedDestroyNotify userDataFree);
Пример #2
0
 /* <type name="none" type="void" managed-name="None" /> */
 /* transfer-ownership:none */
 static extern void g_param_spec_set_qdata_full(
     /* <type name="ParamSpec" type="GParamSpec*" managed-name="ParamSpec" /> */
     /* transfer-ownership:none */
     IntPtr pspec,
     /* <type name="GLib.Quark" type="GQuark" managed-name="GLib.Quark" /> */
     /* transfer-ownership:none */
     Quark quark,
     /* <type name="gpointer" type="gpointer" managed-name="Gpointer" /> */
     /* transfer-ownership:none */
     IntPtr data,
     /* <type name="GLib.DestroyNotify" type="GDestroyNotify" managed-name="GLib.DestroyNotify" /> */
     /* transfer-ownership:none scope:async */
     UnmanagedDestroyNotify destroy);
Пример #3
0
 /* <type name="guint" type="guint" managed-name="Guint" /> */
 /* transfer-ownership:none */
 static extern uint g_idle_add_full(
     /* <type name="gint" type="gint" managed-name="Gint" /> */
     /* transfer-ownership:none */
     int priority,
     /* <type name="SourceFunc" type="GSourceFunc" managed-name="SourceFunc" /> */
     /* transfer-ownership:none scope:notified closure:2 destroy:3 */
     UnmanagedSourceFunc function,
     /* <type name="gpointer" type="gpointer" managed-name="Gpointer" /> */
     /* transfer-ownership:none nullable:1 allow-none:1 */
     IntPtr data,
     /* <type name="DestroyNotify" type="GDestroyNotify" managed-name="DestroyNotify" /> */
     /* transfer-ownership:none nullable:1 allow-none:1 scope:async */
     UnmanagedDestroyNotify notify);
Пример #4
0
        /* <type name="Bytes" type="GBytes*" managed-name="Bytes" /> */
        /* transfer-ownership:full */
        static extern IntPtr g_bytes_new_with_free_func(

            /* <array length="1" zero-terminated="0" type="gconstpointer">
             *  <type name="guint8" managed-name="Guint8" />
             *  </array> */
            /* transfer-ownership:none nullable:1 allow-none:1 */
            IntPtr data,
            /* <type name="gsize" type="gsize" managed-name="Gsize" /> */
            /* transfer-ownership:none */
            UIntPtr size,
            /* <type name="DestroyNotify" type="GDestroyNotify" managed-name="DestroyNotify" /> */
            /* transfer-ownership:none scope:async */
            UnmanagedDestroyNotify freeFunc,
            /* <type name="gpointer" type="gpointer" managed-name="Gpointer" /> */
            /* transfer-ownership:none nullable:1 allow-none:1 */
            IntPtr userData);
Пример #5
0
 /* <type name="guint" type="guint" managed-name="Guint" /> */
 /* transfer-ownership:none */
 static extern uint g_log_set_handler_full(
     /* <type name="utf8" type="const gchar*" managed-name="Utf8" /> */
     /* transfer-ownership:none nullable:1 allow-none:1 */
     IntPtr logDomain,
     /* <type name="LogLevelFlags" type="GLogLevelFlags" managed-name="LogLevelFlags" /> */
     /* transfer-ownership:none */
     LogLevelFlags logLevels,
     /* <type name="LogFunc" type="GLogFunc" managed-name="LogFunc" /> */
     /* transfer-ownership:none scope:notified closure:3 destroy:4 */
     UnmanagedLogFunc logFunc,
     /* <type name="gpointer" type="gpointer" managed-name="Gpointer" /> */
     /* transfer-ownership:none nullable:1 allow-none:1 */
     IntPtr userData,
     /* <type name="DestroyNotify" type="GDestroyNotify" managed-name="DestroyNotify" /> */
     /* transfer-ownership:none scope:async */
     UnmanagedDestroyNotify destroy);
Пример #6
0
 /* <type name="guint" type="guint" managed-name="Guint" /> */
 /* transfer-ownership:none */
 static extern uint g_unix_signal_add_full(
     /* <type name="gint" type="gint" managed-name="Gint" /> */
     /* transfer-ownership:none */
     int priority,
     /* <type name="gint" type="gint" managed-name="Gint" /> */
     /* transfer-ownership:none */
     int signum,
     /* <type name="SourceFunc" type="GSourceFunc" managed-name="SourceFunc" /> */
     /* transfer-ownership:none scope:notified closure:3 destroy:4 */
     UnmanagedSourceFunc handler,
     /* <type name="gpointer" type="gpointer" managed-name="Gpointer" /> */
     /* transfer-ownership:none nullable:1 allow-none:1 */
     IntPtr userData,
     /* <type name="DestroyNotify" type="GDestroyNotify" managed-name="DestroyNotify" /> */
     /* transfer-ownership:none scope:async */
     UnmanagedDestroyNotify notify);
Пример #7
0
 static extern void g_list_free_full(
     IntPtr list,
     UnmanagedDestroyNotify freeFunc);
Пример #8
0
 static extern void g_array_set_clear_func(
     IntPtr array,
     UnmanagedDestroyNotify clearFunc);
Пример #9
0
 static extern void g_ptr_array_set_free_func(
     IntPtr array,
     UnmanagedDestroyNotify elementFreeFunc);
Пример #10
0
 static extern IntPtr g_ptr_array_new_with_free_func(
     UnmanagedDestroyNotify elementFreeFunc);
Пример #11
0
 static extern IntPtr g_ptr_array_new_full(
     uint reservedSize,
     UnmanagedDestroyNotify elementFreeFunc);
Пример #12
0
 protected static extern IntPtr g_hash_table_new_full(
     UnmanagedHashFunc hashFunc,
     UnmanagedEqualFunc keyEqualFunc,
     UnmanagedDestroyNotify keyDestroyFunc,
     UnmanagedDestroyNotify valueDestroyFunc);