Fix crash on startup if an LV2 plugin has a bad .ttl file.
[ardour.git] / libs / glibmm2 / glib / src / gobject_functions.defs
1 ;; -*- scheme -*-
2 ; object definitions ...
3 (define-object TypeModule
4   (in-module "G")
5   (parent "GObject")
6   (c-name "GTypeModule")
7   (gtype-id "G_TYPE_TYPE_MODULE")
8 )
9
10 ;; Enumerations and flags ...
11
12 (define-flags ParamFlags
13   (in-module "G")
14   (c-name "GParamFlags")
15   (gtype-id "G_TYPE_PARAM_FLAGS")
16   (values
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")
23   )
24 )
25
26 (define-flags SignalFlags
27   (in-module "G")
28   (c-name "GSignalFlags")
29   (gtype-id "G_TYPE_SIGNAL_FLAGS")
30   (values
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")
38   )
39 )
40
41 (define-flags ConnectFlags
42   (in-module "G")
43   (c-name "GConnectFlags")
44   (gtype-id "G_TYPE_CONNECT_FLAGS")
45   (values
46     '("after" "G_CONNECT_AFTER")
47     '("swapped" "G_CONNECT_SWAPPED")
48   )
49 )
50
51 (define-flags SignalMatchType
52   (in-module "G")
53   (c-name "GSignalMatchType")
54   (gtype-id "G_TYPE_SIGNAL_MATCH_TYPE")
55   (values
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")
62   )
63 )
64
65 (define-flags TypeDebugFlags
66   (in-module "G")
67   (c-name "GTypeDebugFlags")
68   (gtype-id "G_TYPE_TYPE_DEBUG_FLAGS")
69   (values
70     '("none" "G_TYPE_DEBUG_NONE")
71     '("objects" "G_TYPE_DEBUG_OBJECTS")
72     '("signals" "G_TYPE_DEBUG_SIGNALS")
73     '("mask" "G_TYPE_DEBUG_MASK")
74   )
75 )
76
77 (define-flags TypeFundamentalFlags
78   (in-module "G")
79   (c-name "GTypeFundamentalFlags")
80   (gtype-id "G_TYPE_TYPE_FUNDAMENTAL_FLAGS")
81   (values
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")
86   )
87 )
88
89 (define-flags TypeFlags
90   (in-module "G")
91   (c-name "GTypeFlags")
92   (gtype-id "G_TYPE_TYPE_FLAGS")
93   (values
94     '("abstract" "G_TYPE_FLAG_ABSTRACT")
95     '("value-abstract" "G_TYPE_FLAG_VALUE_ABSTRACT")
96   )
97 )
98
99
100 ;; From gobject/gboxed.h
101
102 (define-function g_boxed_free
103   (c-name "g_boxed_free")
104   (return-type "none")
105   (parameters
106     '("GType" "boxed_type")
107     '("gpointer" "boxed")
108   )
109 )
110
111 (define-method set_boxed
112   (of-object "GValue")
113   (c-name "g_value_set_boxed")
114   (return-type "none")
115   (parameters
116     '("gconstpointer" "v_boxed")
117   )
118 )
119
120 (define-method set_static_boxed
121   (of-object "GValue")
122   (c-name "g_value_set_static_boxed")
123   (return-type "none")
124   (parameters
125     '("gconstpointer" "v_boxed")
126   )
127 )
128
129 (define-method get_boxed
130   (of-object "GValue")
131   (c-name "g_value_get_boxed")
132   (return-type "gpointer")
133 )
134
135 (define-method dup_boxed
136   (of-object "GValue")
137   (c-name "g_value_dup_boxed")
138   (return-type "gpointer")
139 )
140
141 (define-function g_boxed_type_register_static
142   (c-name "g_boxed_type_register_static")
143   (return-type "GType")
144   (parameters
145     '("const-gchar*" "name")
146     '("GBoxedCopyFunc" "boxed_copy")
147     '("GBoxedFreeFunc" "boxed_free")
148   )
149 )
150
151 (define-method set_boxed_take_ownership
152   (of-object "GValue")
153   (c-name "g_value_set_boxed_take_ownership")
154   (return-type "none")
155   (parameters
156     '("gconstpointer" "v_boxed")
157   )
158 )
159
160 (define-function g_closure_get_type
161   (c-name "g_closure_get_type")
162   (return-type "GType")
163 )
164
165 (define-function g_value_get_type
166   (c-name "g_value_get_type")
167   (return-type "GType")
168 )
169
170 (define-function g_value_array_get_type
171   (c-name "g_value_array_get_type")
172   (return-type "GType")
173 )
174
175 (define-function g_gstring_get_type
176   (c-name "g_gstring_get_type")
177   (return-type "GType")
178 )
179
180
181
182 ;; From gobject/gclosure.h
183
184 (define-function g_cclosure_new
185   (c-name "g_cclosure_new")
186   (return-type "GClosure*")
187   (parameters
188     '("GCallback" "callback_func")
189     '("gpointer" "user_data")
190     '("GClosureNotify" "destroy_data")
191   )
192 )
193
194 (define-function g_cclosure_new_swap
195   (c-name "g_cclosure_new_swap")
196   (return-type "GClosure*")
197   (parameters
198     '("GCallback" "callback_func")
199     '("gpointer" "user_data")
200     '("GClosureNotify" "destroy_data")
201   )
202 )
203
204 (define-function g_signal_type_cclosure_new
205   (c-name "g_signal_type_cclosure_new")
206   (return-type "GClosure*")
207   (parameters
208     '("GType" "itype")
209     '("guint" "struct_offset")
210   )
211 )
212
213 (define-method ref
214   (of-object "GClosure")
215   (c-name "g_closure_ref")
216   (return-type "GClosure*")
217 )
218
219 (define-method sink
220   (of-object "GClosure")
221   (c-name "g_closure_sink")
222   (return-type "none")
223 )
224
225 (define-method unref
226   (of-object "GClosure")
227   (c-name "g_closure_unref")
228   (return-type "none")
229 )
230
231 (define-function g_closure_new_simple
232   (c-name "g_closure_new_simple")
233   (return-type "GClosure*")
234   (parameters
235     '("guint" "sizeof_closure")
236     '("gpointer" "data")
237   )
238 )
239
240 (define-method add_finalize_notifier
241   (of-object "GClosure")
242   (c-name "g_closure_add_finalize_notifier")
243   (return-type "none")
244   (parameters
245     '("gpointer" "notify_data")
246     '("GClosureNotify" "notify_func")
247   )
248 )
249
250 (define-method remove_finalize_notifier
251   (of-object "GClosure")
252   (c-name "g_closure_remove_finalize_notifier")
253   (return-type "none")
254   (parameters
255     '("gpointer" "notify_data")
256     '("GClosureNotify" "notify_func")
257   )
258 )
259
260 (define-method add_invalidate_notifier
261   (of-object "GClosure")
262   (c-name "g_closure_add_invalidate_notifier")
263   (return-type "none")
264   (parameters
265     '("gpointer" "notify_data")
266     '("GClosureNotify" "notify_func")
267   )
268 )
269
270 (define-method remove_invalidate_notifier
271   (of-object "GClosure")
272   (c-name "g_closure_remove_invalidate_notifier")
273   (return-type "none")
274   (parameters
275     '("gpointer" "notify_data")
276     '("GClosureNotify" "notify_func")
277   )
278 )
279
280 (define-method add_marshal_guards
281   (of-object "GClosure")
282   (c-name "g_closure_add_marshal_guards")
283   (return-type "none")
284   (parameters
285     '("gpointer" "pre_marshal_data")
286     '("GClosureNotify" "pre_marshal_notify")
287     '("gpointer" "post_marshal_data")
288     '("GClosureNotify" "post_marshal_notify")
289   )
290 )
291
292 (define-method set_marshal
293   (of-object "GClosure")
294   (c-name "g_closure_set_marshal")
295   (return-type "none")
296   (parameters
297     '("GClosureMarshal" "marshal")
298   )
299 )
300
301 (define-method set_meta_marshal
302   (of-object "GClosure")
303   (c-name "g_closure_set_meta_marshal")
304   (return-type "none")
305   (parameters
306     '("gpointer" "marshal_data")
307     '("GClosureMarshal" "meta_marshal")
308   )
309 )
310
311 (define-method invalidate
312   (of-object "GClosure")
313   (c-name "g_closure_invalidate")
314   (return-type "none")
315 )
316
317 (define-method invoke
318   (of-object "GClosure")
319   (c-name "g_closure_invoke")
320   (return-type "none")
321   (parameters
322     '("GValue*" "return_value")
323     '("guint" "n_param_values")
324     '("const-GValue*" "param_values")
325     '("gpointer" "invocation_hint")
326   )
327 )
328
329
330
331 ;; From gobject/genums.h
332
333 (define-function g_enum_get_value
334   (c-name "g_enum_get_value")
335   (return-type "GEnumValue*")
336   (parameters
337     '("GEnumClass*" "enum_class")
338     '("gint" "value")
339   )
340 )
341
342 (define-function g_enum_get_value_by_name
343   (c-name "g_enum_get_value_by_name")
344   (return-type "GEnumValue*")
345   (parameters
346     '("GEnumClass*" "enum_class")
347     '("const-gchar*" "name")
348   )
349 )
350
351 (define-function g_enum_get_value_by_nick
352   (c-name "g_enum_get_value_by_nick")
353   (return-type "GEnumValue*")
354   (parameters
355     '("GEnumClass*" "enum_class")
356     '("const-gchar*" "nick")
357   )
358 )
359
360 (define-function g_flags_get_first_value
361   (c-name "g_flags_get_first_value")
362   (return-type "GFlagsValue*")
363   (parameters
364     '("GFlagsClass*" "flags_class")
365     '("guint" "value")
366   )
367 )
368
369 (define-function g_flags_get_value_by_name
370   (c-name "g_flags_get_value_by_name")
371   (return-type "GFlagsValue*")
372   (parameters
373     '("GFlagsClass*" "flags_class")
374     '("const-gchar*" "name")
375   )
376 )
377
378 (define-function g_flags_get_value_by_nick
379   (c-name "g_flags_get_value_by_nick")
380   (return-type "GFlagsValue*")
381   (parameters
382     '("GFlagsClass*" "flags_class")
383     '("const-gchar*" "nick")
384   )
385 )
386
387 (define-method set_enum
388   (of-object "GValue")
389   (c-name "g_value_set_enum")
390   (return-type "none")
391   (parameters
392     '("gint" "v_enum")
393   )
394 )
395
396 (define-method get_enum
397   (of-object "GValue")
398   (c-name "g_value_get_enum")
399   (return-type "gint")
400 )
401
402 (define-method set_flags
403   (of-object "GValue")
404   (c-name "g_value_set_flags")
405   (return-type "none")
406   (parameters
407     '("guint" "v_flags")
408   )
409 )
410
411 (define-method get_flags
412   (of-object "GValue")
413   (c-name "g_value_get_flags")
414   (return-type "guint")
415 )
416
417 (define-function g_enum_register_static
418   (c-name "g_enum_register_static")
419   (return-type "GType")
420   (parameters
421     '("const-gchar*" "name")
422     '("const-GEnumValue*" "const_static_values")
423   )
424 )
425
426 (define-function g_flags_register_static
427   (c-name "g_flags_register_static")
428   (return-type "GType")
429   (parameters
430     '("const-gchar*" "name")
431     '("const-GFlagsValue*" "const_static_values")
432   )
433 )
434
435 (define-function g_enum_complete_type_info
436   (c-name "g_enum_complete_type_info")
437   (return-type "none")
438   (parameters
439     '("GType" "g_enum_type")
440     '("GTypeInfo*" "info")
441     '("const-GEnumValue*" "const_values")
442   )
443 )
444
445 (define-function g_flags_complete_type_info
446   (c-name "g_flags_complete_type_info")
447   (return-type "none")
448   (parameters
449     '("GType" "g_flags_type")
450     '("GTypeInfo*" "info")
451     '("const-GFlagsValue*" "const_values")
452   )
453 )
454
455
456
457 ;; From gobject/gmarshal.h
458
459
460
461 ;; From gobject/gobject.h
462
463 (define-method install_property
464   (of-object "GObjectClass")
465   (c-name "g_object_class_install_property")
466   (return-type "none")
467   (parameters
468     '("guint" "property_id")
469     '("GParamSpec*" "pspec")
470   )
471 )
472
473 (define-method find_property
474   (of-object "GObjectClass")
475   (c-name "g_object_class_find_property")
476   (return-type "GParamSpec*")
477   (parameters
478     '("const-gchar*" "property_name")
479   )
480 )
481
482 (define-function g_object_new
483   (c-name "g_object_new")
484   (return-type "gpointer")
485   (parameters
486     '("GType" "object_type")
487     '("const-gchar*" "first_property_name")
488   )
489   (varargs #t)
490 )
491
492 (define-function g_object_newv
493   (c-name "g_object_newv")
494   (return-type "gpointer")
495   (parameters
496     '("GType" "object_type")
497     '("guint" "n_parameters")
498     '("GParameter*" "parameters")
499   )
500 )
501
502 (define-function g_object_new_valist
503   (c-name "g_object_new_valist")
504   (return-type "GObject*")
505   (parameters
506     '("GType" "object_type")
507     '("const-gchar*" "first_property_name")
508     '("va_list" "var_args")
509   )
510 )
511
512 (define-function g_object_set
513   (c-name "g_object_set")
514   (return-type "none")
515   (parameters
516     '("gpointer" "object")
517     '("const-gchar*" "first_property_name")
518   )
519   (varargs #t)
520 )
521
522 (define-function g_object_get
523   (c-name "g_object_get")
524   (return-type "none")
525   (parameters
526     '("gpointer" "object")
527     '("const-gchar*" "first_property_name")
528   )
529   (varargs #t)
530 )
531
532 (define-function g_object_connect
533   (c-name "g_object_connect")
534   (return-type "gpointer")
535   (parameters
536     '("gpointer" "object")
537     '("const-gchar*" "signal_spec")
538   )
539   (varargs #t)
540 )
541
542 (define-function g_object_disconnect
543   (c-name "g_object_disconnect")
544   (return-type "none")
545   (parameters
546     '("gpointer" "object")
547     '("const-gchar*" "signal_spec")
548   )
549   (varargs #t)
550 )
551
552 (define-method set_valist
553   (of-object "GObject")
554   (c-name "g_object_set_valist")
555   (return-type "none")
556   (parameters
557     '("const-gchar*" "first_property_name")
558     '("va_list" "var_args")
559   )
560 )
561
562 (define-method get_valist
563   (of-object "GObject")
564   (c-name "g_object_get_valist")
565   (return-type "none")
566   (parameters
567     '("const-gchar*" "first_property_name")
568     '("va_list" "var_args")
569   )
570 )
571
572 (define-method set_property
573   (of-object "GObject")
574   (c-name "g_object_set_property")
575   (return-type "none")
576   (parameters
577     '("const-gchar*" "property_name")
578     '("const-GValue*" "value")
579   )
580 )
581
582 (define-method get_property
583   (of-object "GObject")
584   (c-name "g_object_get_property")
585   (return-type "none")
586   (parameters
587     '("const-gchar*" "property_name")
588     '("GValue*" "value")
589   )
590 )
591
592 (define-method freeze_notify
593   (of-object "GObject")
594   (c-name "g_object_freeze_notify")
595   (return-type "none")
596 )
597
598 (define-method notify
599   (of-object "GObject")
600   (c-name "g_object_notify")
601   (return-type "none")
602   (parameters
603     '("const-gchar*" "property_name")
604   )
605 )
606
607 (define-method thaw_notify
608   (of-object "GObject")
609   (c-name "g_object_thaw_notify")
610   (return-type "none")
611 )
612
613 (define-function g_object_ref
614   (c-name "g_object_ref")
615   (return-type "gpointer")
616   (parameters
617     '("gpointer" "object")
618   )
619 )
620
621 (define-function g_object_unref
622   (c-name "g_object_unref")
623   (return-type "none")
624   (parameters
625     '("gpointer" "object")
626   )
627 )
628
629 (define-method weak_ref
630   (of-object "GObject")
631   (c-name "g_object_weak_ref")
632   (return-type "none")
633   (parameters
634     '("GWeakNotify" "notify")
635     '("gpointer" "data")
636   )
637 )
638
639 (define-method weak_unref
640   (of-object "GObject")
641   (c-name "g_object_weak_unref")
642   (return-type "none")
643   (parameters
644     '("GWeakNotify" "notify")
645     '("gpointer" "data")
646   )
647 )
648
649 (define-method add_weak_pointer
650   (of-object "GObject")
651   (c-name "g_object_add_weak_pointer")
652   (return-type "none")
653   (parameters
654     '("gpointer*" "weak_pointer_location")
655   )
656 )
657
658 (define-method remove_weak_pointer
659   (of-object "GObject")
660   (c-name "g_object_remove_weak_pointer")
661   (return-type "none")
662   (parameters
663     '("gpointer*" "weak_pointer_location")
664   )
665 )
666
667 (define-method get_qdata
668   (of-object "GObject")
669   (c-name "g_object_get_qdata")
670   (return-type "gpointer")
671   (parameters
672     '("GQuark" "quark")
673   )
674 )
675
676 (define-method set_qdata
677   (of-object "GObject")
678   (c-name "g_object_set_qdata")
679   (return-type "none")
680   (parameters
681     '("GQuark" "quark")
682     '("gpointer" "data")
683   )
684 )
685
686 (define-method set_qdata_full
687   (of-object "GObject")
688   (c-name "g_object_set_qdata_full")
689   (return-type "none")
690   (parameters
691     '("GQuark" "quark")
692     '("gpointer" "data")
693     '("GDestroyNotify" "destroy")
694   )
695 )
696
697 (define-method steal_qdata
698   (of-object "GObject")
699   (c-name "g_object_steal_qdata")
700   (return-type "gpointer")
701   (parameters
702     '("GQuark" "quark")
703   )
704 )
705
706 (define-method get_data
707   (of-object "GObject")
708   (c-name "g_object_get_data")
709   (return-type "gpointer")
710   (parameters
711     '("const-gchar*" "key")
712   )
713 )
714
715 (define-method set_data
716   (of-object "GObject")
717   (c-name "g_object_set_data")
718   (return-type "none")
719   (parameters
720     '("const-gchar*" "key")
721     '("gpointer" "data")
722   )
723 )
724
725 (define-method set_data_full
726   (of-object "GObject")
727   (c-name "g_object_set_data_full")
728   (return-type "none")
729   (parameters
730     '("const-gchar*" "key")
731     '("gpointer" "data")
732     '("GDestroyNotify" "destroy")
733   )
734 )
735
736 (define-method steal_data
737   (of-object "GObject")
738   (c-name "g_object_steal_data")
739   (return-type "gpointer")
740   (parameters
741     '("const-gchar*" "key")
742   )
743 )
744
745 (define-method watch_closure
746   (of-object "GObject")
747   (c-name "g_object_watch_closure")
748   (return-type "none")
749   (parameters
750     '("GClosure*" "closure")
751   )
752 )
753
754 (define-function g_cclosure_new_object
755   (c-name "g_cclosure_new_object")
756   (return-type "GClosure*")
757   (parameters
758     '("GCallback" "callback_func")
759     '("GObject*" "object")
760   )
761 )
762
763 (define-function g_cclosure_new_object_swap
764   (c-name "g_cclosure_new_object_swap")
765   (return-type "GClosure*")
766   (parameters
767     '("GCallback" "callback_func")
768     '("GObject*" "object")
769   )
770 )
771
772 (define-function g_closure_new_object
773   (c-name "g_closure_new_object")
774   (return-type "GClosure*")
775   (parameters
776     '("guint" "sizeof_closure")
777     '("GObject*" "object")
778   )
779 )
780
781 (define-method set_object
782   (of-object "GValue")
783   (c-name "g_value_set_object")
784   (return-type "none")
785   (parameters
786     '("gpointer" "v_object")
787   )
788 )
789
790 (define-method get_object
791   (of-object "GValue")
792   (c-name "g_value_get_object")
793   (return-type "gpointer")
794 )
795
796 (define-method dup_object
797   (of-object "GValue")
798   (c-name "g_value_dup_object")
799   (return-type "GObject*")
800 )
801
802 (define-function g_signal_connect_object
803   (c-name "g_signal_connect_object")
804   (return-type "gulong")
805   (parameters
806     '("gpointer" "instance")
807     '("const-gchar*" "detailed_signal")
808     '("GCallback" "c_handler")
809     '("gpointer" "gobject")
810     '("GConnectFlags" "connect_flags")
811   )
812 )
813
814 (define-method run_dispose
815   (of-object "GObject")
816   (c-name "g_object_run_dispose")
817   (return-type "none")
818 )
819
820 (define-method set_object_take_ownership
821   (of-object "GValue")
822   (c-name "g_value_set_object_take_ownership")
823   (return-type "none")
824   (parameters
825     '("gpointer" "v_object")
826   )
827 )
828
829
830
831 ;; From gobject/gparam.h
832
833 (define-method ref
834   (of-object "GParamSpec")
835   (c-name "g_param_spec_ref")
836   (return-type "GParamSpec*")
837 )
838
839 (define-method unref
840   (of-object "GParamSpec")
841   (c-name "g_param_spec_unref")
842   (return-type "none")
843 )
844
845 (define-method sink
846   (of-object "GParamSpec")
847   (c-name "g_param_spec_sink")
848   (return-type "none")
849 )
850
851 (define-method get_qdata
852   (of-object "GParamSpec")
853   (c-name "g_param_spec_get_qdata")
854   (return-type "gpointer")
855   (parameters
856     '("GQuark" "quark")
857   )
858 )
859
860 (define-method set_qdata
861   (of-object "GParamSpec")
862   (c-name "g_param_spec_set_qdata")
863   (return-type "none")
864   (parameters
865     '("GQuark" "quark")
866     '("gpointer" "data")
867   )
868 )
869
870 (define-method set_qdata_full
871   (of-object "GParamSpec")
872   (c-name "g_param_spec_set_qdata_full")
873   (return-type "none")
874   (parameters
875     '("GQuark" "quark")
876     '("gpointer" "data")
877     '("GDestroyNotify" "destroy")
878   )
879 )
880
881 (define-method steal_qdata
882   (of-object "GParamSpec")
883   (c-name "g_param_spec_steal_qdata")
884   (return-type "gpointer")
885   (parameters
886     '("GQuark" "quark")
887   )
888 )
889
890 (define-function g_param_value_set_default
891   (c-name "g_param_value_set_default")
892   (return-type "none")
893   (parameters
894     '("GParamSpec*" "pspec")
895     '("GValue*" "value")
896   )
897 )
898
899 (define-function g_param_value_defaults
900   (c-name "g_param_value_defaults")
901   (return-type "gboolean")
902   (parameters
903     '("GParamSpec*" "pspec")
904     '("GValue*" "value")
905   )
906 )
907
908 (define-function g_param_value_validate
909   (c-name "g_param_value_validate")
910   (return-type "gboolean")
911   (parameters
912     '("GParamSpec*" "pspec")
913     '("GValue*" "value")
914   )
915 )
916
917 (define-function g_param_value_convert
918   (c-name "g_param_value_convert")
919   (return-type "gboolean")
920   (parameters
921     '("GParamSpec*" "pspec")
922     '("const-GValue*" "src_value")
923     '("GValue*" "dest_value")
924     '("gboolean" "strict_validation")
925   )
926 )
927
928 (define-function g_param_values_cmp
929   (c-name "g_param_values_cmp")
930   (return-type "gint")
931   (parameters
932     '("GParamSpec*" "pspec")
933     '("const-GValue*" "value1")
934     '("const-GValue*" "value2")
935   )
936 )
937
938 (define-method get_name
939   (of-object "GParamSpec")
940   (c-name "g_param_spec_get_name")
941   (return-type "const-gchar*")
942 )
943
944 (define-method get_nick
945   (of-object "GParamSpec")
946   (c-name "g_param_spec_get_nick")
947   (return-type "const-gchar*")
948 )
949
950 (define-method get_blurb
951   (of-object "GParamSpec")
952   (c-name "g_param_spec_get_blurb")
953   (return-type "const-gchar*")
954 )
955
956 (define-method set_param
957   (of-object "GValue")
958   (c-name "g_value_set_param")
959   (return-type "none")
960   (parameters
961     '("GParamSpec*" "param")
962   )
963 )
964
965 (define-method get_param
966   (of-object "GValue")
967   (c-name "g_value_get_param")
968   (return-type "GParamSpec*")
969 )
970
971 (define-method dup_param
972   (of-object "GValue")
973   (c-name "g_value_dup_param")
974   (return-type "GParamSpec*")
975 )
976
977 (define-method set_param_take_ownership
978   (of-object "GValue")
979   (c-name "g_value_set_param_take_ownership")
980   (return-type "none")
981   (parameters
982     '("GParamSpec*" "param")
983   )
984 )
985
986 (define-function g_param_type_register_static
987   (c-name "g_param_type_register_static")
988   (return-type "GType")
989   (parameters
990     '("const-gchar*" "name")
991     '("const-GParamSpecTypeInfo*" "pspec_info")
992   )
993 )
994
995 (define-function _g_param_type_register_static_constant
996   (c-name "_g_param_type_register_static_constant")
997   (return-type "GType")
998   (parameters
999     '("const-gchar*" "name")
1000     '("const-GParamSpecTypeInfo*" "pspec_info")
1001     '("GType" "opt_type")
1002   )
1003 )
1004
1005 (define-function g_param_spec_internal
1006   (c-name "g_param_spec_internal")
1007   (return-type "gpointer")
1008   (parameters
1009     '("GType" "param_type")
1010     '("const-gchar*" "name")
1011     '("const-gchar*" "nick")
1012     '("const-gchar*" "blurb")
1013     '("GParamFlags" "flags")
1014   )
1015 )
1016
1017 (define-function g_param_spec_pool_new
1018   (c-name "g_param_spec_pool_new")
1019   (return-type "GParamSpecPool*")
1020   (parameters
1021     '("gboolean" "type_prefixing")
1022   )
1023 )
1024
1025 (define-method insert
1026   (of-object "GParamSpecPool")
1027   (c-name "g_param_spec_pool_insert")
1028   (return-type "none")
1029   (parameters
1030     '("GParamSpec*" "pspec")
1031     '("GType" "owner_type")
1032   )
1033 )
1034
1035 (define-method remove
1036   (of-object "GParamSpecPool")
1037   (c-name "g_param_spec_pool_remove")
1038   (return-type "none")
1039   (parameters
1040     '("GParamSpec*" "pspec")
1041   )
1042 )
1043
1044 (define-method lookup
1045   (of-object "GParamSpecPool")
1046   (c-name "g_param_spec_pool_lookup")
1047   (return-type "GParamSpec*")
1048   (parameters
1049     '("const-gchar*" "param_name")
1050     '("GType" "owner_type")
1051     '("gboolean" "walk_ancestors")
1052   )
1053 )
1054
1055 (define-method list_owned
1056   (of-object "GParamSpecPool")
1057   (c-name "g_param_spec_pool_list_owned")
1058   (return-type "GList*")
1059   (parameters
1060     '("GType" "owner_type")
1061   )
1062 )
1063
1064 (define-method list
1065   (of-object "GParamSpecPool")
1066   (c-name "g_param_spec_pool_list")
1067   (return-type "GParamSpec**")
1068   (parameters
1069     '("GType" "owner_type")
1070     '("guint*" "n_pspecs_p")
1071   )
1072 )
1073
1074
1075
1076 ;; From gobject/gparamspecs.h
1077
1078 (define-function g_param_spec_char
1079   (c-name "g_param_spec_char")
1080   (return-type "GParamSpec*")
1081   (parameters
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")
1089   )
1090 )
1091
1092 (define-function g_param_spec_uchar
1093   (c-name "g_param_spec_uchar")
1094   (return-type "GParamSpec*")
1095   (parameters
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")
1103   )
1104 )
1105
1106 (define-function g_param_spec_boolean
1107   (c-name "g_param_spec_boolean")
1108   (return-type "GParamSpec*")
1109   (parameters
1110     '("const-gchar*" "name")
1111     '("const-gchar*" "nick")
1112     '("const-gchar*" "blurb")
1113     '("gboolean" "default_value")
1114     '("GParamFlags" "flags")
1115   )
1116 )
1117
1118 (define-function g_param_spec_int
1119   (c-name "g_param_spec_int")
1120   (return-type "GParamSpec*")
1121   (parameters
1122     '("const-gchar*" "name")
1123     '("const-gchar*" "nick")
1124     '("const-gchar*" "blurb")
1125     '("gint" "minimum")
1126     '("gint" "maximum")
1127     '("gint" "default_value")
1128     '("GParamFlags" "flags")
1129   )
1130 )
1131
1132 (define-function g_param_spec_uint
1133   (c-name "g_param_spec_uint")
1134   (return-type "GParamSpec*")
1135   (parameters
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")
1143   )
1144 )
1145
1146 (define-function g_param_spec_long
1147   (c-name "g_param_spec_long")
1148   (return-type "GParamSpec*")
1149   (parameters
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")
1157   )
1158 )
1159
1160 (define-function g_param_spec_ulong
1161   (c-name "g_param_spec_ulong")
1162   (return-type "GParamSpec*")
1163   (parameters
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")
1171   )
1172 )
1173
1174 (define-function g_param_spec_int64
1175   (c-name "g_param_spec_int64")
1176   (return-type "GParamSpec*")
1177   (parameters
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")
1185   )
1186 )
1187
1188 (define-function g_param_spec_uint64
1189   (c-name "g_param_spec_uint64")
1190   (return-type "GParamSpec*")
1191   (parameters
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")
1199   )
1200 )
1201
1202 (define-function g_param_spec_unichar
1203   (c-name "g_param_spec_unichar")
1204   (return-type "GParamSpec*")
1205   (parameters
1206     '("const-gchar*" "name")
1207     '("const-gchar*" "nick")
1208     '("const-gchar*" "blurb")
1209     '("gunichar" "default_value")
1210     '("GParamFlags" "flags")
1211   )
1212 )
1213
1214 (define-function g_param_spec_enum
1215   (c-name "g_param_spec_enum")
1216   (return-type "GParamSpec*")
1217   (parameters
1218     '("const-gchar*" "name")
1219     '("const-gchar*" "nick")
1220     '("const-gchar*" "blurb")
1221     '("GType" "enum_type")
1222     '("gint" "default_value")
1223     '("GParamFlags" "flags")
1224   )
1225 )
1226
1227 (define-function g_param_spec_flags
1228   (c-name "g_param_spec_flags")
1229   (return-type "GParamSpec*")
1230   (parameters
1231     '("const-gchar*" "name")
1232     '("const-gchar*" "nick")
1233     '("const-gchar*" "blurb")
1234     '("GType" "flags_type")
1235     '("guint" "default_value")
1236     '("GParamFlags" "flags")
1237   )
1238 )
1239
1240 (define-function g_param_spec_float
1241   (c-name "g_param_spec_float")
1242   (return-type "GParamSpec*")
1243   (parameters
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")
1251   )
1252 )
1253
1254 (define-function g_param_spec_double
1255   (c-name "g_param_spec_double")
1256   (return-type "GParamSpec*")
1257   (parameters
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")
1265   )
1266 )
1267
1268 (define-function g_param_spec_string
1269   (c-name "g_param_spec_string")
1270   (return-type "GParamSpec*")
1271   (parameters
1272     '("const-gchar*" "name")
1273     '("const-gchar*" "nick")
1274     '("const-gchar*" "blurb")
1275     '("const-gchar*" "default_value")
1276     '("GParamFlags" "flags")
1277   )
1278 )
1279
1280 (define-function g_param_spec_param
1281   (c-name "g_param_spec_param")
1282   (return-type "GParamSpec*")
1283   (parameters
1284     '("const-gchar*" "name")
1285     '("const-gchar*" "nick")
1286     '("const-gchar*" "blurb")
1287     '("GType" "param_type")
1288     '("GParamFlags" "flags")
1289   )
1290 )
1291
1292 (define-function g_param_spec_boxed
1293   (c-name "g_param_spec_boxed")
1294   (return-type "GParamSpec*")
1295   (parameters
1296     '("const-gchar*" "name")
1297     '("const-gchar*" "nick")
1298     '("const-gchar*" "blurb")
1299     '("GType" "boxed_type")
1300     '("GParamFlags" "flags")
1301   )
1302 )
1303
1304 (define-function g_param_spec_pointer
1305   (c-name "g_param_spec_pointer")
1306   (return-type "GParamSpec*")
1307   (parameters
1308     '("const-gchar*" "name")
1309     '("const-gchar*" "nick")
1310     '("const-gchar*" "blurb")
1311     '("GParamFlags" "flags")
1312   )
1313 )
1314
1315 (define-function g_param_spec_value_array
1316   (c-name "g_param_spec_value_array")
1317   (return-type "GParamSpec*")
1318   (parameters
1319     '("const-gchar*" "name")
1320     '("const-gchar*" "nick")
1321     '("const-gchar*" "blurb")
1322     '("GParamSpec*" "element_spec")
1323     '("GParamFlags" "flags")
1324   )
1325 )
1326
1327 (define-function g_param_spec_object
1328   (c-name "g_param_spec_object")
1329   (return-type "GParamSpec*")
1330   (parameters
1331     '("const-gchar*" "name")
1332     '("const-gchar*" "nick")
1333     '("const-gchar*" "blurb")
1334     '("GType" "object_type")
1335     '("GParamFlags" "flags")
1336   )
1337 )
1338
1339
1340
1341 ;; From gobject/gsignal.h
1342
1343 (define-function g_signal_newv
1344   (c-name "g_signal_newv")
1345   (return-type "guint")
1346   (parameters
1347     '("const-gchar*" "signal_name")
1348     '("GType" "itype")
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")
1357   )
1358 )
1359
1360 (define-function g_signal_new_valist
1361   (c-name "g_signal_new_valist")
1362   (return-type "guint")
1363   (parameters
1364     '("const-gchar*" "signal_name")
1365     '("GType" "itype")
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")
1373     '("va_list" "args")
1374   )
1375 )
1376
1377 (define-function g_signal_new
1378   (c-name "g_signal_new")
1379   (return-type "guint")
1380   (parameters
1381     '("const-gchar*" "signal_name")
1382     '("GType" "itype")
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")
1390   )
1391   (varargs #t)
1392 )
1393
1394 (define-function g_signal_emitv
1395   (c-name "g_signal_emitv")
1396   (return-type "none")
1397   (parameters
1398     '("const-GValue*" "instance_and_params")
1399     '("guint" "signal_id")
1400     '("GQuark" "detail")
1401     '("GValue*" "return_value")
1402   )
1403 )
1404
1405 (define-function g_signal_emit_valist
1406   (c-name "g_signal_emit_valist")
1407   (return-type "none")
1408   (parameters
1409     '("gpointer" "instance")
1410     '("guint" "signal_id")
1411     '("GQuark" "detail")
1412     '("va_list" "var_args")
1413   )
1414 )
1415
1416 (define-function g_signal_emit
1417   (c-name "g_signal_emit")
1418   (return-type "none")
1419   (parameters
1420     '("gpointer" "instance")
1421     '("guint" "signal_id")
1422     '("GQuark" "detail")
1423   )
1424   (varargs #t)
1425 )
1426
1427 (define-function g_signal_emit_by_name
1428   (c-name "g_signal_emit_by_name")
1429   (return-type "none")
1430   (parameters
1431     '("gpointer" "instance")
1432     '("const-gchar*" "detailed_signal")
1433   )
1434   (varargs #t)
1435 )
1436
1437 (define-function g_signal_lookup
1438   (c-name "g_signal_lookup")
1439   (return-type "guint")
1440   (parameters
1441     '("const-gchar*" "name")
1442     '("GType" "itype")
1443   )
1444 )
1445
1446 (define-function g_signal_name
1447   (c-name "g_signal_name")
1448   (return-type "const-gchar*")
1449   (parameters
1450     '("guint" "signal_id")
1451   )
1452 )
1453
1454 (define-function g_signal_query
1455   (c-name "g_signal_query")
1456   (return-type "none")
1457   (parameters
1458     '("guint" "signal_id")
1459     '("GSignalQuery*" "query")
1460   )
1461 )
1462
1463 (define-function g_signal_list_ids
1464   (c-name "g_signal_list_ids")
1465   (return-type "guint*")
1466   (parameters
1467     '("GType" "itype")
1468     '("guint*" "n_ids")
1469   )
1470 )
1471
1472 (define-function g_signal_parse_name
1473   (c-name "g_signal_parse_name")
1474   (return-type "gboolean")
1475   (parameters
1476     '("const-gchar*" "detailed_signal")
1477     '("GType" "itype")
1478     '("guint*" "signal_id_p")
1479     '("GQuark*" "detail_p")
1480     '("gboolean" "force_detail_quark")
1481   )
1482 )
1483
1484 (define-function g_signal_get_invocation_hint
1485   (c-name "g_signal_get_invocation_hint")
1486   (return-type "GSignalInvocationHint*")
1487   (parameters
1488     '("gpointer" "instance")
1489   )
1490 )
1491
1492 (define-function g_signal_stop_emission
1493   (c-name "g_signal_stop_emission")
1494   (return-type "none")
1495   (parameters
1496     '("gpointer" "instance")
1497     '("guint" "signal_id")
1498     '("GQuark" "detail")
1499   )
1500 )
1501
1502 (define-function g_signal_stop_emission_by_name
1503   (c-name "g_signal_stop_emission_by_name")
1504   (return-type "none")
1505   (parameters
1506     '("gpointer" "instance")
1507     '("const-gchar*" "detailed_signal")
1508   )
1509 )
1510
1511 (define-function g_signal_add_emission_hook
1512   (c-name "g_signal_add_emission_hook")
1513   (return-type "gulong")
1514   (parameters
1515     '("guint" "signal_id")
1516     '("GQuark" "quark")
1517     '("GSignalEmissionHook" "hook_func")
1518     '("gpointer" "hook_data")
1519     '("GDestroyNotify" "data_destroy")
1520   )
1521 )
1522
1523 (define-function g_signal_remove_emission_hook
1524   (c-name "g_signal_remove_emission_hook")
1525   (return-type "none")
1526   (parameters
1527     '("guint" "signal_id")
1528     '("gulong" "hook_id")
1529   )
1530 )
1531
1532 (define-function g_signal_has_handler_pending
1533   (c-name "g_signal_has_handler_pending")
1534   (return-type "gboolean")
1535   (parameters
1536     '("gpointer" "instance")
1537     '("guint" "signal_id")
1538     '("GQuark" "detail")
1539     '("gboolean" "may_be_blocked")
1540   )
1541 )
1542
1543 (define-function g_signal_connect_closure_by_id
1544   (c-name "g_signal_connect_closure_by_id")
1545   (return-type "gulong")
1546   (parameters
1547     '("gpointer" "instance")
1548     '("guint" "signal_id")
1549     '("GQuark" "detail")
1550     '("GClosure*" "closure")
1551     '("gboolean" "after")
1552   )
1553 )
1554
1555 (define-function g_signal_connect_closure
1556   (c-name "g_signal_connect_closure")
1557   (return-type "gulong")
1558   (parameters
1559     '("gpointer" "instance")
1560     '("const-gchar*" "detailed_signal")
1561     '("GClosure*" "closure")
1562     '("gboolean" "after")
1563   )
1564 )
1565
1566 (define-function g_signal_connect_data
1567   (c-name "g_signal_connect_data")
1568   (return-type "gulong")
1569   (parameters
1570     '("gpointer" "instance")
1571     '("const-gchar*" "detailed_signal")
1572     '("GCallback" "c_handler")
1573     '("gpointer" "data")
1574     '("GClosureNotify" "destroy_data")
1575     '("GConnectFlags" "connect_flags")
1576   )
1577 )
1578
1579 (define-function g_signal_handler_block
1580   (c-name "g_signal_handler_block")
1581   (return-type "none")
1582   (parameters
1583     '("gpointer" "instance")
1584     '("gulong" "handler_id")
1585   )
1586 )
1587
1588 (define-function g_signal_handler_unblock
1589   (c-name "g_signal_handler_unblock")
1590   (return-type "none")
1591   (parameters
1592     '("gpointer" "instance")
1593     '("gulong" "handler_id")
1594   )
1595 )
1596
1597 (define-function g_signal_handler_disconnect
1598   (c-name "g_signal_handler_disconnect")
1599   (return-type "none")
1600   (parameters
1601     '("gpointer" "instance")
1602     '("gulong" "handler_id")
1603   )
1604 )
1605
1606 (define-function g_signal_handler_is_connected
1607   (c-name "g_signal_handler_is_connected")
1608   (return-type "gboolean")
1609   (parameters
1610     '("gpointer" "instance")
1611     '("gulong" "handler_id")
1612   )
1613 )
1614
1615 (define-function g_signal_handler_find
1616   (c-name "g_signal_handler_find")
1617   (return-type "gulong")
1618   (parameters
1619     '("gpointer" "instance")
1620     '("GSignalMatchType" "mask")
1621     '("guint" "signal_id")
1622     '("GQuark" "detail")
1623     '("GClosure*" "closure")
1624     '("gpointer" "func")
1625     '("gpointer" "data")
1626   )
1627 )
1628
1629 (define-function g_signal_handlers_block_matched
1630   (c-name "g_signal_handlers_block_matched")
1631   (return-type "guint")
1632   (parameters
1633     '("gpointer" "instance")
1634     '("GSignalMatchType" "mask")
1635     '("guint" "signal_id")
1636     '("GQuark" "detail")
1637     '("GClosure*" "closure")
1638     '("gpointer" "func")
1639     '("gpointer" "data")
1640   )
1641 )
1642
1643 (define-function g_signal_handlers_unblock_matched
1644   (c-name "g_signal_handlers_unblock_matched")
1645   (return-type "guint")
1646   (parameters
1647     '("gpointer" "instance")
1648     '("GSignalMatchType" "mask")
1649     '("guint" "signal_id")
1650     '("GQuark" "detail")
1651     '("GClosure*" "closure")
1652     '("gpointer" "func")
1653     '("gpointer" "data")
1654   )
1655 )
1656
1657 (define-function g_signal_handlers_disconnect_matched
1658   (c-name "g_signal_handlers_disconnect_matched")
1659   (return-type "guint")
1660   (parameters
1661     '("gpointer" "instance")
1662     '("GSignalMatchType" "mask")
1663     '("guint" "signal_id")
1664     '("GQuark" "detail")
1665     '("GClosure*" "closure")
1666     '("gpointer" "func")
1667     '("gpointer" "data")
1668   )
1669 )
1670
1671 (define-function g_signal_override_class_closure
1672   (c-name "g_signal_override_class_closure")
1673   (return-type "none")
1674   (parameters
1675     '("guint" "signal_id")
1676     '("GType" "instance_type")
1677     '("GClosure*" "class_closure")
1678   )
1679 )
1680
1681 (define-function g_signal_chain_from_overridden
1682   (c-name "g_signal_chain_from_overridden")
1683   (return-type "none")
1684   (parameters
1685     '("const-GValue*" "instance_and_params")
1686     '("GValue*" "return_value")
1687   )
1688 )
1689
1690 (define-function _g_signals_destroy
1691   (c-name "_g_signals_destroy")
1692   (return-type "none")
1693   (parameters
1694     '("GType" "itype")
1695   )
1696 )
1697
1698
1699
1700 ;; From gobject/gsourceclosure.h
1701
1702 (define-function g_io_channel_get_type
1703   (c-name "g_io_channel_get_type")
1704   (return-type "GType")
1705 )
1706
1707 (define-function g_io_condition_get_type
1708   (c-name "g_io_condition_get_type")
1709   (return-type "GType")
1710 )
1711
1712
1713
1714 ;; From gobject/gtype.h
1715
1716 (define-function g_type_init
1717   (c-name "g_type_init")
1718   (return-type "none")
1719 )
1720
1721 (define-function g_type_init_with_debug_flags
1722   (c-name "g_type_init_with_debug_flags")
1723   (return-type "none")
1724   (parameters
1725     '("GTypeDebugFlags" "debug_flags")
1726   )
1727 )
1728
1729 (define-method name
1730   (of-object "GType")
1731   (c-name "g_type_name")
1732   (return-type "const-gchar*")
1733 )
1734
1735 (define-method qname
1736   (of-object "GType")
1737   (c-name "g_type_qname")
1738   (return-type "GQuark")
1739 )
1740
1741 (define-function g_type_from_name
1742   (c-name "g_type_from_name")
1743   (return-type "GType")
1744   (parameters
1745     '("const-gchar*" "name")
1746   )
1747 )
1748
1749 (define-method parent
1750   (of-object "GType")
1751   (c-name "g_type_parent")
1752   (return-type "GType")
1753 )
1754
1755 (define-method depth
1756   (of-object "GType")
1757   (c-name "g_type_depth")
1758   (return-type "guint")
1759 )
1760
1761 (define-method next_base
1762   (of-object "GType")
1763   (c-name "g_type_next_base")
1764   (return-type "GType")
1765   (parameters
1766     '("GType" "root_type")
1767   )
1768 )
1769
1770 (define-method is_a
1771   (of-object "GType")
1772   (c-name "g_type_is_a")
1773   (return-type "gboolean")
1774   (parameters
1775     '("GType" "is_a_type")
1776   )
1777 )
1778
1779 (define-method class_ref
1780   (of-object "GType")
1781   (c-name "g_type_class_ref")
1782   (return-type "gpointer")
1783 )
1784
1785 (define-method class_peek
1786   (of-object "GType")
1787   (c-name "g_type_class_peek")
1788   (return-type "gpointer")
1789 )
1790
1791 (define-function g_type_class_unref
1792   (c-name "g_type_class_unref")
1793   (return-type "none")
1794   (parameters
1795     '("gpointer" "g_class")
1796   )
1797 )
1798
1799 (define-function g_type_class_peek_parent
1800   (c-name "g_type_class_peek_parent")
1801   (return-type "gpointer")
1802   (parameters
1803     '("gpointer" "g_class")
1804   )
1805 )
1806
1807 (define-function g_type_interface_peek
1808   (c-name "g_type_interface_peek")
1809   (return-type "gpointer")
1810   (parameters
1811     '("gpointer" "instance_class")
1812     '("GType" "iface_type")
1813   )
1814 )
1815
1816 (define-function g_type_interface_peek_parent
1817   (c-name "g_type_interface_peek_parent")
1818   (return-type "gpointer")
1819   (parameters
1820     '("gpointer" "g_iface")
1821   )
1822 )
1823
1824 (define-method children
1825   (of-object "GType")
1826   (c-name "g_type_children")
1827   (return-type "GType*")
1828   (parameters
1829     '("guint*" "n_children")
1830   )
1831 )
1832
1833 (define-method interfaces
1834   (of-object "GType")
1835   (c-name "g_type_interfaces")
1836   (return-type "GType*")
1837   (parameters
1838     '("guint*" "n_interfaces")
1839   )
1840 )
1841
1842 (define-method set_qdata
1843   (of-object "GType")
1844   (c-name "g_type_set_qdata")
1845   (return-type "none")
1846   (parameters
1847     '("GQuark" "quark")
1848     '("gpointer" "data")
1849   )
1850 )
1851
1852 (define-method get_qdata
1853   (of-object "GType")
1854   (c-name "g_type_get_qdata")
1855   (return-type "gpointer")
1856   (parameters
1857     '("GQuark" "quark")
1858   )
1859 )
1860
1861 (define-method query
1862   (of-object "GType")
1863   (c-name "g_type_query")
1864   (return-type "none")
1865   (parameters
1866     '("GTypeQuery*" "query")
1867   )
1868 )
1869
1870 (define-method register_static
1871   (of-object "GType")
1872   (c-name "g_type_register_static")
1873   (return-type "GType")
1874   (parameters
1875     '("const-gchar*" "type_name")
1876     '("const-GTypeInfo*" "info")
1877     '("GTypeFlags" "flags")
1878   )
1879 )
1880
1881 (define-method register_dynamic
1882   (of-object "GType")
1883   (c-name "g_type_register_dynamic")
1884   (return-type "GType")
1885   (parameters
1886     '("const-gchar*" "type_name")
1887     '("GTypePlugin*" "plugin")
1888     '("GTypeFlags" "flags")
1889   )
1890 )
1891
1892 (define-method register_fundamental
1893   (of-object "GType")
1894   (c-name "g_type_register_fundamental")
1895   (return-type "GType")
1896   (parameters
1897     '("const-gchar*" "type_name")
1898     '("const-GTypeInfo*" "info")
1899     '("const-GTypeFundamentalInfo*" "finfo")
1900     '("GTypeFlags" "flags")
1901   )
1902 )
1903
1904 (define-method add_interface_static
1905   (of-object "GType")
1906   (c-name "g_type_add_interface_static")
1907   (return-type "none")
1908   (parameters
1909     '("GType" "interface_type")
1910     '("const-GInterfaceInfo*" "info")
1911   )
1912 )
1913
1914 (define-method add_interface_dynamic
1915   (of-object "GType")
1916   (c-name "g_type_add_interface_dynamic")
1917   (return-type "none")
1918   (parameters
1919     '("GType" "interface_type")
1920     '("GTypePlugin*" "plugin")
1921   )
1922 )
1923
1924 (define-method interface_add_prerequisite
1925   (of-object "GType")
1926   (c-name "g_type_interface_add_prerequisite")
1927   (return-type "none")
1928   (parameters
1929     '("GType" "prerequisite_type")
1930   )
1931 )
1932
1933 (define-method get_plugin
1934   (of-object "GType")
1935   (c-name "g_type_get_plugin")
1936   (return-type "GTypePlugin*")
1937 )
1938
1939 (define-method interface_get_plugin
1940   (of-object "GType")
1941   (c-name "g_type_interface_get_plugin")
1942   (return-type "GTypePlugin*")
1943   (parameters
1944     '("GType" "implementation_type")
1945   )
1946 )
1947
1948 (define-function g_type_fundamental_next
1949   (c-name "g_type_fundamental_next")
1950   (return-type "GType")
1951 )
1952
1953 (define-method fundamental
1954   (of-object "GType")
1955   (c-name "g_type_fundamental")
1956   (return-type "GType")
1957 )
1958
1959 (define-method create_instance
1960   (of-object "GType")
1961   (c-name "g_type_create_instance")
1962   (return-type "GTypeInstance*")
1963 )
1964
1965 (define-function g_type_free_instance
1966   (c-name "g_type_free_instance")
1967   (return-type "none")
1968   (parameters
1969     '("GTypeInstance*" "instance")
1970   )
1971 )
1972
1973 (define-function g_type_add_class_cache_func
1974   (c-name "g_type_add_class_cache_func")
1975   (return-type "none")
1976   (parameters
1977     '("gpointer" "cache_data")
1978     '("GTypeClassCacheFunc" "cache_func")
1979   )
1980 )
1981
1982 (define-function g_type_remove_class_cache_func
1983   (c-name "g_type_remove_class_cache_func")
1984   (return-type "none")
1985   (parameters
1986     '("gpointer" "cache_data")
1987     '("GTypeClassCacheFunc" "cache_func")
1988   )
1989 )
1990
1991 (define-function g_type_class_unref_uncached
1992   (c-name "g_type_class_unref_uncached")
1993   (return-type "none")
1994   (parameters
1995     '("gpointer" "g_class")
1996   )
1997 )
1998
1999 (define-method value_table_peek
2000   (of-object "GType")
2001   (c-name "g_type_value_table_peek")
2002   (return-type "GTypeValueTable*")
2003 )
2004
2005 (define-function g_type_check_instance
2006   (c-name "g_type_check_instance")
2007   (return-type "gboolean")
2008   (parameters
2009     '("GTypeInstance*" "instance")
2010   )
2011 )
2012
2013 (define-function g_type_check_instance_cast
2014   (c-name "g_type_check_instance_cast")
2015   (return-type "GTypeInstance*")
2016   (parameters
2017     '("GTypeInstance*" "instance")
2018     '("GType" "iface_type")
2019   )
2020 )
2021
2022 (define-function g_type_check_instance_is_a
2023   (c-name "g_type_check_instance_is_a")
2024   (return-type "gboolean")
2025   (parameters
2026     '("GTypeInstance*" "instance")
2027     '("GType" "iface_type")
2028   )
2029 )
2030
2031 (define-function g_type_check_class_cast
2032   (c-name "g_type_check_class_cast")
2033   (return-type "GTypeClass*")
2034   (parameters
2035     '("GTypeClass*" "g_class")
2036     '("GType" "is_a_type")
2037   )
2038 )
2039
2040 (define-function g_type_check_class_is_a
2041   (c-name "g_type_check_class_is_a")
2042   (return-type "gboolean")
2043   (parameters
2044     '("GTypeClass*" "g_class")
2045     '("GType" "is_a_type")
2046   )
2047 )
2048
2049 (define-method check_is_value_type
2050   (of-object "GType")
2051   (c-name "g_type_check_is_value_type")
2052   (return-type "gboolean")
2053 )
2054
2055 (define-function g_type_check_value
2056   (c-name "g_type_check_value")
2057   (return-type "gboolean")
2058   (parameters
2059     '("GValue*" "value")
2060   )
2061 )
2062
2063 (define-function g_type_check_value_holds
2064   (c-name "g_type_check_value_holds")
2065   (return-type "gboolean")
2066   (parameters
2067     '("GValue*" "value")
2068     '("GType" "type")
2069   )
2070 )
2071
2072 (define-method test_flags
2073   (of-object "GType")
2074   (c-name "g_type_test_flags")
2075   (return-type "gboolean")
2076   (parameters
2077     '("guint" "flags")
2078   )
2079 )
2080
2081 (define-function g_type_name_from_instance
2082   (c-name "g_type_name_from_instance")
2083   (return-type "const-gchar*")
2084   (parameters
2085     '("GTypeInstance*" "instance")
2086   )
2087 )
2088
2089 (define-function g_type_name_from_class
2090   (c-name "g_type_name_from_class")
2091   (return-type "const-gchar*")
2092   (parameters
2093     '("GTypeClass*" "g_class")
2094   )
2095 )
2096
2097
2098
2099 ;; From gobject/gtypemodule.h
2100
2101 (define-function g_type_module_get_type
2102   (c-name "g_type_module_get_type")
2103   (return-type "GType")
2104 )
2105
2106 (define-method use
2107   (of-object "GTypeModule")
2108   (c-name "g_type_module_use")
2109   (return-type "gboolean")
2110 )
2111
2112 (define-method unuse
2113   (of-object "GTypeModule")
2114   (c-name "g_type_module_unuse")
2115   (return-type "none")
2116 )
2117
2118 (define-method set_name
2119   (of-object "GTypeModule")
2120   (c-name "g_type_module_set_name")
2121   (return-type "none")
2122   (parameters
2123     '("const-gchar*" "name")
2124   )
2125 )
2126
2127 (define-method register_type
2128   (of-object "GTypeModule")
2129   (c-name "g_type_module_register_type")
2130   (return-type "GType")
2131   (parameters
2132     '("GType" "parent_type")
2133     '("const-gchar*" "type_name")
2134     '("const-GTypeInfo*" "type_info")
2135     '("GTypeFlags" "flags")
2136   )
2137 )
2138
2139 (define-method add_interface
2140   (of-object "GTypeModule")
2141   (c-name "g_type_module_add_interface")
2142   (return-type "none")
2143   (parameters
2144     '("GType" "instance_type")
2145     '("GType" "interface_type")
2146     '("const-GInterfaceInfo*" "interface_info")
2147   )
2148 )
2149
2150
2151
2152 ;; From gobject/gtypeplugin.h
2153
2154 (define-function g_type_plugin_get_type
2155   (c-name "g_type_plugin_get_type")
2156   (return-type "GType")
2157 )
2158
2159 (define-method use
2160   (of-object "GTypePlugin")
2161   (c-name "g_type_plugin_use")
2162   (return-type "none")
2163 )
2164
2165 (define-method unuse
2166   (of-object "GTypePlugin")
2167   (c-name "g_type_plugin_unuse")
2168   (return-type "none")
2169 )
2170
2171 (define-method complete_type_info
2172   (of-object "GTypePlugin")
2173   (c-name "g_type_plugin_complete_type_info")
2174   (return-type "none")
2175   (parameters
2176     '("GType" "g_type")
2177     '("GTypeInfo*" "info")
2178     '("GTypeValueTable*" "value_table")
2179   )
2180 )
2181
2182 (define-method complete_interface_info
2183   (of-object "GTypePlugin")
2184   (c-name "g_type_plugin_complete_interface_info")
2185   (return-type "none")
2186   (parameters
2187     '("GType" "interface_type")
2188     '("GType" "instance_type")
2189     '("GInterfaceInfo*" "info")
2190   )
2191 )
2192
2193
2194
2195 ;; From gobject/gvaluearray.h
2196
2197 (define-method get_nth
2198   (of-object "GValueArray")
2199   (c-name "g_value_array_get_nth")
2200   (return-type "GValue*")
2201   (parameters
2202     '("guint" "index")
2203   )
2204 )
2205
2206 (define-function g_value_array_new
2207   (c-name "g_value_array_new")
2208   (return-type "GValueArray*")
2209   (parameters
2210     '("guint" "n_prealloced")
2211   )
2212 )
2213
2214 (define-method free
2215   (of-object "GValueArray")
2216   (c-name "g_value_array_free")
2217   (return-type "none")
2218 )
2219
2220 (define-method copy
2221   (of-object "GValueArray")
2222   (c-name "g_value_array_copy")
2223   (return-type "GValueArray*")
2224 )
2225
2226 (define-method prepend
2227   (of-object "GValueArray")
2228   (c-name "g_value_array_prepend")
2229   (return-type "GValueArray*")
2230   (parameters
2231     '("const-GValue*" "value")
2232   )
2233 )
2234
2235 (define-method append
2236   (of-object "GValueArray")
2237   (c-name "g_value_array_append")
2238   (return-type "GValueArray*")
2239   (parameters
2240     '("const-GValue*" "value")
2241   )
2242 )
2243
2244 (define-method insert
2245   (of-object "GValueArray")
2246   (c-name "g_value_array_insert")
2247   (return-type "GValueArray*")
2248   (parameters
2249     '("guint" "index")
2250     '("const-GValue*" "value")
2251   )
2252 )
2253
2254 (define-method remove
2255   (of-object "GValueArray")
2256   (c-name "g_value_array_remove")
2257   (return-type "GValueArray*")
2258   (parameters
2259     '("guint" "index")
2260   )
2261 )
2262
2263 (define-method sort
2264   (of-object "GValueArray")
2265   (c-name "g_value_array_sort")
2266   (return-type "GValueArray*")
2267   (parameters
2268     '("GCompareFunc" "compare_func")
2269   )
2270 )
2271
2272 (define-method sort_with_data
2273   (of-object "GValueArray")
2274   (c-name "g_value_array_sort_with_data")
2275   (return-type "GValueArray*")
2276   (parameters
2277     '("GCompareDataFunc" "compare_func")
2278     '("gpointer" "user_data")
2279   )
2280 )
2281
2282
2283
2284 ;; From gobject/gvaluecollector.h
2285
2286
2287
2288 ;; From gobject/gvalue.h
2289
2290 (define-method init
2291   (of-object "GValue")
2292   (c-name "g_value_init")
2293   (return-type "GValue*")
2294   (parameters
2295     '("GType" "g_type")
2296   )
2297 )
2298
2299 (define-method copy
2300   (of-object "GValue")
2301   (c-name "g_value_copy")
2302   (return-type "none")
2303   (parameters
2304     '("GValue*" "dest_value")
2305   )
2306 )
2307
2308 (define-method reset
2309   (of-object "GValue")
2310   (c-name "g_value_reset")
2311   (return-type "GValue*")
2312 )
2313
2314 (define-method unset
2315   (of-object "GValue")
2316   (c-name "g_value_unset")
2317   (return-type "none")
2318 )
2319
2320 (define-method set_instance
2321   (of-object "GValue")
2322   (c-name "g_value_set_instance")
2323   (return-type "none")
2324   (parameters
2325     '("gpointer" "instance")
2326   )
2327 )
2328
2329 (define-method fits_pointer
2330   (of-object "GValue")
2331   (c-name "g_value_fits_pointer")
2332   (return-type "gboolean")
2333 )
2334
2335 (define-method peek_pointer
2336   (of-object "GValue")
2337   (c-name "g_value_peek_pointer")
2338   (return-type "gpointer")
2339 )
2340
2341 (define-function g_value_type_compatible
2342   (c-name "g_value_type_compatible")
2343   (return-type "gboolean")
2344   (parameters
2345     '("GType" "src_type")
2346     '("GType" "dest_type")
2347   )
2348 )
2349
2350 (define-function g_value_type_transformable
2351   (c-name "g_value_type_transformable")
2352   (return-type "gboolean")
2353   (parameters
2354     '("GType" "src_type")
2355     '("GType" "dest_type")
2356   )
2357 )
2358
2359 (define-method transform
2360   (of-object "GValue")
2361   (c-name "g_value_transform")
2362   (return-type "gboolean")
2363   (parameters
2364     '("GValue*" "dest_value")
2365   )
2366 )
2367
2368 (define-function g_value_register_transform_func
2369   (c-name "g_value_register_transform_func")
2370   (return-type "none")
2371   (parameters
2372     '("GType" "src_type")
2373     '("GType" "dest_type")
2374     '("GValueTransform" "transform_func")
2375   )
2376 )
2377
2378
2379
2380 ;; From gobject/gvaluetypes.h
2381
2382 (define-method get_char
2383   (of-object "GValue")
2384   (c-name "g_value_get_char")
2385   (return-type "gchar")
2386 )
2387
2388 (define-method set_uchar
2389   (of-object "GValue")
2390   (c-name "g_value_set_uchar")
2391   (return-type "none")
2392   (parameters
2393     '("guchar" "v_uchar")
2394   )
2395 )
2396
2397 (define-method get_uchar
2398   (of-object "GValue")
2399   (c-name "g_value_get_uchar")
2400   (return-type "guchar")
2401 )
2402
2403 (define-method set_boolean
2404   (of-object "GValue")
2405   (c-name "g_value_set_boolean")
2406   (return-type "none")
2407   (parameters
2408     '("gboolean" "v_boolean")
2409   )
2410 )
2411
2412 (define-method get_boolean
2413   (of-object "GValue")
2414   (c-name "g_value_get_boolean")
2415   (return-type "gboolean")
2416 )
2417
2418 (define-method set_int
2419   (of-object "GValue")
2420   (c-name "g_value_set_int")
2421   (return-type "none")
2422   (parameters
2423     '("gint" "v_int")
2424   )
2425 )
2426
2427 (define-method get_int
2428   (of-object "GValue")
2429   (c-name "g_value_get_int")
2430   (return-type "gint")
2431 )
2432
2433 (define-method set_uint
2434   (of-object "GValue")
2435   (c-name "g_value_set_uint")
2436   (return-type "none")
2437   (parameters
2438     '("guint" "v_uint")
2439   )
2440 )
2441
2442 (define-method get_uint
2443   (of-object "GValue")
2444   (c-name "g_value_get_uint")
2445   (return-type "guint")
2446 )
2447
2448 (define-method set_long
2449   (of-object "GValue")
2450   (c-name "g_value_set_long")
2451   (return-type "none")
2452   (parameters
2453     '("glong" "v_long")
2454   )
2455 )
2456
2457 (define-method get_long
2458   (of-object "GValue")
2459   (c-name "g_value_get_long")
2460   (return-type "glong")
2461 )
2462
2463 (define-method set_ulong
2464   (of-object "GValue")
2465   (c-name "g_value_set_ulong")
2466   (return-type "none")
2467   (parameters
2468     '("gulong" "v_ulong")
2469   )
2470 )
2471
2472 (define-method get_ulong
2473   (of-object "GValue")
2474   (c-name "g_value_get_ulong")
2475   (return-type "gulong")
2476 )
2477
2478 (define-method set_int64
2479   (of-object "GValue")
2480   (c-name "g_value_set_int64")
2481   (return-type "none")
2482   (parameters
2483     '("gint64" "v_int64")
2484   )
2485 )
2486
2487 (define-method get_int64
2488   (of-object "GValue")
2489   (c-name "g_value_get_int64")
2490   (return-type "gint64")
2491 )
2492
2493 (define-method set_uint64
2494   (of-object "GValue")
2495   (c-name "g_value_set_uint64")
2496   (return-type "none")
2497   (parameters
2498     '("guint64" "v_uint64")
2499   )
2500 )
2501
2502 (define-method get_uint64
2503   (of-object "GValue")
2504   (c-name "g_value_get_uint64")
2505   (return-type "guint64")
2506 )
2507
2508 (define-method set_float
2509   (of-object "GValue")
2510   (c-name "g_value_set_float")
2511   (return-type "none")
2512   (parameters
2513     '("gfloat" "v_float")
2514   )
2515 )
2516
2517 (define-method get_float
2518   (of-object "GValue")
2519   (c-name "g_value_get_float")
2520   (return-type "gfloat")
2521 )
2522
2523 (define-method set_double
2524   (of-object "GValue")
2525   (c-name "g_value_set_double")
2526   (return-type "none")
2527   (parameters
2528     '("gdouble" "v_double")
2529   )
2530 )
2531
2532 (define-method get_double
2533   (of-object "GValue")
2534   (c-name "g_value_get_double")
2535   (return-type "gdouble")
2536 )
2537
2538 (define-method set_string
2539   (of-object "GValue")
2540   (c-name "g_value_set_string")
2541   (return-type "none")
2542   (parameters
2543     '("const-gchar*" "v_string")
2544   )
2545 )
2546
2547 (define-method set_static_string
2548   (of-object "GValue")
2549   (c-name "g_value_set_static_string")
2550   (return-type "none")
2551   (parameters
2552     '("const-gchar*" "v_string")
2553   )
2554 )
2555
2556 (define-method get_string
2557   (of-object "GValue")
2558   (c-name "g_value_get_string")
2559   (return-type "const-gchar*")
2560 )
2561
2562 (define-method dup_string
2563   (of-object "GValue")
2564   (c-name "g_value_dup_string")
2565   (return-type "gchar*")
2566 )
2567
2568 (define-method set_pointer
2569   (of-object "GValue")
2570   (c-name "g_value_set_pointer")
2571   (return-type "none")
2572   (parameters
2573     '("gpointer" "v_pointer")
2574   )
2575 )
2576
2577 (define-method get_pointer
2578   (of-object "GValue")
2579   (c-name "g_value_get_pointer")
2580   (return-type "gpointer")
2581 )
2582
2583 (define-function g_pointer_type_register_static
2584   (c-name "g_pointer_type_register_static")
2585   (return-type "GType")
2586   (parameters
2587     '("const-gchar*" "name")
2588   )
2589 )
2590
2591 (define-function g_strdup_value_contents
2592   (c-name "g_strdup_value_contents")
2593   (return-type "gchar*")
2594   (parameters
2595     '("const-GValue*" "value")
2596   )
2597 )
2598
2599 (define-method set_string_take_ownership
2600   (of-object "GValue")
2601   (c-name "g_value_set_string_take_ownership")
2602   (return-type "none")
2603   (parameters
2604     '("gchar*" "v_string")
2605   )
2606 )
2607
2608