2 ; object definitions ...
3 (define-object TypeModule
7 (gtype-id "G_TYPE_TYPE_MODULE")
10 ;; Enumerations and flags ...
12 (define-flags ParamFlags
14 (c-name "GParamFlags")
15 (gtype-id "G_TYPE_PARAM_FLAGS")
17 '("readable" "G_PARAM_READABLE")
18 '("writable" "G_PARAM_WRITABLE")
19 '("construct" "G_PARAM_CONSTRUCT")
20 '("construct-only" "G_PARAM_CONSTRUCT_ONLY")
21 '("lax-validation" "G_PARAM_LAX_VALIDATION")
22 '("private" "G_PARAM_PRIVATE")
26 (define-flags SignalFlags
28 (c-name "GSignalFlags")
29 (gtype-id "G_TYPE_SIGNAL_FLAGS")
31 '("run-first" "G_SIGNAL_RUN_FIRST")
32 '("run-last" "G_SIGNAL_RUN_LAST")
33 '("run-cleanup" "G_SIGNAL_RUN_CLEANUP")
34 '("no-recurse" "G_SIGNAL_NO_RECURSE")
35 '("detailed" "G_SIGNAL_DETAILED")
36 '("action" "G_SIGNAL_ACTION")
37 '("no-hooks" "G_SIGNAL_NO_HOOKS")
41 (define-flags ConnectFlags
43 (c-name "GConnectFlags")
44 (gtype-id "G_TYPE_CONNECT_FLAGS")
46 '("after" "G_CONNECT_AFTER")
47 '("swapped" "G_CONNECT_SWAPPED")
51 (define-flags SignalMatchType
53 (c-name "GSignalMatchType")
54 (gtype-id "G_TYPE_SIGNAL_MATCH_TYPE")
56 '("id" "G_SIGNAL_MATCH_ID")
57 '("detail" "G_SIGNAL_MATCH_DETAIL")
58 '("closure" "G_SIGNAL_MATCH_CLOSURE")
59 '("func" "G_SIGNAL_MATCH_FUNC")
60 '("data" "G_SIGNAL_MATCH_DATA")
61 '("unblocked" "G_SIGNAL_MATCH_UNBLOCKED")
65 (define-flags TypeDebugFlags
67 (c-name "GTypeDebugFlags")
68 (gtype-id "G_TYPE_TYPE_DEBUG_FLAGS")
70 '("none" "G_TYPE_DEBUG_NONE")
71 '("objects" "G_TYPE_DEBUG_OBJECTS")
72 '("signals" "G_TYPE_DEBUG_SIGNALS")
73 '("mask" "G_TYPE_DEBUG_MASK")
77 (define-flags TypeFundamentalFlags
79 (c-name "GTypeFundamentalFlags")
80 (gtype-id "G_TYPE_TYPE_FUNDAMENTAL_FLAGS")
82 '("classed" "G_TYPE_FLAG_CLASSED")
83 '("instantiatable" "G_TYPE_FLAG_INSTANTIATABLE")
84 '("derivable" "G_TYPE_FLAG_DERIVABLE")
85 '("deep-derivable" "G_TYPE_FLAG_DEEP_DERIVABLE")
89 (define-flags TypeFlags
92 (gtype-id "G_TYPE_TYPE_FLAGS")
94 '("abstract" "G_TYPE_FLAG_ABSTRACT")
95 '("value-abstract" "G_TYPE_FLAG_VALUE_ABSTRACT")
100 ;; From gobject/gboxed.h
102 (define-function g_boxed_free
103 (c-name "g_boxed_free")
106 '("GType" "boxed_type")
107 '("gpointer" "boxed")
111 (define-method set_boxed
113 (c-name "g_value_set_boxed")
116 '("gconstpointer" "v_boxed")
120 (define-method set_static_boxed
122 (c-name "g_value_set_static_boxed")
125 '("gconstpointer" "v_boxed")
129 (define-method get_boxed
131 (c-name "g_value_get_boxed")
132 (return-type "gpointer")
135 (define-method dup_boxed
137 (c-name "g_value_dup_boxed")
138 (return-type "gpointer")
141 (define-function g_boxed_type_register_static
142 (c-name "g_boxed_type_register_static")
143 (return-type "GType")
145 '("const-gchar*" "name")
146 '("GBoxedCopyFunc" "boxed_copy")
147 '("GBoxedFreeFunc" "boxed_free")
151 (define-method set_boxed_take_ownership
153 (c-name "g_value_set_boxed_take_ownership")
156 '("gconstpointer" "v_boxed")
160 (define-function g_closure_get_type
161 (c-name "g_closure_get_type")
162 (return-type "GType")
165 (define-function g_value_get_type
166 (c-name "g_value_get_type")
167 (return-type "GType")
170 (define-function g_value_array_get_type
171 (c-name "g_value_array_get_type")
172 (return-type "GType")
175 (define-function g_gstring_get_type
176 (c-name "g_gstring_get_type")
177 (return-type "GType")
182 ;; From gobject/gclosure.h
184 (define-function g_cclosure_new
185 (c-name "g_cclosure_new")
186 (return-type "GClosure*")
188 '("GCallback" "callback_func")
189 '("gpointer" "user_data")
190 '("GClosureNotify" "destroy_data")
194 (define-function g_cclosure_new_swap
195 (c-name "g_cclosure_new_swap")
196 (return-type "GClosure*")
198 '("GCallback" "callback_func")
199 '("gpointer" "user_data")
200 '("GClosureNotify" "destroy_data")
204 (define-function g_signal_type_cclosure_new
205 (c-name "g_signal_type_cclosure_new")
206 (return-type "GClosure*")
209 '("guint" "struct_offset")
214 (of-object "GClosure")
215 (c-name "g_closure_ref")
216 (return-type "GClosure*")
220 (of-object "GClosure")
221 (c-name "g_closure_sink")
226 (of-object "GClosure")
227 (c-name "g_closure_unref")
231 (define-function g_closure_new_simple
232 (c-name "g_closure_new_simple")
233 (return-type "GClosure*")
235 '("guint" "sizeof_closure")
240 (define-method add_finalize_notifier
241 (of-object "GClosure")
242 (c-name "g_closure_add_finalize_notifier")
245 '("gpointer" "notify_data")
246 '("GClosureNotify" "notify_func")
250 (define-method remove_finalize_notifier
251 (of-object "GClosure")
252 (c-name "g_closure_remove_finalize_notifier")
255 '("gpointer" "notify_data")
256 '("GClosureNotify" "notify_func")
260 (define-method add_invalidate_notifier
261 (of-object "GClosure")
262 (c-name "g_closure_add_invalidate_notifier")
265 '("gpointer" "notify_data")
266 '("GClosureNotify" "notify_func")
270 (define-method remove_invalidate_notifier
271 (of-object "GClosure")
272 (c-name "g_closure_remove_invalidate_notifier")
275 '("gpointer" "notify_data")
276 '("GClosureNotify" "notify_func")
280 (define-method add_marshal_guards
281 (of-object "GClosure")
282 (c-name "g_closure_add_marshal_guards")
285 '("gpointer" "pre_marshal_data")
286 '("GClosureNotify" "pre_marshal_notify")
287 '("gpointer" "post_marshal_data")
288 '("GClosureNotify" "post_marshal_notify")
292 (define-method set_marshal
293 (of-object "GClosure")
294 (c-name "g_closure_set_marshal")
297 '("GClosureMarshal" "marshal")
301 (define-method set_meta_marshal
302 (of-object "GClosure")
303 (c-name "g_closure_set_meta_marshal")
306 '("gpointer" "marshal_data")
307 '("GClosureMarshal" "meta_marshal")
311 (define-method invalidate
312 (of-object "GClosure")
313 (c-name "g_closure_invalidate")
317 (define-method invoke
318 (of-object "GClosure")
319 (c-name "g_closure_invoke")
322 '("GValue*" "return_value")
323 '("guint" "n_param_values")
324 '("const-GValue*" "param_values")
325 '("gpointer" "invocation_hint")
331 ;; From gobject/genums.h
333 (define-function g_enum_get_value
334 (c-name "g_enum_get_value")
335 (return-type "GEnumValue*")
337 '("GEnumClass*" "enum_class")
342 (define-function g_enum_get_value_by_name
343 (c-name "g_enum_get_value_by_name")
344 (return-type "GEnumValue*")
346 '("GEnumClass*" "enum_class")
347 '("const-gchar*" "name")
351 (define-function g_enum_get_value_by_nick
352 (c-name "g_enum_get_value_by_nick")
353 (return-type "GEnumValue*")
355 '("GEnumClass*" "enum_class")
356 '("const-gchar*" "nick")
360 (define-function g_flags_get_first_value
361 (c-name "g_flags_get_first_value")
362 (return-type "GFlagsValue*")
364 '("GFlagsClass*" "flags_class")
369 (define-function g_flags_get_value_by_name
370 (c-name "g_flags_get_value_by_name")
371 (return-type "GFlagsValue*")
373 '("GFlagsClass*" "flags_class")
374 '("const-gchar*" "name")
378 (define-function g_flags_get_value_by_nick
379 (c-name "g_flags_get_value_by_nick")
380 (return-type "GFlagsValue*")
382 '("GFlagsClass*" "flags_class")
383 '("const-gchar*" "nick")
387 (define-method set_enum
389 (c-name "g_value_set_enum")
396 (define-method get_enum
398 (c-name "g_value_get_enum")
402 (define-method set_flags
404 (c-name "g_value_set_flags")
411 (define-method get_flags
413 (c-name "g_value_get_flags")
414 (return-type "guint")
417 (define-function g_enum_register_static
418 (c-name "g_enum_register_static")
419 (return-type "GType")
421 '("const-gchar*" "name")
422 '("const-GEnumValue*" "const_static_values")
426 (define-function g_flags_register_static
427 (c-name "g_flags_register_static")
428 (return-type "GType")
430 '("const-gchar*" "name")
431 '("const-GFlagsValue*" "const_static_values")
435 (define-function g_enum_complete_type_info
436 (c-name "g_enum_complete_type_info")
439 '("GType" "g_enum_type")
440 '("GTypeInfo*" "info")
441 '("const-GEnumValue*" "const_values")
445 (define-function g_flags_complete_type_info
446 (c-name "g_flags_complete_type_info")
449 '("GType" "g_flags_type")
450 '("GTypeInfo*" "info")
451 '("const-GFlagsValue*" "const_values")
457 ;; From gobject/gmarshal.h
461 ;; From gobject/gobject.h
463 (define-method install_property
464 (of-object "GObjectClass")
465 (c-name "g_object_class_install_property")
468 '("guint" "property_id")
469 '("GParamSpec*" "pspec")
473 (define-method find_property
474 (of-object "GObjectClass")
475 (c-name "g_object_class_find_property")
476 (return-type "GParamSpec*")
478 '("const-gchar*" "property_name")
482 (define-function g_object_new
483 (c-name "g_object_new")
484 (return-type "gpointer")
486 '("GType" "object_type")
487 '("const-gchar*" "first_property_name")
492 (define-function g_object_newv
493 (c-name "g_object_newv")
494 (return-type "gpointer")
496 '("GType" "object_type")
497 '("guint" "n_parameters")
498 '("GParameter*" "parameters")
502 (define-function g_object_new_valist
503 (c-name "g_object_new_valist")
504 (return-type "GObject*")
506 '("GType" "object_type")
507 '("const-gchar*" "first_property_name")
508 '("va_list" "var_args")
512 (define-function g_object_set
513 (c-name "g_object_set")
516 '("gpointer" "object")
517 '("const-gchar*" "first_property_name")
522 (define-function g_object_get
523 (c-name "g_object_get")
526 '("gpointer" "object")
527 '("const-gchar*" "first_property_name")
532 (define-function g_object_connect
533 (c-name "g_object_connect")
534 (return-type "gpointer")
536 '("gpointer" "object")
537 '("const-gchar*" "signal_spec")
542 (define-function g_object_disconnect
543 (c-name "g_object_disconnect")
546 '("gpointer" "object")
547 '("const-gchar*" "signal_spec")
552 (define-method set_valist
553 (of-object "GObject")
554 (c-name "g_object_set_valist")
557 '("const-gchar*" "first_property_name")
558 '("va_list" "var_args")
562 (define-method get_valist
563 (of-object "GObject")
564 (c-name "g_object_get_valist")
567 '("const-gchar*" "first_property_name")
568 '("va_list" "var_args")
572 (define-method set_property
573 (of-object "GObject")
574 (c-name "g_object_set_property")
577 '("const-gchar*" "property_name")
578 '("const-GValue*" "value")
582 (define-method get_property
583 (of-object "GObject")
584 (c-name "g_object_get_property")
587 '("const-gchar*" "property_name")
592 (define-method freeze_notify
593 (of-object "GObject")
594 (c-name "g_object_freeze_notify")
598 (define-method notify
599 (of-object "GObject")
600 (c-name "g_object_notify")
603 '("const-gchar*" "property_name")
607 (define-method thaw_notify
608 (of-object "GObject")
609 (c-name "g_object_thaw_notify")
613 (define-function g_object_ref
614 (c-name "g_object_ref")
615 (return-type "gpointer")
617 '("gpointer" "object")
621 (define-function g_object_unref
622 (c-name "g_object_unref")
625 '("gpointer" "object")
629 (define-method weak_ref
630 (of-object "GObject")
631 (c-name "g_object_weak_ref")
634 '("GWeakNotify" "notify")
639 (define-method weak_unref
640 (of-object "GObject")
641 (c-name "g_object_weak_unref")
644 '("GWeakNotify" "notify")
649 (define-method add_weak_pointer
650 (of-object "GObject")
651 (c-name "g_object_add_weak_pointer")
654 '("gpointer*" "weak_pointer_location")
658 (define-method remove_weak_pointer
659 (of-object "GObject")
660 (c-name "g_object_remove_weak_pointer")
663 '("gpointer*" "weak_pointer_location")
667 (define-method get_qdata
668 (of-object "GObject")
669 (c-name "g_object_get_qdata")
670 (return-type "gpointer")
676 (define-method set_qdata
677 (of-object "GObject")
678 (c-name "g_object_set_qdata")
686 (define-method set_qdata_full
687 (of-object "GObject")
688 (c-name "g_object_set_qdata_full")
693 '("GDestroyNotify" "destroy")
697 (define-method steal_qdata
698 (of-object "GObject")
699 (c-name "g_object_steal_qdata")
700 (return-type "gpointer")
706 (define-method get_data
707 (of-object "GObject")
708 (c-name "g_object_get_data")
709 (return-type "gpointer")
711 '("const-gchar*" "key")
715 (define-method set_data
716 (of-object "GObject")
717 (c-name "g_object_set_data")
720 '("const-gchar*" "key")
725 (define-method set_data_full
726 (of-object "GObject")
727 (c-name "g_object_set_data_full")
730 '("const-gchar*" "key")
732 '("GDestroyNotify" "destroy")
736 (define-method steal_data
737 (of-object "GObject")
738 (c-name "g_object_steal_data")
739 (return-type "gpointer")
741 '("const-gchar*" "key")
745 (define-method watch_closure
746 (of-object "GObject")
747 (c-name "g_object_watch_closure")
750 '("GClosure*" "closure")
754 (define-function g_cclosure_new_object
755 (c-name "g_cclosure_new_object")
756 (return-type "GClosure*")
758 '("GCallback" "callback_func")
759 '("GObject*" "object")
763 (define-function g_cclosure_new_object_swap
764 (c-name "g_cclosure_new_object_swap")
765 (return-type "GClosure*")
767 '("GCallback" "callback_func")
768 '("GObject*" "object")
772 (define-function g_closure_new_object
773 (c-name "g_closure_new_object")
774 (return-type "GClosure*")
776 '("guint" "sizeof_closure")
777 '("GObject*" "object")
781 (define-method set_object
783 (c-name "g_value_set_object")
786 '("gpointer" "v_object")
790 (define-method get_object
792 (c-name "g_value_get_object")
793 (return-type "gpointer")
796 (define-method dup_object
798 (c-name "g_value_dup_object")
799 (return-type "GObject*")
802 (define-function g_signal_connect_object
803 (c-name "g_signal_connect_object")
804 (return-type "gulong")
806 '("gpointer" "instance")
807 '("const-gchar*" "detailed_signal")
808 '("GCallback" "c_handler")
809 '("gpointer" "gobject")
810 '("GConnectFlags" "connect_flags")
814 (define-method run_dispose
815 (of-object "GObject")
816 (c-name "g_object_run_dispose")
820 (define-method set_object_take_ownership
822 (c-name "g_value_set_object_take_ownership")
825 '("gpointer" "v_object")
831 ;; From gobject/gparam.h
834 (of-object "GParamSpec")
835 (c-name "g_param_spec_ref")
836 (return-type "GParamSpec*")
840 (of-object "GParamSpec")
841 (c-name "g_param_spec_unref")
846 (of-object "GParamSpec")
847 (c-name "g_param_spec_sink")
851 (define-method get_qdata
852 (of-object "GParamSpec")
853 (c-name "g_param_spec_get_qdata")
854 (return-type "gpointer")
860 (define-method set_qdata
861 (of-object "GParamSpec")
862 (c-name "g_param_spec_set_qdata")
870 (define-method set_qdata_full
871 (of-object "GParamSpec")
872 (c-name "g_param_spec_set_qdata_full")
877 '("GDestroyNotify" "destroy")
881 (define-method steal_qdata
882 (of-object "GParamSpec")
883 (c-name "g_param_spec_steal_qdata")
884 (return-type "gpointer")
890 (define-function g_param_value_set_default
891 (c-name "g_param_value_set_default")
894 '("GParamSpec*" "pspec")
899 (define-function g_param_value_defaults
900 (c-name "g_param_value_defaults")
901 (return-type "gboolean")
903 '("GParamSpec*" "pspec")
908 (define-function g_param_value_validate
909 (c-name "g_param_value_validate")
910 (return-type "gboolean")
912 '("GParamSpec*" "pspec")
917 (define-function g_param_value_convert
918 (c-name "g_param_value_convert")
919 (return-type "gboolean")
921 '("GParamSpec*" "pspec")
922 '("const-GValue*" "src_value")
923 '("GValue*" "dest_value")
924 '("gboolean" "strict_validation")
928 (define-function g_param_values_cmp
929 (c-name "g_param_values_cmp")
932 '("GParamSpec*" "pspec")
933 '("const-GValue*" "value1")
934 '("const-GValue*" "value2")
938 (define-method get_name
939 (of-object "GParamSpec")
940 (c-name "g_param_spec_get_name")
941 (return-type "const-gchar*")
944 (define-method get_nick
945 (of-object "GParamSpec")
946 (c-name "g_param_spec_get_nick")
947 (return-type "const-gchar*")
950 (define-method get_blurb
951 (of-object "GParamSpec")
952 (c-name "g_param_spec_get_blurb")
953 (return-type "const-gchar*")
956 (define-method set_param
958 (c-name "g_value_set_param")
961 '("GParamSpec*" "param")
965 (define-method get_param
967 (c-name "g_value_get_param")
968 (return-type "GParamSpec*")
971 (define-method dup_param
973 (c-name "g_value_dup_param")
974 (return-type "GParamSpec*")
977 (define-method set_param_take_ownership
979 (c-name "g_value_set_param_take_ownership")
982 '("GParamSpec*" "param")
986 (define-function g_param_type_register_static
987 (c-name "g_param_type_register_static")
988 (return-type "GType")
990 '("const-gchar*" "name")
991 '("const-GParamSpecTypeInfo*" "pspec_info")
995 (define-function _g_param_type_register_static_constant
996 (c-name "_g_param_type_register_static_constant")
997 (return-type "GType")
999 '("const-gchar*" "name")
1000 '("const-GParamSpecTypeInfo*" "pspec_info")
1001 '("GType" "opt_type")
1005 (define-function g_param_spec_internal
1006 (c-name "g_param_spec_internal")
1007 (return-type "gpointer")
1009 '("GType" "param_type")
1010 '("const-gchar*" "name")
1011 '("const-gchar*" "nick")
1012 '("const-gchar*" "blurb")
1013 '("GParamFlags" "flags")
1017 (define-function g_param_spec_pool_new
1018 (c-name "g_param_spec_pool_new")
1019 (return-type "GParamSpecPool*")
1021 '("gboolean" "type_prefixing")
1025 (define-method insert
1026 (of-object "GParamSpecPool")
1027 (c-name "g_param_spec_pool_insert")
1028 (return-type "none")
1030 '("GParamSpec*" "pspec")
1031 '("GType" "owner_type")
1035 (define-method remove
1036 (of-object "GParamSpecPool")
1037 (c-name "g_param_spec_pool_remove")
1038 (return-type "none")
1040 '("GParamSpec*" "pspec")
1044 (define-method lookup
1045 (of-object "GParamSpecPool")
1046 (c-name "g_param_spec_pool_lookup")
1047 (return-type "GParamSpec*")
1049 '("const-gchar*" "param_name")
1050 '("GType" "owner_type")
1051 '("gboolean" "walk_ancestors")
1055 (define-method list_owned
1056 (of-object "GParamSpecPool")
1057 (c-name "g_param_spec_pool_list_owned")
1058 (return-type "GList*")
1060 '("GType" "owner_type")
1065 (of-object "GParamSpecPool")
1066 (c-name "g_param_spec_pool_list")
1067 (return-type "GParamSpec**")
1069 '("GType" "owner_type")
1070 '("guint*" "n_pspecs_p")
1076 ;; From gobject/gparamspecs.h
1078 (define-function g_param_spec_char
1079 (c-name "g_param_spec_char")
1080 (return-type "GParamSpec*")
1082 '("const-gchar*" "name")
1083 '("const-gchar*" "nick")
1084 '("const-gchar*" "blurb")
1085 '("gint8" "minimum")
1086 '("gint8" "maximum")
1087 '("gint8" "default_value")
1088 '("GParamFlags" "flags")
1092 (define-function g_param_spec_uchar
1093 (c-name "g_param_spec_uchar")
1094 (return-type "GParamSpec*")
1096 '("const-gchar*" "name")
1097 '("const-gchar*" "nick")
1098 '("const-gchar*" "blurb")
1099 '("guint8" "minimum")
1100 '("guint8" "maximum")
1101 '("guint8" "default_value")
1102 '("GParamFlags" "flags")
1106 (define-function g_param_spec_boolean
1107 (c-name "g_param_spec_boolean")
1108 (return-type "GParamSpec*")
1110 '("const-gchar*" "name")
1111 '("const-gchar*" "nick")
1112 '("const-gchar*" "blurb")
1113 '("gboolean" "default_value")
1114 '("GParamFlags" "flags")
1118 (define-function g_param_spec_int
1119 (c-name "g_param_spec_int")
1120 (return-type "GParamSpec*")
1122 '("const-gchar*" "name")
1123 '("const-gchar*" "nick")
1124 '("const-gchar*" "blurb")
1127 '("gint" "default_value")
1128 '("GParamFlags" "flags")
1132 (define-function g_param_spec_uint
1133 (c-name "g_param_spec_uint")
1134 (return-type "GParamSpec*")
1136 '("const-gchar*" "name")
1137 '("const-gchar*" "nick")
1138 '("const-gchar*" "blurb")
1139 '("guint" "minimum")
1140 '("guint" "maximum")
1141 '("guint" "default_value")
1142 '("GParamFlags" "flags")
1146 (define-function g_param_spec_long
1147 (c-name "g_param_spec_long")
1148 (return-type "GParamSpec*")
1150 '("const-gchar*" "name")
1151 '("const-gchar*" "nick")
1152 '("const-gchar*" "blurb")
1153 '("glong" "minimum")
1154 '("glong" "maximum")
1155 '("glong" "default_value")
1156 '("GParamFlags" "flags")
1160 (define-function g_param_spec_ulong
1161 (c-name "g_param_spec_ulong")
1162 (return-type "GParamSpec*")
1164 '("const-gchar*" "name")
1165 '("const-gchar*" "nick")
1166 '("const-gchar*" "blurb")
1167 '("gulong" "minimum")
1168 '("gulong" "maximum")
1169 '("gulong" "default_value")
1170 '("GParamFlags" "flags")
1174 (define-function g_param_spec_int64
1175 (c-name "g_param_spec_int64")
1176 (return-type "GParamSpec*")
1178 '("const-gchar*" "name")
1179 '("const-gchar*" "nick")
1180 '("const-gchar*" "blurb")
1181 '("gint64" "minimum")
1182 '("gint64" "maximum")
1183 '("gint64" "default_value")
1184 '("GParamFlags" "flags")
1188 (define-function g_param_spec_uint64
1189 (c-name "g_param_spec_uint64")
1190 (return-type "GParamSpec*")
1192 '("const-gchar*" "name")
1193 '("const-gchar*" "nick")
1194 '("const-gchar*" "blurb")
1195 '("guint64" "minimum")
1196 '("guint64" "maximum")
1197 '("guint64" "default_value")
1198 '("GParamFlags" "flags")
1202 (define-function g_param_spec_unichar
1203 (c-name "g_param_spec_unichar")
1204 (return-type "GParamSpec*")
1206 '("const-gchar*" "name")
1207 '("const-gchar*" "nick")
1208 '("const-gchar*" "blurb")
1209 '("gunichar" "default_value")
1210 '("GParamFlags" "flags")
1214 (define-function g_param_spec_enum
1215 (c-name "g_param_spec_enum")
1216 (return-type "GParamSpec*")
1218 '("const-gchar*" "name")
1219 '("const-gchar*" "nick")
1220 '("const-gchar*" "blurb")
1221 '("GType" "enum_type")
1222 '("gint" "default_value")
1223 '("GParamFlags" "flags")
1227 (define-function g_param_spec_flags
1228 (c-name "g_param_spec_flags")
1229 (return-type "GParamSpec*")
1231 '("const-gchar*" "name")
1232 '("const-gchar*" "nick")
1233 '("const-gchar*" "blurb")
1234 '("GType" "flags_type")
1235 '("guint" "default_value")
1236 '("GParamFlags" "flags")
1240 (define-function g_param_spec_float
1241 (c-name "g_param_spec_float")
1242 (return-type "GParamSpec*")
1244 '("const-gchar*" "name")
1245 '("const-gchar*" "nick")
1246 '("const-gchar*" "blurb")
1247 '("gfloat" "minimum")
1248 '("gfloat" "maximum")
1249 '("gfloat" "default_value")
1250 '("GParamFlags" "flags")
1254 (define-function g_param_spec_double
1255 (c-name "g_param_spec_double")
1256 (return-type "GParamSpec*")
1258 '("const-gchar*" "name")
1259 '("const-gchar*" "nick")
1260 '("const-gchar*" "blurb")
1261 '("gdouble" "minimum")
1262 '("gdouble" "maximum")
1263 '("gdouble" "default_value")
1264 '("GParamFlags" "flags")
1268 (define-function g_param_spec_string
1269 (c-name "g_param_spec_string")
1270 (return-type "GParamSpec*")
1272 '("const-gchar*" "name")
1273 '("const-gchar*" "nick")
1274 '("const-gchar*" "blurb")
1275 '("const-gchar*" "default_value")
1276 '("GParamFlags" "flags")
1280 (define-function g_param_spec_param
1281 (c-name "g_param_spec_param")
1282 (return-type "GParamSpec*")
1284 '("const-gchar*" "name")
1285 '("const-gchar*" "nick")
1286 '("const-gchar*" "blurb")
1287 '("GType" "param_type")
1288 '("GParamFlags" "flags")
1292 (define-function g_param_spec_boxed
1293 (c-name "g_param_spec_boxed")
1294 (return-type "GParamSpec*")
1296 '("const-gchar*" "name")
1297 '("const-gchar*" "nick")
1298 '("const-gchar*" "blurb")
1299 '("GType" "boxed_type")
1300 '("GParamFlags" "flags")
1304 (define-function g_param_spec_pointer
1305 (c-name "g_param_spec_pointer")
1306 (return-type "GParamSpec*")
1308 '("const-gchar*" "name")
1309 '("const-gchar*" "nick")
1310 '("const-gchar*" "blurb")
1311 '("GParamFlags" "flags")
1315 (define-function g_param_spec_value_array
1316 (c-name "g_param_spec_value_array")
1317 (return-type "GParamSpec*")
1319 '("const-gchar*" "name")
1320 '("const-gchar*" "nick")
1321 '("const-gchar*" "blurb")
1322 '("GParamSpec*" "element_spec")
1323 '("GParamFlags" "flags")
1327 (define-function g_param_spec_object
1328 (c-name "g_param_spec_object")
1329 (return-type "GParamSpec*")
1331 '("const-gchar*" "name")
1332 '("const-gchar*" "nick")
1333 '("const-gchar*" "blurb")
1334 '("GType" "object_type")
1335 '("GParamFlags" "flags")
1341 ;; From gobject/gsignal.h
1343 (define-function g_signal_newv
1344 (c-name "g_signal_newv")
1345 (return-type "guint")
1347 '("const-gchar*" "signal_name")
1349 '("GSignalFlags" "signal_flags")
1350 '("GClosure*" "class_closure")
1351 '("GSignalAccumulator" "accumulator")
1352 '("gpointer" "accu_data")
1353 '("GSignalCMarshaller" "c_marshaller")
1354 '("GType" "return_type")
1355 '("guint" "n_params")
1356 '("GType*" "param_types")
1360 (define-function g_signal_new_valist
1361 (c-name "g_signal_new_valist")
1362 (return-type "guint")
1364 '("const-gchar*" "signal_name")
1366 '("GSignalFlags" "signal_flags")
1367 '("GClosure*" "class_closure")
1368 '("GSignalAccumulator" "accumulator")
1369 '("gpointer" "accu_data")
1370 '("GSignalCMarshaller" "c_marshaller")
1371 '("GType" "return_type")
1372 '("guint" "n_params")
1377 (define-function g_signal_new
1378 (c-name "g_signal_new")
1379 (return-type "guint")
1381 '("const-gchar*" "signal_name")
1383 '("GSignalFlags" "signal_flags")
1384 '("guint" "class_offset")
1385 '("GSignalAccumulator" "accumulator")
1386 '("gpointer" "accu_data")
1387 '("GSignalCMarshaller" "c_marshaller")
1388 '("GType" "return_type")
1389 '("guint" "n_params")
1394 (define-function g_signal_emitv
1395 (c-name "g_signal_emitv")
1396 (return-type "none")
1398 '("const-GValue*" "instance_and_params")
1399 '("guint" "signal_id")
1400 '("GQuark" "detail")
1401 '("GValue*" "return_value")
1405 (define-function g_signal_emit_valist
1406 (c-name "g_signal_emit_valist")
1407 (return-type "none")
1409 '("gpointer" "instance")
1410 '("guint" "signal_id")
1411 '("GQuark" "detail")
1412 '("va_list" "var_args")
1416 (define-function g_signal_emit
1417 (c-name "g_signal_emit")
1418 (return-type "none")
1420 '("gpointer" "instance")
1421 '("guint" "signal_id")
1422 '("GQuark" "detail")
1427 (define-function g_signal_emit_by_name
1428 (c-name "g_signal_emit_by_name")
1429 (return-type "none")
1431 '("gpointer" "instance")
1432 '("const-gchar*" "detailed_signal")
1437 (define-function g_signal_lookup
1438 (c-name "g_signal_lookup")
1439 (return-type "guint")
1441 '("const-gchar*" "name")
1446 (define-function g_signal_name
1447 (c-name "g_signal_name")
1448 (return-type "const-gchar*")
1450 '("guint" "signal_id")
1454 (define-function g_signal_query
1455 (c-name "g_signal_query")
1456 (return-type "none")
1458 '("guint" "signal_id")
1459 '("GSignalQuery*" "query")
1463 (define-function g_signal_list_ids
1464 (c-name "g_signal_list_ids")
1465 (return-type "guint*")
1472 (define-function g_signal_parse_name
1473 (c-name "g_signal_parse_name")
1474 (return-type "gboolean")
1476 '("const-gchar*" "detailed_signal")
1478 '("guint*" "signal_id_p")
1479 '("GQuark*" "detail_p")
1480 '("gboolean" "force_detail_quark")
1484 (define-function g_signal_get_invocation_hint
1485 (c-name "g_signal_get_invocation_hint")
1486 (return-type "GSignalInvocationHint*")
1488 '("gpointer" "instance")
1492 (define-function g_signal_stop_emission
1493 (c-name "g_signal_stop_emission")
1494 (return-type "none")
1496 '("gpointer" "instance")
1497 '("guint" "signal_id")
1498 '("GQuark" "detail")
1502 (define-function g_signal_stop_emission_by_name
1503 (c-name "g_signal_stop_emission_by_name")
1504 (return-type "none")
1506 '("gpointer" "instance")
1507 '("const-gchar*" "detailed_signal")
1511 (define-function g_signal_add_emission_hook
1512 (c-name "g_signal_add_emission_hook")
1513 (return-type "gulong")
1515 '("guint" "signal_id")
1517 '("GSignalEmissionHook" "hook_func")
1518 '("gpointer" "hook_data")
1519 '("GDestroyNotify" "data_destroy")
1523 (define-function g_signal_remove_emission_hook
1524 (c-name "g_signal_remove_emission_hook")
1525 (return-type "none")
1527 '("guint" "signal_id")
1528 '("gulong" "hook_id")
1532 (define-function g_signal_has_handler_pending
1533 (c-name "g_signal_has_handler_pending")
1534 (return-type "gboolean")
1536 '("gpointer" "instance")
1537 '("guint" "signal_id")
1538 '("GQuark" "detail")
1539 '("gboolean" "may_be_blocked")
1543 (define-function g_signal_connect_closure_by_id
1544 (c-name "g_signal_connect_closure_by_id")
1545 (return-type "gulong")
1547 '("gpointer" "instance")
1548 '("guint" "signal_id")
1549 '("GQuark" "detail")
1550 '("GClosure*" "closure")
1551 '("gboolean" "after")
1555 (define-function g_signal_connect_closure
1556 (c-name "g_signal_connect_closure")
1557 (return-type "gulong")
1559 '("gpointer" "instance")
1560 '("const-gchar*" "detailed_signal")
1561 '("GClosure*" "closure")
1562 '("gboolean" "after")
1566 (define-function g_signal_connect_data
1567 (c-name "g_signal_connect_data")
1568 (return-type "gulong")
1570 '("gpointer" "instance")
1571 '("const-gchar*" "detailed_signal")
1572 '("GCallback" "c_handler")
1573 '("gpointer" "data")
1574 '("GClosureNotify" "destroy_data")
1575 '("GConnectFlags" "connect_flags")
1579 (define-function g_signal_handler_block
1580 (c-name "g_signal_handler_block")
1581 (return-type "none")
1583 '("gpointer" "instance")
1584 '("gulong" "handler_id")
1588 (define-function g_signal_handler_unblock
1589 (c-name "g_signal_handler_unblock")
1590 (return-type "none")
1592 '("gpointer" "instance")
1593 '("gulong" "handler_id")
1597 (define-function g_signal_handler_disconnect
1598 (c-name "g_signal_handler_disconnect")
1599 (return-type "none")
1601 '("gpointer" "instance")
1602 '("gulong" "handler_id")
1606 (define-function g_signal_handler_is_connected
1607 (c-name "g_signal_handler_is_connected")
1608 (return-type "gboolean")
1610 '("gpointer" "instance")
1611 '("gulong" "handler_id")
1615 (define-function g_signal_handler_find
1616 (c-name "g_signal_handler_find")
1617 (return-type "gulong")
1619 '("gpointer" "instance")
1620 '("GSignalMatchType" "mask")
1621 '("guint" "signal_id")
1622 '("GQuark" "detail")
1623 '("GClosure*" "closure")
1624 '("gpointer" "func")
1625 '("gpointer" "data")
1629 (define-function g_signal_handlers_block_matched
1630 (c-name "g_signal_handlers_block_matched")
1631 (return-type "guint")
1633 '("gpointer" "instance")
1634 '("GSignalMatchType" "mask")
1635 '("guint" "signal_id")
1636 '("GQuark" "detail")
1637 '("GClosure*" "closure")
1638 '("gpointer" "func")
1639 '("gpointer" "data")
1643 (define-function g_signal_handlers_unblock_matched
1644 (c-name "g_signal_handlers_unblock_matched")
1645 (return-type "guint")
1647 '("gpointer" "instance")
1648 '("GSignalMatchType" "mask")
1649 '("guint" "signal_id")
1650 '("GQuark" "detail")
1651 '("GClosure*" "closure")
1652 '("gpointer" "func")
1653 '("gpointer" "data")
1657 (define-function g_signal_handlers_disconnect_matched
1658 (c-name "g_signal_handlers_disconnect_matched")
1659 (return-type "guint")
1661 '("gpointer" "instance")
1662 '("GSignalMatchType" "mask")
1663 '("guint" "signal_id")
1664 '("GQuark" "detail")
1665 '("GClosure*" "closure")
1666 '("gpointer" "func")
1667 '("gpointer" "data")
1671 (define-function g_signal_override_class_closure
1672 (c-name "g_signal_override_class_closure")
1673 (return-type "none")
1675 '("guint" "signal_id")
1676 '("GType" "instance_type")
1677 '("GClosure*" "class_closure")
1681 (define-function g_signal_chain_from_overridden
1682 (c-name "g_signal_chain_from_overridden")
1683 (return-type "none")
1685 '("const-GValue*" "instance_and_params")
1686 '("GValue*" "return_value")
1690 (define-function _g_signals_destroy
1691 (c-name "_g_signals_destroy")
1692 (return-type "none")
1700 ;; From gobject/gsourceclosure.h
1702 (define-function g_io_channel_get_type
1703 (c-name "g_io_channel_get_type")
1704 (return-type "GType")
1707 (define-function g_io_condition_get_type
1708 (c-name "g_io_condition_get_type")
1709 (return-type "GType")
1714 ;; From gobject/gtype.h
1716 (define-function g_type_init
1717 (c-name "g_type_init")
1718 (return-type "none")
1721 (define-function g_type_init_with_debug_flags
1722 (c-name "g_type_init_with_debug_flags")
1723 (return-type "none")
1725 '("GTypeDebugFlags" "debug_flags")
1731 (c-name "g_type_name")
1732 (return-type "const-gchar*")
1735 (define-method qname
1737 (c-name "g_type_qname")
1738 (return-type "GQuark")
1741 (define-function g_type_from_name
1742 (c-name "g_type_from_name")
1743 (return-type "GType")
1745 '("const-gchar*" "name")
1749 (define-method parent
1751 (c-name "g_type_parent")
1752 (return-type "GType")
1755 (define-method depth
1757 (c-name "g_type_depth")
1758 (return-type "guint")
1761 (define-method next_base
1763 (c-name "g_type_next_base")
1764 (return-type "GType")
1766 '("GType" "root_type")
1772 (c-name "g_type_is_a")
1773 (return-type "gboolean")
1775 '("GType" "is_a_type")
1779 (define-method class_ref
1781 (c-name "g_type_class_ref")
1782 (return-type "gpointer")
1785 (define-method class_peek
1787 (c-name "g_type_class_peek")
1788 (return-type "gpointer")
1791 (define-function g_type_class_unref
1792 (c-name "g_type_class_unref")
1793 (return-type "none")
1795 '("gpointer" "g_class")
1799 (define-function g_type_class_peek_parent
1800 (c-name "g_type_class_peek_parent")
1801 (return-type "gpointer")
1803 '("gpointer" "g_class")
1807 (define-function g_type_interface_peek
1808 (c-name "g_type_interface_peek")
1809 (return-type "gpointer")
1811 '("gpointer" "instance_class")
1812 '("GType" "iface_type")
1816 (define-function g_type_interface_peek_parent
1817 (c-name "g_type_interface_peek_parent")
1818 (return-type "gpointer")
1820 '("gpointer" "g_iface")
1824 (define-method children
1826 (c-name "g_type_children")
1827 (return-type "GType*")
1829 '("guint*" "n_children")
1833 (define-method interfaces
1835 (c-name "g_type_interfaces")
1836 (return-type "GType*")
1838 '("guint*" "n_interfaces")
1842 (define-method set_qdata
1844 (c-name "g_type_set_qdata")
1845 (return-type "none")
1848 '("gpointer" "data")
1852 (define-method get_qdata
1854 (c-name "g_type_get_qdata")
1855 (return-type "gpointer")
1861 (define-method query
1863 (c-name "g_type_query")
1864 (return-type "none")
1866 '("GTypeQuery*" "query")
1870 (define-method register_static
1872 (c-name "g_type_register_static")
1873 (return-type "GType")
1875 '("const-gchar*" "type_name")
1876 '("const-GTypeInfo*" "info")
1877 '("GTypeFlags" "flags")
1881 (define-method register_dynamic
1883 (c-name "g_type_register_dynamic")
1884 (return-type "GType")
1886 '("const-gchar*" "type_name")
1887 '("GTypePlugin*" "plugin")
1888 '("GTypeFlags" "flags")
1892 (define-method register_fundamental
1894 (c-name "g_type_register_fundamental")
1895 (return-type "GType")
1897 '("const-gchar*" "type_name")
1898 '("const-GTypeInfo*" "info")
1899 '("const-GTypeFundamentalInfo*" "finfo")
1900 '("GTypeFlags" "flags")
1904 (define-method add_interface_static
1906 (c-name "g_type_add_interface_static")
1907 (return-type "none")
1909 '("GType" "interface_type")
1910 '("const-GInterfaceInfo*" "info")
1914 (define-method add_interface_dynamic
1916 (c-name "g_type_add_interface_dynamic")
1917 (return-type "none")
1919 '("GType" "interface_type")
1920 '("GTypePlugin*" "plugin")
1924 (define-method interface_add_prerequisite
1926 (c-name "g_type_interface_add_prerequisite")
1927 (return-type "none")
1929 '("GType" "prerequisite_type")
1933 (define-method get_plugin
1935 (c-name "g_type_get_plugin")
1936 (return-type "GTypePlugin*")
1939 (define-method interface_get_plugin
1941 (c-name "g_type_interface_get_plugin")
1942 (return-type "GTypePlugin*")
1944 '("GType" "implementation_type")
1948 (define-function g_type_fundamental_next
1949 (c-name "g_type_fundamental_next")
1950 (return-type "GType")
1953 (define-method fundamental
1955 (c-name "g_type_fundamental")
1956 (return-type "GType")
1959 (define-method create_instance
1961 (c-name "g_type_create_instance")
1962 (return-type "GTypeInstance*")
1965 (define-function g_type_free_instance
1966 (c-name "g_type_free_instance")
1967 (return-type "none")
1969 '("GTypeInstance*" "instance")
1973 (define-function g_type_add_class_cache_func
1974 (c-name "g_type_add_class_cache_func")
1975 (return-type "none")
1977 '("gpointer" "cache_data")
1978 '("GTypeClassCacheFunc" "cache_func")
1982 (define-function g_type_remove_class_cache_func
1983 (c-name "g_type_remove_class_cache_func")
1984 (return-type "none")
1986 '("gpointer" "cache_data")
1987 '("GTypeClassCacheFunc" "cache_func")
1991 (define-function g_type_class_unref_uncached
1992 (c-name "g_type_class_unref_uncached")
1993 (return-type "none")
1995 '("gpointer" "g_class")
1999 (define-method value_table_peek
2001 (c-name "g_type_value_table_peek")
2002 (return-type "GTypeValueTable*")
2005 (define-function g_type_check_instance
2006 (c-name "g_type_check_instance")
2007 (return-type "gboolean")
2009 '("GTypeInstance*" "instance")
2013 (define-function g_type_check_instance_cast
2014 (c-name "g_type_check_instance_cast")
2015 (return-type "GTypeInstance*")
2017 '("GTypeInstance*" "instance")
2018 '("GType" "iface_type")
2022 (define-function g_type_check_instance_is_a
2023 (c-name "g_type_check_instance_is_a")
2024 (return-type "gboolean")
2026 '("GTypeInstance*" "instance")
2027 '("GType" "iface_type")
2031 (define-function g_type_check_class_cast
2032 (c-name "g_type_check_class_cast")
2033 (return-type "GTypeClass*")
2035 '("GTypeClass*" "g_class")
2036 '("GType" "is_a_type")
2040 (define-function g_type_check_class_is_a
2041 (c-name "g_type_check_class_is_a")
2042 (return-type "gboolean")
2044 '("GTypeClass*" "g_class")
2045 '("GType" "is_a_type")
2049 (define-method check_is_value_type
2051 (c-name "g_type_check_is_value_type")
2052 (return-type "gboolean")
2055 (define-function g_type_check_value
2056 (c-name "g_type_check_value")
2057 (return-type "gboolean")
2059 '("GValue*" "value")
2063 (define-function g_type_check_value_holds
2064 (c-name "g_type_check_value_holds")
2065 (return-type "gboolean")
2067 '("GValue*" "value")
2072 (define-method test_flags
2074 (c-name "g_type_test_flags")
2075 (return-type "gboolean")
2081 (define-function g_type_name_from_instance
2082 (c-name "g_type_name_from_instance")
2083 (return-type "const-gchar*")
2085 '("GTypeInstance*" "instance")
2089 (define-function g_type_name_from_class
2090 (c-name "g_type_name_from_class")
2091 (return-type "const-gchar*")
2093 '("GTypeClass*" "g_class")
2099 ;; From gobject/gtypemodule.h
2101 (define-function g_type_module_get_type
2102 (c-name "g_type_module_get_type")
2103 (return-type "GType")
2107 (of-object "GTypeModule")
2108 (c-name "g_type_module_use")
2109 (return-type "gboolean")
2112 (define-method unuse
2113 (of-object "GTypeModule")
2114 (c-name "g_type_module_unuse")
2115 (return-type "none")
2118 (define-method set_name
2119 (of-object "GTypeModule")
2120 (c-name "g_type_module_set_name")
2121 (return-type "none")
2123 '("const-gchar*" "name")
2127 (define-method register_type
2128 (of-object "GTypeModule")
2129 (c-name "g_type_module_register_type")
2130 (return-type "GType")
2132 '("GType" "parent_type")
2133 '("const-gchar*" "type_name")
2134 '("const-GTypeInfo*" "type_info")
2135 '("GTypeFlags" "flags")
2139 (define-method add_interface
2140 (of-object "GTypeModule")
2141 (c-name "g_type_module_add_interface")
2142 (return-type "none")
2144 '("GType" "instance_type")
2145 '("GType" "interface_type")
2146 '("const-GInterfaceInfo*" "interface_info")
2152 ;; From gobject/gtypeplugin.h
2154 (define-function g_type_plugin_get_type
2155 (c-name "g_type_plugin_get_type")
2156 (return-type "GType")
2160 (of-object "GTypePlugin")
2161 (c-name "g_type_plugin_use")
2162 (return-type "none")
2165 (define-method unuse
2166 (of-object "GTypePlugin")
2167 (c-name "g_type_plugin_unuse")
2168 (return-type "none")
2171 (define-method complete_type_info
2172 (of-object "GTypePlugin")
2173 (c-name "g_type_plugin_complete_type_info")
2174 (return-type "none")
2177 '("GTypeInfo*" "info")
2178 '("GTypeValueTable*" "value_table")
2182 (define-method complete_interface_info
2183 (of-object "GTypePlugin")
2184 (c-name "g_type_plugin_complete_interface_info")
2185 (return-type "none")
2187 '("GType" "interface_type")
2188 '("GType" "instance_type")
2189 '("GInterfaceInfo*" "info")
2195 ;; From gobject/gvaluearray.h
2197 (define-method get_nth
2198 (of-object "GValueArray")
2199 (c-name "g_value_array_get_nth")
2200 (return-type "GValue*")
2206 (define-function g_value_array_new
2207 (c-name "g_value_array_new")
2208 (return-type "GValueArray*")
2210 '("guint" "n_prealloced")
2215 (of-object "GValueArray")
2216 (c-name "g_value_array_free")
2217 (return-type "none")
2221 (of-object "GValueArray")
2222 (c-name "g_value_array_copy")
2223 (return-type "GValueArray*")
2226 (define-method prepend
2227 (of-object "GValueArray")
2228 (c-name "g_value_array_prepend")
2229 (return-type "GValueArray*")
2231 '("const-GValue*" "value")
2235 (define-method append
2236 (of-object "GValueArray")
2237 (c-name "g_value_array_append")
2238 (return-type "GValueArray*")
2240 '("const-GValue*" "value")
2244 (define-method insert
2245 (of-object "GValueArray")
2246 (c-name "g_value_array_insert")
2247 (return-type "GValueArray*")
2250 '("const-GValue*" "value")
2254 (define-method remove
2255 (of-object "GValueArray")
2256 (c-name "g_value_array_remove")
2257 (return-type "GValueArray*")
2264 (of-object "GValueArray")
2265 (c-name "g_value_array_sort")
2266 (return-type "GValueArray*")
2268 '("GCompareFunc" "compare_func")
2272 (define-method sort_with_data
2273 (of-object "GValueArray")
2274 (c-name "g_value_array_sort_with_data")
2275 (return-type "GValueArray*")
2277 '("GCompareDataFunc" "compare_func")
2278 '("gpointer" "user_data")
2284 ;; From gobject/gvaluecollector.h
2288 ;; From gobject/gvalue.h
2291 (of-object "GValue")
2292 (c-name "g_value_init")
2293 (return-type "GValue*")
2300 (of-object "GValue")
2301 (c-name "g_value_copy")
2302 (return-type "none")
2304 '("GValue*" "dest_value")
2308 (define-method reset
2309 (of-object "GValue")
2310 (c-name "g_value_reset")
2311 (return-type "GValue*")
2314 (define-method unset
2315 (of-object "GValue")
2316 (c-name "g_value_unset")
2317 (return-type "none")
2320 (define-method set_instance
2321 (of-object "GValue")
2322 (c-name "g_value_set_instance")
2323 (return-type "none")
2325 '("gpointer" "instance")
2329 (define-method fits_pointer
2330 (of-object "GValue")
2331 (c-name "g_value_fits_pointer")
2332 (return-type "gboolean")
2335 (define-method peek_pointer
2336 (of-object "GValue")
2337 (c-name "g_value_peek_pointer")
2338 (return-type "gpointer")
2341 (define-function g_value_type_compatible
2342 (c-name "g_value_type_compatible")
2343 (return-type "gboolean")
2345 '("GType" "src_type")
2346 '("GType" "dest_type")
2350 (define-function g_value_type_transformable
2351 (c-name "g_value_type_transformable")
2352 (return-type "gboolean")
2354 '("GType" "src_type")
2355 '("GType" "dest_type")
2359 (define-method transform
2360 (of-object "GValue")
2361 (c-name "g_value_transform")
2362 (return-type "gboolean")
2364 '("GValue*" "dest_value")
2368 (define-function g_value_register_transform_func
2369 (c-name "g_value_register_transform_func")
2370 (return-type "none")
2372 '("GType" "src_type")
2373 '("GType" "dest_type")
2374 '("GValueTransform" "transform_func")
2380 ;; From gobject/gvaluetypes.h
2382 (define-method get_char
2383 (of-object "GValue")
2384 (c-name "g_value_get_char")
2385 (return-type "gchar")
2388 (define-method set_uchar
2389 (of-object "GValue")
2390 (c-name "g_value_set_uchar")
2391 (return-type "none")
2393 '("guchar" "v_uchar")
2397 (define-method get_uchar
2398 (of-object "GValue")
2399 (c-name "g_value_get_uchar")
2400 (return-type "guchar")
2403 (define-method set_boolean
2404 (of-object "GValue")
2405 (c-name "g_value_set_boolean")
2406 (return-type "none")
2408 '("gboolean" "v_boolean")
2412 (define-method get_boolean
2413 (of-object "GValue")
2414 (c-name "g_value_get_boolean")
2415 (return-type "gboolean")
2418 (define-method set_int
2419 (of-object "GValue")
2420 (c-name "g_value_set_int")
2421 (return-type "none")
2427 (define-method get_int
2428 (of-object "GValue")
2429 (c-name "g_value_get_int")
2430 (return-type "gint")
2433 (define-method set_uint
2434 (of-object "GValue")
2435 (c-name "g_value_set_uint")
2436 (return-type "none")
2442 (define-method get_uint
2443 (of-object "GValue")
2444 (c-name "g_value_get_uint")
2445 (return-type "guint")
2448 (define-method set_long
2449 (of-object "GValue")
2450 (c-name "g_value_set_long")
2451 (return-type "none")
2457 (define-method get_long
2458 (of-object "GValue")
2459 (c-name "g_value_get_long")
2460 (return-type "glong")
2463 (define-method set_ulong
2464 (of-object "GValue")
2465 (c-name "g_value_set_ulong")
2466 (return-type "none")
2468 '("gulong" "v_ulong")
2472 (define-method get_ulong
2473 (of-object "GValue")
2474 (c-name "g_value_get_ulong")
2475 (return-type "gulong")
2478 (define-method set_int64
2479 (of-object "GValue")
2480 (c-name "g_value_set_int64")
2481 (return-type "none")
2483 '("gint64" "v_int64")
2487 (define-method get_int64
2488 (of-object "GValue")
2489 (c-name "g_value_get_int64")
2490 (return-type "gint64")
2493 (define-method set_uint64
2494 (of-object "GValue")
2495 (c-name "g_value_set_uint64")
2496 (return-type "none")
2498 '("guint64" "v_uint64")
2502 (define-method get_uint64
2503 (of-object "GValue")
2504 (c-name "g_value_get_uint64")
2505 (return-type "guint64")
2508 (define-method set_float
2509 (of-object "GValue")
2510 (c-name "g_value_set_float")
2511 (return-type "none")
2513 '("gfloat" "v_float")
2517 (define-method get_float
2518 (of-object "GValue")
2519 (c-name "g_value_get_float")
2520 (return-type "gfloat")
2523 (define-method set_double
2524 (of-object "GValue")
2525 (c-name "g_value_set_double")
2526 (return-type "none")
2528 '("gdouble" "v_double")
2532 (define-method get_double
2533 (of-object "GValue")
2534 (c-name "g_value_get_double")
2535 (return-type "gdouble")
2538 (define-method set_string
2539 (of-object "GValue")
2540 (c-name "g_value_set_string")
2541 (return-type "none")
2543 '("const-gchar*" "v_string")
2547 (define-method set_static_string
2548 (of-object "GValue")
2549 (c-name "g_value_set_static_string")
2550 (return-type "none")
2552 '("const-gchar*" "v_string")
2556 (define-method get_string
2557 (of-object "GValue")
2558 (c-name "g_value_get_string")
2559 (return-type "const-gchar*")
2562 (define-method dup_string
2563 (of-object "GValue")
2564 (c-name "g_value_dup_string")
2565 (return-type "gchar*")
2568 (define-method set_pointer
2569 (of-object "GValue")
2570 (c-name "g_value_set_pointer")
2571 (return-type "none")
2573 '("gpointer" "v_pointer")
2577 (define-method get_pointer
2578 (of-object "GValue")
2579 (c-name "g_value_get_pointer")
2580 (return-type "gpointer")
2583 (define-function g_pointer_type_register_static
2584 (c-name "g_pointer_type_register_static")
2585 (return-type "GType")
2587 '("const-gchar*" "name")
2591 (define-function g_strdup_value_contents
2592 (c-name "g_strdup_value_contents")
2593 (return-type "gchar*")
2595 '("const-GValue*" "value")
2599 (define-method set_string_take_ownership
2600 (of-object "GValue")
2601 (c-name "g_value_set_string_take_ownership")
2602 (return-type "none")
2604 '("gchar*" "v_string")