diff options
Diffstat (limited to 'glib/src/glib_functions.defs')
-rw-r--r-- | glib/src/glib_functions.defs | 153 |
1 files changed, 131 insertions, 22 deletions
diff --git a/glib/src/glib_functions.defs b/glib/src/glib_functions.defs index 6798d66a..5408dad5 100644 --- a/glib/src/glib_functions.defs +++ b/glib/src/glib_functions.defs @@ -1024,6 +1024,8 @@ '("toto" "G_UNICODE_SCRIPT_TOTO") '("vithkuqi" "G_UNICODE_SCRIPT_VITHKUQI") '("math" "G_UNICODE_SCRIPT_MATH") + '("kawi" "G_UNICODE_SCRIPT_KAWI") + '("nag-mundari" "G_UNICODE_SCRIPT_NAG_MUNDARI") ) ) @@ -1226,6 +1228,27 @@ ) ) +(define-function g_array_new_take + (c-name "g_array_new_take") + (return-type "GArray*") + (parameters + '("gpointer" "data") + '("gsize" "len") + '("gboolean" "clear") + '("gsize" "element_size") + ) +) + +(define-function g_array_new_take_zero_terminated + (c-name "g_array_new_take_zero_terminated") + (return-type "GArray*") + (parameters + '("gpointer" "data") + '("gboolean" "clear") + '("gsize" "element_size") + ) +) + (define-method steal (of-object "GArray") (c-name "g_array_steal") @@ -1401,6 +1424,28 @@ ) ) +(define-function g_ptr_array_new_take + (c-name "g_ptr_array_new_take") + (return-type "GPtrArray*") + (parameters + '("gpointer*" "data") + '("gsize" "len") + '("GDestroyNotify" "element_free_func") + ) +) + +(define-function g_ptr_array_new_from_array + (c-name "g_ptr_array_new_from_array") + (return-type "GPtrArray*") + (parameters + '("gpointer*" "data") + '("gsize" "len") + '("GCopyFunc" "copy_func") + '("gpointer" "copy_func_user_data") + '("GDestroyNotify" "element_free_func") + ) +) + (define-method steal (of-object "GPtrArray") (c-name "g_ptr_array_steal") @@ -1448,6 +1493,26 @@ ) ) +(define-function g_ptr_array_new_take_null_terminated + (c-name "g_ptr_array_new_take_null_terminated") + (return-type "GPtrArray*") + (parameters + '("gpointer*" "data") + '("GDestroyNotify" "element_free_func") + ) +) + +(define-function g_ptr_array_new_from_null_terminated_array + (c-name "g_ptr_array_new_from_null_terminated_array") + (return-type "GPtrArray*") + (parameters + '("gpointer*" "data") + '("GCopyFunc" "copy_func") + '("gpointer" "copy_func_user_data") + '("GDestroyNotify" "element_free_func") + ) +) + (define-method free (of-object "GPtrArray") (c-name "g_ptr_array_free") @@ -1609,6 +1674,25 @@ ) ) +(define-method sort_values + (of-object "GPtrArray") + (c-name "g_ptr_array_sort_values") + (return-type "none") + (parameters + '("GCompareFunc" "compare_func") + ) +) + +(define-method sort_values_with_data + (of-object "GPtrArray") + (c-name "g_ptr_array_sort_values_with_data") + (return-type "none") + (parameters + '("GCompareDataFunc" "compare_func") + '("gpointer" "user_data") + ) +) + (define-method foreach (of-object "GPtrArray") (c-name "g_ptr_array_foreach") @@ -2365,6 +2449,12 @@ (return-type "none") ) +(define-method copy + (of-object "GBookmarkFile") + (c-name "g_bookmark_file_copy") + (return-type "GBookmarkFile*") +) + (define-method load_from_file (of-object "GBookmarkFile") (c-name "g_bookmark_file_load_from_file") @@ -5007,6 +5097,18 @@ (return-type "none") ) +(define-method steal_all_keys + (of-object "GHashTable") + (c-name "g_hash_table_steal_all_keys") + (return-type "GPtrArray*") +) + +(define-method steal_all_values + (of-object "GHashTable") + (c-name "g_hash_table_steal_all_values") + (return-type "GPtrArray*") +) + (define-method lookup (of-object "GHashTable") (c-name "g_hash_table_lookup") @@ -5103,6 +5205,18 @@ ) ) +(define-method get_keys_as_ptr_array + (of-object "GHashTable") + (c-name "g_hash_table_get_keys_as_ptr_array") + (return-type "GPtrArray*") +) + +(define-method get_values_as_ptr_array + (of-object "GHashTable") + (c-name "g_hash_table_get_values_as_ptr_array") + (return-type "GPtrArray*") +) + (define-method init (of-object "GHashTableIter") (c-name "g_hash_table_iter_init") @@ -11697,24 +11811,6 @@ ) ) -(define-function g_str_has_suffix - (c-name "g_str_has_suffix") - (return-type "gboolean") - (parameters - '("const-gchar*" "str") - '("const-gchar*" "suffix") - ) -) - -(define-function g_str_has_prefix - (c-name "g_str_has_prefix") - (return-type "gboolean") - (parameters - '("const-gchar*" "str") - '("const-gchar*" "prefix") - ) -) - (define-function g_strtod (c-name "g_strtod") (return-type "gdouble") @@ -15134,6 +15230,15 @@ (return-type "gsize") ) +(define-method maybe_get_child_value + (of-object "GVariant") + (c-name "g_variant_maybe_get_child_value") + (return-type "GVariant*") + (parameters + '("gsize" "index_") + ) +) + ;; From gvariant.h @@ -16523,10 +16628,6 @@ -;; From gversionmacros.h - - - ;; From gwakeup.h (define-function g_wakeup_new @@ -17302,3 +17403,11 @@ ;; From glibconfig.h + +;; From glib-visibility.h + + + +;; From gversionmacros.h + + |