[glib] gdataset: Skip problematic functions in the introspection
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdataset: Skip problematic functions in the introspection
- Date: Mon, 11 Sep 2017 19:33:26 +0000 (UTC)
commit 28e8684168d52f2cbde7cafbc01eac16ebcd10a8
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date: Tue Oct 13 02:13:12 2015 +0300
gdataset: Skip problematic functions in the introspection
The functions with a GDestroyNotify to the data, or other ill-fitting
allocation semantics, are not currently introspectable.
The effect for the binding user would be that they're unable to
create or destroy a GData list, but they might still have an API
to poke at some data pointers from it.
In fact, none of the functions dealing with GData** or a dataset
location pointer are likely to get sensible bindings anyway;
the annotations added are mostly to avoid memory unsafety
and leaks.
https://bugzilla.gnome.org/show_bug.cgi?id=756470
glib/gdataset.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/glib/gdataset.c b/glib/gdataset.c
index 5e23bcd..ae36e9e 100644
--- a/glib/gdataset.c
+++ b/glib/gdataset.c
@@ -243,7 +243,7 @@ g_datalist_clear_i (GData **datalist)
}
/**
- * g_datalist_clear:
+ * g_datalist_clear: (skip)
* @datalist: a datalist.
*
* Frees all the data elements of the datalist.
@@ -486,7 +486,7 @@ g_data_set_internal (GData **datalist,
}
/**
- * g_dataset_id_set_data_full:
+ * g_dataset_id_set_data_full: (skip)
* @dataset_location: (not nullable): the location identifying the dataset.
* @key_id: the #GQuark id to identify the data element.
* @data: the data element.
@@ -501,7 +501,7 @@ g_data_set_internal (GData **datalist,
* is called.
**/
/**
- * g_dataset_set_data_full:
+ * g_dataset_set_data_full: (skip)
* @l: the location identifying the dataset.
* @k: the string to identify the data element.
* @d: the data element.
@@ -585,7 +585,7 @@ g_dataset_id_set_data_full (gconstpointer dataset_location,
}
/**
- * g_datalist_id_set_data_full:
+ * g_datalist_id_set_data_full: (skip)
* @datalist: a datalist.
* @key_id: the #GQuark to identify the data element.
* @data: (nullable): the data element or %NULL to remove any previous element
@@ -602,7 +602,7 @@ g_dataset_id_set_data_full (gconstpointer dataset_location,
* function is called.
**/
/**
- * g_datalist_set_data_full:
+ * g_datalist_set_data_full: (skip)
* @dl: a datalist.
* @k: the string to identify the data element.
* @d: (nullable): the data element, or %NULL to remove any previous element
@@ -671,7 +671,7 @@ g_datalist_id_set_data_full (GData **datalist,
}
/**
- * g_dataset_id_remove_no_notify:
+ * g_dataset_id_remove_no_notify: (skip)
* @dataset_location: (not nullable): the location identifying the dataset.
* @key_id: the #GQuark ID identifying the data element.
*
@@ -682,7 +682,7 @@ g_datalist_id_set_data_full (GData **datalist,
* or %NULL if none.
**/
/**
- * g_dataset_remove_no_notify:
+ * g_dataset_remove_no_notify: (skip)
* @l: the location identifying the dataset.
* @k: the string identifying the data element.
*
@@ -711,7 +711,7 @@ g_dataset_id_remove_no_notify (gconstpointer dataset_location,
}
/**
- * g_datalist_id_remove_no_notify:
+ * g_datalist_id_remove_no_notify: (skip)
* @datalist: a datalist.
* @key_id: the #GQuark identifying a data element.
*
@@ -722,7 +722,7 @@ g_dataset_id_remove_no_notify (gconstpointer dataset_location,
* or %NULL if none.
**/
/**
- * g_datalist_remove_no_notify:
+ * g_datalist_remove_no_notify: (skip)
* @dl: a datalist.
* @k: the string identifying the data element.
*
@@ -816,7 +816,7 @@ g_datalist_id_get_data (GData **datalist,
*/
/**
- * g_datalist_id_dup_data:
+ * g_datalist_id_dup_data: (skip)
* @datalist: location of a datalist
* @key_id: the #GQuark identifying a data element
* @dup_func: (nullable) (scope call): function to duplicate the old value
@@ -883,7 +883,7 @@ g_datalist_id_dup_data (GData **datalist,
}
/**
- * g_datalist_id_replace_data:
+ * g_datalist_id_replace_data: (skip)
* @datalist: location of a datalist
* @key_id: the #GQuark identifying a data element
* @oldval: (nullable): the old value to compare against
@@ -1148,7 +1148,7 @@ g_datalist_foreach (GData **datalist,
}
/**
- * g_datalist_init:
+ * g_datalist_init: (skip)
* @datalist: a pointer to a pointer to a datalist.
*
* Resets the datalist to %NULL. It does not free any memory or call
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]