new files from sakari, missed last time
[ardour.git] / libs / glibmm2 / glib / src / glib_functions.defs
1 ;; -*- scheme -*-
2 ; object definitions ...
3 ;; Enumerations and flags ...
4
5 (define-enum FileError
6   (in-module "GBookmark")
7   (c-name "GBookmarkFileError")
8   (gtype-id "G_TYPE_BOOKMARK_FILE_ERROR")
9   (values
10     '("invalid-uri" "G_BOOKMARK_FILE_ERROR_INVALID_URI")
11     '("invalid-value" "G_BOOKMARK_FILE_ERROR_INVALID_VALUE")
12     '("app-not-registered" "G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED")
13     '("uri-not-found" "G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND")
14     '("read" "G_BOOKMARK_FILE_ERROR_READ")
15     '("unknown-encoding" "G_BOOKMARK_FILE_ERROR_UNKNOWN_ENCODING")
16     '("write" "G_BOOKMARK_FILE_ERROR_WRITE")
17     '("file-not-found" "G_BOOKMARK_FILE_ERROR_FILE_NOT_FOUND")
18   )
19 )
20
21 (define-flags ArrayFlags
22   (in-module "GBSearch")
23   (c-name "GBSearchArrayFlags")
24   (gtype-id "G_TYPE_B_SEARCH_ARRAY_FLAGS")
25   (values
26     '("lign-power2" "G_BSEARCH_ARRAY_ALIGN_POWER2")
27     '("uto-shrink" "G_BSEARCH_ARRAY_AUTO_SHRINK")
28   )
29 )
30
31 (define-enum Error
32   (in-module "GConvert")
33   (c-name "GConvertError")
34   (gtype-id "G_TYPE_CONVERT_ERROR")
35   (values
36     '("no-conversion" "G_CONVERT_ERROR_NO_CONVERSION")
37     '("illegal-sequence" "G_CONVERT_ERROR_ILLEGAL_SEQUENCE")
38     '("failed" "G_CONVERT_ERROR_FAILED")
39     '("partial-input" "G_CONVERT_ERROR_PARTIAL_INPUT")
40     '("bad-uri" "G_CONVERT_ERROR_BAD_URI")
41     '("not-absolute-path" "G_CONVERT_ERROR_NOT_ABSOLUTE_PATH")
42   )
43 )
44
45 (define-enum DMY
46   (in-module "GDate")
47   (c-name "GDateDMY")
48   (gtype-id "G_TYPE_DATE_DMY")
49   (values
50     '("day" "G_DATE_DAY")
51     '("month" "G_DATE_MONTH")
52     '("year" "G_DATE_YEAR")
53   )
54 )
55
56 (define-enum Weekday
57   (in-module "GDate")
58   (c-name "GDateWeekday")
59   (gtype-id "G_TYPE_DATE_WEEKDAY")
60   (values
61     '("bad-weekday" "G_DATE_BAD_WEEKDAY")
62     '("monday" "G_DATE_MONDAY")
63     '("tuesday" "G_DATE_TUESDAY")
64     '("wednesday" "G_DATE_WEDNESDAY")
65     '("thursday" "G_DATE_THURSDAY")
66     '("friday" "G_DATE_FRIDAY")
67     '("saturday" "G_DATE_SATURDAY")
68     '("sunday" "G_DATE_SUNDAY")
69   )
70 )
71
72 (define-enum Month
73   (in-module "GDate")
74   (c-name "GDateMonth")
75   (gtype-id "G_TYPE_DATE_MONTH")
76   (values
77     '("bad-month" "G_DATE_BAD_MONTH")
78     '("january" "G_DATE_JANUARY")
79     '("february" "G_DATE_FEBRUARY")
80     '("march" "G_DATE_MARCH")
81     '("april" "G_DATE_APRIL")
82     '("may" "G_DATE_MAY")
83     '("june" "G_DATE_JUNE")
84     '("july" "G_DATE_JULY")
85     '("august" "G_DATE_AUGUST")
86     '("september" "G_DATE_SEPTEMBER")
87     '("october" "G_DATE_OCTOBER")
88     '("november" "G_DATE_NOVEMBER")
89     '("december" "G_DATE_DECEMBER")
90   )
91 )
92
93 (define-flags Flag
94   (in-module "GDebug")
95   (c-name "GDebugFlag")
96   (gtype-id "G_TYPE_DEBUG_FLAG")
97   (values
98     '("warnings" "G_DEBUG_FATAL_WARNINGS")
99     '("criticals" "G_DEBUG_FATAL_CRITICALS")
100   )
101 )
102
103 (define-enum Error
104   (in-module "GFile")
105   (c-name "GFileError")
106   (gtype-id "G_TYPE_FILE_ERROR")
107   (values
108     '("exist" "G_FILE_ERROR_EXIST")
109     '("isdir" "G_FILE_ERROR_ISDIR")
110     '("acces" "G_FILE_ERROR_ACCES")
111     '("nametoolong" "G_FILE_ERROR_NAMETOOLONG")
112     '("noent" "G_FILE_ERROR_NOENT")
113     '("notdir" "G_FILE_ERROR_NOTDIR")
114     '("nxio" "G_FILE_ERROR_NXIO")
115     '("nodev" "G_FILE_ERROR_NODEV")
116     '("rofs" "G_FILE_ERROR_ROFS")
117     '("txtbsy" "G_FILE_ERROR_TXTBSY")
118     '("fault" "G_FILE_ERROR_FAULT")
119     '("loop" "G_FILE_ERROR_LOOP")
120     '("nospc" "G_FILE_ERROR_NOSPC")
121     '("nomem" "G_FILE_ERROR_NOMEM")
122     '("mfile" "G_FILE_ERROR_MFILE")
123     '("nfile" "G_FILE_ERROR_NFILE")
124     '("badf" "G_FILE_ERROR_BADF")
125     '("inval" "G_FILE_ERROR_INVAL")
126     '("pipe" "G_FILE_ERROR_PIPE")
127     '("again" "G_FILE_ERROR_AGAIN")
128     '("intr" "G_FILE_ERROR_INTR")
129     '("io" "G_FILE_ERROR_IO")
130     '("perm" "G_FILE_ERROR_PERM")
131     '("nosys" "G_FILE_ERROR_NOSYS")
132     '("failed" "G_FILE_ERROR_FAILED")
133   )
134 )
135
136 (define-flags Test
137   (in-module "GFile")
138   (c-name "GFileTest")
139   (gtype-id "G_TYPE_FILE_TEST")
140   (values
141     '("is-regular" "G_FILE_TEST_IS_REGULAR")
142     '("is-symlink" "G_FILE_TEST_IS_SYMLINK")
143     '("is-dir" "G_FILE_TEST_IS_DIR")
144     '("is-executable" "G_FILE_TEST_IS_EXECUTABLE")
145     '("exists" "G_FILE_TEST_EXISTS")
146   )
147 )
148
149 (define-flags FlagMask
150   (in-module "GHook")
151   (c-name "GHookFlagMask")
152   (gtype-id "G_TYPE_HOOK_FLAG_MASK")
153   (values
154     '("active" "G_HOOK_FLAG_ACTIVE")
155     '("in-call" "G_HOOK_FLAG_IN_CALL")
156     '("mask" "G_HOOK_FLAG_MASK")
157   )
158 )
159
160 (define-enum r
161   (in-module "GIOErro")
162   (c-name "GIOError")
163   (gtype-id "G_TYPE_IO_ERROR")
164   (values
165     '("none" "G_IO_ERROR_NONE")
166     '("again" "G_IO_ERROR_AGAIN")
167     '("inval" "G_IO_ERROR_INVAL")
168     '("unknown" "G_IO_ERROR_UNKNOWN")
169   )
170 )
171
172 (define-enum Error
173   (in-module "GIOChannel")
174   (c-name "GIOChannelError")
175   (gtype-id "G_TYPE_IO_CHANNEL_ERROR")
176   (values
177     '("fbig" "G_IO_CHANNEL_ERROR_FBIG")
178     '("inval" "G_IO_CHANNEL_ERROR_INVAL")
179     '("io" "G_IO_CHANNEL_ERROR_IO")
180     '("isdir" "G_IO_CHANNEL_ERROR_ISDIR")
181     '("nospc" "G_IO_CHANNEL_ERROR_NOSPC")
182     '("nxio" "G_IO_CHANNEL_ERROR_NXIO")
183     '("overflow" "G_IO_CHANNEL_ERROR_OVERFLOW")
184     '("pipe" "G_IO_CHANNEL_ERROR_PIPE")
185     '("failed" "G_IO_CHANNEL_ERROR_FAILED")
186   )
187 )
188
189 (define-enum s
190   (in-module "GIOStatu")
191   (c-name "GIOStatus")
192   (gtype-id "G_TYPE_IO_STATUS")
193   (values
194     '("error" "G_IO_STATUS_ERROR")
195     '("normal" "G_IO_STATUS_NORMAL")
196     '("eof" "G_IO_STATUS_EOF")
197     '("again" "G_IO_STATUS_AGAIN")
198   )
199 )
200
201 (define-enum Type
202   (in-module "GSeek")
203   (c-name "GSeekType")
204   (gtype-id "G_TYPE_SEEK_TYPE")
205   (values
206     '("cur" "G_SEEK_CUR")
207     '("set" "G_SEEK_SET")
208     '("end" "G_SEEK_END")
209   )
210 )
211
212 (define-enum n
213   (in-module "GIOConditio")
214   (c-name "GIOCondition")
215   (gtype-id "G_TYPE_IO_CONDITION")
216   (values
217     '("in" "G_IO_IN")
218     '("out" "G_IO_OUT")
219     '("pri" "G_IO_PRI")
220     '("err" "G_IO_ERR")
221     '("hup" "G_IO_HUP")
222     '("nval" "G_IO_NVAL")
223   )
224 )
225
226 (define-flags s
227   (in-module "GIOFlag")
228   (c-name "GIOFlags")
229   (gtype-id "G_TYPE_IO_FLAGS")
230   (values
231     '("append" "G_IO_FLAG_APPEND")
232     '("nonblock" "G_IO_FLAG_NONBLOCK")
233     '("is-readable" "G_IO_FLAG_IS_READABLE")
234     '("is-writeable" "G_IO_FLAG_IS_WRITEABLE")
235     '("is-seekable" "G_IO_FLAG_IS_SEEKABLE")
236     '("mask" "G_IO_FLAG_MASK")
237     '("get-mask" "G_IO_FLAG_GET_MASK")
238     '("set-mask" "G_IO_FLAG_SET_MASK")
239   )
240 )
241
242 (define-enum FileError
243   (in-module "GKey")
244   (c-name "GKeyFileError")
245   (gtype-id "G_TYPE_KEY_FILE_ERROR")
246   (values
247     '("unknown-encoding" "G_KEY_FILE_ERROR_UNKNOWN_ENCODING")
248     '("parse" "G_KEY_FILE_ERROR_PARSE")
249     '("not-found" "G_KEY_FILE_ERROR_NOT_FOUND")
250     '("key-not-found" "G_KEY_FILE_ERROR_KEY_NOT_FOUND")
251     '("group-not-found" "G_KEY_FILE_ERROR_GROUP_NOT_FOUND")
252     '("invalid-value" "G_KEY_FILE_ERROR_INVALID_VALUE")
253   )
254 )
255
256 (define-flags FileFlags
257   (in-module "GKey")
258   (c-name "GKeyFileFlags")
259   (gtype-id "G_TYPE_KEY_FILE_FLAGS")
260   (values
261     '("none" "G_KEY_FILE_NONE")
262     '("keep-comments" "G_KEY_FILE_KEEP_COMMENTS")
263     '("keep-translations" "G_KEY_FILE_KEEP_TRANSLATIONS")
264   )
265 )
266
267 (define-enum Error
268   (in-module "GMarkup")
269   (c-name "GMarkupError")
270   (gtype-id "G_TYPE_MARKUP_ERROR")
271   (values
272     '("bad-utf8" "G_MARKUP_ERROR_BAD_UTF8")
273     '("empty" "G_MARKUP_ERROR_EMPTY")
274     '("parse" "G_MARKUP_ERROR_PARSE")
275     '("unknown-element" "G_MARKUP_ERROR_UNKNOWN_ELEMENT")
276     '("unknown-attribute" "G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE")
277     '("invalid-content" "G_MARKUP_ERROR_INVALID_CONTENT")
278   )
279 )
280
281 (define-flags ParseFlags
282   (in-module "GMarkup")
283   (c-name "GMarkupParseFlags")
284   (gtype-id "G_TYPE_MARKUP_PARSE_FLAGS")
285   (values
286     '("do-not-use-this-unsupported-flag" "G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG")
287     '("treat-cdata-as-text" "G_MARKUP_TREAT_CDATA_AS_TEXT")
288   )
289 )
290
291 (define-flags LevelFlags
292   (in-module "GLog")
293   (c-name "GLogLevelFlags")
294   (gtype-id "G_TYPE_LOG_LEVEL_FLAGS")
295   (values
296     '("flag-recursion" "G_LOG_FLAG_RECURSION")
297     '("flag-fatal" "G_LOG_FLAG_FATAL")
298     '("level-error" "G_LOG_LEVEL_ERROR")
299     '("level-critical" "G_LOG_LEVEL_CRITICAL")
300     '("level-warning" "G_LOG_LEVEL_WARNING")
301     '("level-message" "G_LOG_LEVEL_MESSAGE")
302     '("level-info" "G_LOG_LEVEL_INFO")
303     '("level-debug" "G_LOG_LEVEL_DEBUG")
304     '("level-mask" "G_LOG_LEVEL_MASK")
305   )
306 )
307
308 (define-flags Flags
309   (in-module "GTraverse")
310   (c-name "GTraverseFlags")
311   (gtype-id "G_TYPE_TRAVERSE_FLAGS")
312   (values
313     '("leaves" "G_TRAVERSE_LEAVES")
314     '("non-leaves" "G_TRAVERSE_NON_LEAVES")
315     '("all" "G_TRAVERSE_ALL")
316     '("mask" "G_TRAVERSE_MASK")
317     '("leafs" "G_TRAVERSE_LEAFS")
318     '("non-leafs" "G_TRAVERSE_NON_LEAFS")
319   )
320 )
321
322 (define-enum Type
323   (in-module "GTraverse")
324   (c-name "GTraverseType")
325   (gtype-id "G_TYPE_TRAVERSE_TYPE")
326   (values
327     '("in-order" "G_IN_ORDER")
328     '("pre-order" "G_PRE_ORDER")
329     '("post-order" "G_POST_ORDER")
330     '("level-order" "G_LEVEL_ORDER")
331   )
332 )
333
334 (define-flags Flags
335   (in-module "GOption")
336   (c-name "GOptionFlags")
337   (gtype-id "G_TYPE_OPTION_FLAGS")
338   (values
339     '("hidden" "G_OPTION_FLAG_HIDDEN")
340     '("in-main" "G_OPTION_FLAG_IN_MAIN")
341     '("reverse" "G_OPTION_FLAG_REVERSE")
342     '("no-arg" "G_OPTION_FLAG_NO_ARG")
343     '("filename" "G_OPTION_FLAG_FILENAME")
344     '("optional-arg" "G_OPTION_FLAG_OPTIONAL_ARG")
345     '("noalias" "G_OPTION_FLAG_NOALIAS")
346   )
347 )
348
349 (define-enum Arg
350   (in-module "GOption")
351   (c-name "GOptionArg")
352   (gtype-id "G_TYPE_OPTION_ARG")
353   (values
354     '("none" "G_OPTION_ARG_NONE")
355     '("string" "G_OPTION_ARG_STRING")
356     '("int" "G_OPTION_ARG_INT")
357     '("callback" "G_OPTION_ARG_CALLBACK")
358     '("filename" "G_OPTION_ARG_FILENAME")
359     '("string-array" "G_OPTION_ARG_STRING_ARRAY")
360     '("filename-array" "G_OPTION_ARG_FILENAME_ARRAY")
361     '("double" "G_OPTION_ARG_DOUBLE")
362     '("int64" "G_OPTION_ARG_INT64")
363   )
364 )
365
366 (define-enum Error
367   (in-module "GOption")
368   (c-name "GOptionError")
369   (gtype-id "G_TYPE_OPTION_ERROR")
370   (values
371     '("unknown-option" "G_OPTION_ERROR_UNKNOWN_OPTION")
372     '("bad-value" "G_OPTION_ERROR_BAD_VALUE")
373     '("failed" "G_OPTION_ERROR_FAILED")
374   )
375 )
376
377 (define-enum Error
378   (in-module "GRegex")
379   (c-name "GRegexError")
380   (gtype-id "G_TYPE_REGEX_ERROR")
381   (values
382     '("compile" "G_REGEX_ERROR_COMPILE")
383     '("optimize" "G_REGEX_ERROR_OPTIMIZE")
384     '("replace" "G_REGEX_ERROR_REPLACE")
385     '("match" "G_REGEX_ERROR_MATCH")
386   )
387 )
388
389 (define-flags CompileFlags
390   (in-module "GRegex")
391   (c-name "GRegexCompileFlags")
392   (gtype-id "G_TYPE_REGEX_COMPILE_FLAGS")
393   (values
394     '("caseless" "G_REGEX_CASELESS")
395     '("multiline" "G_REGEX_MULTILINE")
396     '("dotall" "G_REGEX_DOTALL")
397     '("extended" "G_REGEX_EXTENDED")
398     '("anchored" "G_REGEX_ANCHORED")
399     '("dollar-endonly" "G_REGEX_DOLLAR_ENDONLY")
400     '("ungreedy" "G_REGEX_UNGREEDY")
401     '("raw" "G_REGEX_RAW")
402     '("no-auto-capture" "G_REGEX_NO_AUTO_CAPTURE")
403     '("optimize" "G_REGEX_OPTIMIZE")
404     '("dupnames" "G_REGEX_DUPNAMES")
405     '("newline-cr" "G_REGEX_NEWLINE_CR")
406     '("newline-lf" "G_REGEX_NEWLINE_LF")
407     '("newline-crlf" "G_REGEX_NEWLINE_CRLF")
408   )
409 )
410
411 (define-flags MatchFlags
412   (in-module "GRegex")
413   (c-name "GRegexMatchFlags")
414   (gtype-id "G_TYPE_REGEX_MATCH_FLAGS")
415   (values
416     '("anchored" "G_REGEX_MATCH_ANCHORED")
417     '("notbol" "G_REGEX_MATCH_NOTBOL")
418     '("noteol" "G_REGEX_MATCH_NOTEOL")
419     '("notempty" "G_REGEX_MATCH_NOTEMPTY")
420     '("partial" "G_REGEX_MATCH_PARTIAL")
421     '("newline-cr" "G_REGEX_MATCH_NEWLINE_CR")
422     '("newline-lf" "G_REGEX_MATCH_NEWLINE_LF")
423     '("newline-crlf" "G_REGEX_MATCH_NEWLINE_CRLF")
424     '("newline-any" "G_REGEX_MATCH_NEWLINE_ANY")
425   )
426 )
427
428 (define-enum Type
429   (in-module "GError")
430   (c-name "GErrorType")
431   (gtype-id "G_TYPE_ERROR_TYPE")
432   (values
433     '("unknown" "G_ERR_UNKNOWN")
434     '("unexp-eof" "G_ERR_UNEXP_EOF")
435     '("unexp-eof-in-string" "G_ERR_UNEXP_EOF_IN_STRING")
436     '("unexp-eof-in-comment" "G_ERR_UNEXP_EOF_IN_COMMENT")
437     '("non-digit-in-const" "G_ERR_NON_DIGIT_IN_CONST")
438     '("digit-radix" "G_ERR_DIGIT_RADIX")
439     '("float-radix" "G_ERR_FLOAT_RADIX")
440     '("float-malformed" "G_ERR_FLOAT_MALFORMED")
441   )
442 )
443
444 (define-enum Error
445   (in-module "GShell")
446   (c-name "GShellError")
447   (gtype-id "G_TYPE_SHELL_ERROR")
448   (values
449     '("bad-quoting" "G_SHELL_ERROR_BAD_QUOTING")
450     '("empty-string" "G_SHELL_ERROR_EMPTY_STRING")
451     '("failed" "G_SHELL_ERROR_FAILED")
452   )
453 )
454
455 (define-enum Config
456   (in-module "GSlice")
457   (c-name "GSliceConfig")
458   (gtype-id "G_TYPE_SLICE_CONFIG")
459   (values
460     '("always-malloc" "G_SLICE_CONFIG_ALWAYS_MALLOC")
461     '("bypass-magazines" "G_SLICE_CONFIG_BYPASS_MAGAZINES")
462     '("working-set-msecs" "G_SLICE_CONFIG_WORKING_SET_MSECS")
463     '("color-increment" "G_SLICE_CONFIG_COLOR_INCREMENT")
464     '("chunk-sizes" "G_SLICE_CONFIG_CHUNK_SIZES")
465     '("contention-counter" "G_SLICE_CONFIG_CONTENTION_COUNTER")
466   )
467 )
468
469 (define-enum Error
470   (in-module "GSpawn")
471   (c-name "GSpawnError")
472   (gtype-id "G_TYPE_SPAWN_ERROR")
473   (values
474     '("fork" "G_SPAWN_ERROR_FORK")
475     '("read" "G_SPAWN_ERROR_READ")
476     '("chdir" "G_SPAWN_ERROR_CHDIR")
477     '("acces" "G_SPAWN_ERROR_ACCES")
478     '("perm" "G_SPAWN_ERROR_PERM")
479     '("2big" "G_SPAWN_ERROR_2BIG")
480     '("noexec" "G_SPAWN_ERROR_NOEXEC")
481     '("nametoolong" "G_SPAWN_ERROR_NAMETOOLONG")
482     '("noent" "G_SPAWN_ERROR_NOENT")
483     '("nomem" "G_SPAWN_ERROR_NOMEM")
484     '("notdir" "G_SPAWN_ERROR_NOTDIR")
485     '("loop" "G_SPAWN_ERROR_LOOP")
486     '("txtbusy" "G_SPAWN_ERROR_TXTBUSY")
487     '("io" "G_SPAWN_ERROR_IO")
488     '("nfile" "G_SPAWN_ERROR_NFILE")
489     '("mfile" "G_SPAWN_ERROR_MFILE")
490     '("inval" "G_SPAWN_ERROR_INVAL")
491     '("isdir" "G_SPAWN_ERROR_ISDIR")
492     '("libbad" "G_SPAWN_ERROR_LIBBAD")
493     '("failed" "G_SPAWN_ERROR_FAILED")
494   )
495 )
496
497 (define-flags Flags
498   (in-module "GSpawn")
499   (c-name "GSpawnFlags")
500   (gtype-id "G_TYPE_SPAWN_FLAGS")
501   (values
502     '("leave-descriptors-open" "G_SPAWN_LEAVE_DESCRIPTORS_OPEN")
503     '("do-not-reap-child" "G_SPAWN_DO_NOT_REAP_CHILD")
504     '("search-path" "G_SPAWN_SEARCH_PATH")
505     '("stdout-to-dev-null" "G_SPAWN_STDOUT_TO_DEV_NULL")
506     '("stderr-to-dev-null" "G_SPAWN_STDERR_TO_DEV_NULL")
507     '("child-inherits-stdin" "G_SPAWN_CHILD_INHERITS_STDIN")
508     '("file-and-argv-zero" "G_SPAWN_FILE_AND_ARGV_ZERO")
509   )
510 )
511
512 (define-flags Type
513   (in-module "GAscii")
514   (c-name "GAsciiType")
515   (gtype-id "G_TYPE_ASCII_TYPE")
516   (values
517     '("alnum" "G_ASCII_ALNUM")
518     '("alpha" "G_ASCII_ALPHA")
519     '("cntrl" "G_ASCII_CNTRL")
520     '("digit" "G_ASCII_DIGIT")
521     '("graph" "G_ASCII_GRAPH")
522     '("lower" "G_ASCII_LOWER")
523     '("print" "G_ASCII_PRINT")
524     '("punct" "G_ASCII_PUNCT")
525     '("space" "G_ASCII_SPACE")
526     '("upper" "G_ASCII_UPPER")
527     '("xdigit" "G_ASCII_XDIGIT")
528   )
529 )
530
531 (define-enum Error
532   (in-module "GThread")
533   (c-name "GThreadError")
534   (gtype-id "G_TYPE_THREAD_ERROR")
535   (values
536     '("n" "G_THREAD_ERROR_AGAIN")
537   )
538 )
539
540 (define-enum Priority
541   (in-module "GThread")
542   (c-name "GThreadPriority")
543   (gtype-id "G_TYPE_THREAD_PRIORITY")
544   (values
545     '("low" "G_THREAD_PRIORITY_LOW")
546     '("normal" "G_THREAD_PRIORITY_NORMAL")
547     '("high" "G_THREAD_PRIORITY_HIGH")
548     '("urgent" "G_THREAD_PRIORITY_URGENT")
549   )
550 )
551
552 (define-enum Status
553   (in-module "GOnce")
554   (c-name "GOnceStatus")
555   (gtype-id "G_TYPE_ONCE_STATUS")
556   (values
557     '("notcalled" "G_ONCE_STATUS_NOTCALLED")
558     '("progress" "G_ONCE_STATUS_PROGRESS")
559     '("ready" "G_ONCE_STATUS_READY")
560   )
561 )
562
563 (define-enum Type
564   (in-module "GUnicode")
565   (c-name "GUnicodeType")
566   (gtype-id "G_TYPE_UNICODE_TYPE")
567   (values
568     '("control" "G_UNICODE_CONTROL")
569     '("format" "G_UNICODE_FORMAT")
570     '("unassigned" "G_UNICODE_UNASSIGNED")
571     '("private-use" "G_UNICODE_PRIVATE_USE")
572     '("surrogate" "G_UNICODE_SURROGATE")
573     '("lowercase-letter" "G_UNICODE_LOWERCASE_LETTER")
574     '("modifier-letter" "G_UNICODE_MODIFIER_LETTER")
575     '("other-letter" "G_UNICODE_OTHER_LETTER")
576     '("titlecase-letter" "G_UNICODE_TITLECASE_LETTER")
577     '("uppercase-letter" "G_UNICODE_UPPERCASE_LETTER")
578     '("combining-mark" "G_UNICODE_COMBINING_MARK")
579     '("enclosing-mark" "G_UNICODE_ENCLOSING_MARK")
580     '("non-spacing-mark" "G_UNICODE_NON_SPACING_MARK")
581     '("decimal-number" "G_UNICODE_DECIMAL_NUMBER")
582     '("letter-number" "G_UNICODE_LETTER_NUMBER")
583     '("other-number" "G_UNICODE_OTHER_NUMBER")
584     '("connect-punctuation" "G_UNICODE_CONNECT_PUNCTUATION")
585     '("dash-punctuation" "G_UNICODE_DASH_PUNCTUATION")
586     '("close-punctuation" "G_UNICODE_CLOSE_PUNCTUATION")
587     '("final-punctuation" "G_UNICODE_FINAL_PUNCTUATION")
588     '("initial-punctuation" "G_UNICODE_INITIAL_PUNCTUATION")
589     '("other-punctuation" "G_UNICODE_OTHER_PUNCTUATION")
590     '("open-punctuation" "G_UNICODE_OPEN_PUNCTUATION")
591     '("currency-symbol" "G_UNICODE_CURRENCY_SYMBOL")
592     '("modifier-symbol" "G_UNICODE_MODIFIER_SYMBOL")
593     '("math-symbol" "G_UNICODE_MATH_SYMBOL")
594     '("other-symbol" "G_UNICODE_OTHER_SYMBOL")
595     '("line-separator" "G_UNICODE_LINE_SEPARATOR")
596     '("paragraph-separator" "G_UNICODE_PARAGRAPH_SEPARATOR")
597     '("space-separator" "G_UNICODE_SPACE_SEPARATOR")
598   )
599 )
600
601 (define-enum BreakType
602   (in-module "GUnicode")
603   (c-name "GUnicodeBreakType")
604   (gtype-id "G_TYPE_UNICODE_BREAK_TYPE")
605   (values
606     '("mandatory" "G_UNICODE_BREAK_MANDATORY")
607     '("carriage-return" "G_UNICODE_BREAK_CARRIAGE_RETURN")
608     '("line-feed" "G_UNICODE_BREAK_LINE_FEED")
609     '("combining-mark" "G_UNICODE_BREAK_COMBINING_MARK")
610     '("surrogate" "G_UNICODE_BREAK_SURROGATE")
611     '("zero-width-space" "G_UNICODE_BREAK_ZERO_WIDTH_SPACE")
612     '("inseparable" "G_UNICODE_BREAK_INSEPARABLE")
613     '("non-breaking-glue" "G_UNICODE_BREAK_NON_BREAKING_GLUE")
614     '("contingent" "G_UNICODE_BREAK_CONTINGENT")
615     '("space" "G_UNICODE_BREAK_SPACE")
616     '("after" "G_UNICODE_BREAK_AFTER")
617     '("before" "G_UNICODE_BREAK_BEFORE")
618     '("before-and-after" "G_UNICODE_BREAK_BEFORE_AND_AFTER")
619     '("hyphen" "G_UNICODE_BREAK_HYPHEN")
620     '("non-starter" "G_UNICODE_BREAK_NON_STARTER")
621     '("open-punctuation" "G_UNICODE_BREAK_OPEN_PUNCTUATION")
622     '("close-punctuation" "G_UNICODE_BREAK_CLOSE_PUNCTUATION")
623     '("quotation" "G_UNICODE_BREAK_QUOTATION")
624     '("exclamation" "G_UNICODE_BREAK_EXCLAMATION")
625     '("ideographic" "G_UNICODE_BREAK_IDEOGRAPHIC")
626     '("numeric" "G_UNICODE_BREAK_NUMERIC")
627     '("infix-separator" "G_UNICODE_BREAK_INFIX_SEPARATOR")
628     '("symbol" "G_UNICODE_BREAK_SYMBOL")
629     '("alphabetic" "G_UNICODE_BREAK_ALPHABETIC")
630     '("prefix" "G_UNICODE_BREAK_PREFIX")
631     '("postfix" "G_UNICODE_BREAK_POSTFIX")
632     '("complex-context" "G_UNICODE_BREAK_COMPLEX_CONTEXT")
633     '("ambiguous" "G_UNICODE_BREAK_AMBIGUOUS")
634     '("unknown" "G_UNICODE_BREAK_UNKNOWN")
635     '("next-line" "G_UNICODE_BREAK_NEXT_LINE")
636     '("word-joiner" "G_UNICODE_BREAK_WORD_JOINER")
637     '("hangul-l-jamo" "G_UNICODE_BREAK_HANGUL_L_JAMO")
638     '("hangul-v-jamo" "G_UNICODE_BREAK_HANGUL_V_JAMO")
639     '("hangul-t-jamo" "G_UNICODE_BREAK_HANGUL_T_JAMO")
640     '("hangul-lv-syllable" "G_UNICODE_BREAK_HANGUL_LV_SYLLABLE")
641     '("hangul-lvt-syllable" "G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE")
642   )
643 )
644
645 (define-enum Script
646   (in-module "GUnicode")
647   (c-name "GUnicodeScript")
648   (gtype-id "G_TYPE_UNICODE_SCRIPT")
649   (values
650     '("invalid-code" "G_UNICODE_SCRIPT_INVALID_CODE")
651     '("common" "G_UNICODE_SCRIPT_COMMON")
652     '("inherited" "G_UNICODE_SCRIPT_INHERITED")
653     '("arabic" "G_UNICODE_SCRIPT_ARABIC")
654     '("armenian" "G_UNICODE_SCRIPT_ARMENIAN")
655     '("bengali" "G_UNICODE_SCRIPT_BENGALI")
656     '("bopomofo" "G_UNICODE_SCRIPT_BOPOMOFO")
657     '("cherokee" "G_UNICODE_SCRIPT_CHEROKEE")
658     '("coptic" "G_UNICODE_SCRIPT_COPTIC")
659     '("cyrillic" "G_UNICODE_SCRIPT_CYRILLIC")
660     '("deseret" "G_UNICODE_SCRIPT_DESERET")
661     '("devanagari" "G_UNICODE_SCRIPT_DEVANAGARI")
662     '("ethiopic" "G_UNICODE_SCRIPT_ETHIOPIC")
663     '("georgian" "G_UNICODE_SCRIPT_GEORGIAN")
664     '("gothic" "G_UNICODE_SCRIPT_GOTHIC")
665     '("greek" "G_UNICODE_SCRIPT_GREEK")
666     '("gujarati" "G_UNICODE_SCRIPT_GUJARATI")
667     '("gurmukhi" "G_UNICODE_SCRIPT_GURMUKHI")
668     '("han" "G_UNICODE_SCRIPT_HAN")
669     '("hangul" "G_UNICODE_SCRIPT_HANGUL")
670     '("hebrew" "G_UNICODE_SCRIPT_HEBREW")
671     '("hiragana" "G_UNICODE_SCRIPT_HIRAGANA")
672     '("kannada" "G_UNICODE_SCRIPT_KANNADA")
673     '("katakana" "G_UNICODE_SCRIPT_KATAKANA")
674     '("khmer" "G_UNICODE_SCRIPT_KHMER")
675     '("lao" "G_UNICODE_SCRIPT_LAO")
676     '("latin" "G_UNICODE_SCRIPT_LATIN")
677     '("malayalam" "G_UNICODE_SCRIPT_MALAYALAM")
678     '("mongolian" "G_UNICODE_SCRIPT_MONGOLIAN")
679     '("myanmar" "G_UNICODE_SCRIPT_MYANMAR")
680     '("ogham" "G_UNICODE_SCRIPT_OGHAM")
681     '("old-italic" "G_UNICODE_SCRIPT_OLD_ITALIC")
682     '("oriya" "G_UNICODE_SCRIPT_ORIYA")
683     '("runic" "G_UNICODE_SCRIPT_RUNIC")
684     '("sinhala" "G_UNICODE_SCRIPT_SINHALA")
685     '("syriac" "G_UNICODE_SCRIPT_SYRIAC")
686     '("tamil" "G_UNICODE_SCRIPT_TAMIL")
687     '("telugu" "G_UNICODE_SCRIPT_TELUGU")
688     '("thaana" "G_UNICODE_SCRIPT_THAANA")
689     '("thai" "G_UNICODE_SCRIPT_THAI")
690     '("tibetan" "G_UNICODE_SCRIPT_TIBETAN")
691     '("canadian-aboriginal" "G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL")
692     '("yi" "G_UNICODE_SCRIPT_YI")
693     '("tagalog" "G_UNICODE_SCRIPT_TAGALOG")
694     '("hanunoo" "G_UNICODE_SCRIPT_HANUNOO")
695     '("buhid" "G_UNICODE_SCRIPT_BUHID")
696     '("tagbanwa" "G_UNICODE_SCRIPT_TAGBANWA")
697     '("braille" "G_UNICODE_SCRIPT_BRAILLE")
698     '("cypriot" "G_UNICODE_SCRIPT_CYPRIOT")
699     '("limbu" "G_UNICODE_SCRIPT_LIMBU")
700     '("osmanya" "G_UNICODE_SCRIPT_OSMANYA")
701     '("shavian" "G_UNICODE_SCRIPT_SHAVIAN")
702     '("linear-b" "G_UNICODE_SCRIPT_LINEAR_B")
703     '("tai-le" "G_UNICODE_SCRIPT_TAI_LE")
704     '("ugaritic" "G_UNICODE_SCRIPT_UGARITIC")
705     '("new-tai-lue" "G_UNICODE_SCRIPT_NEW_TAI_LUE")
706     '("buginese" "G_UNICODE_SCRIPT_BUGINESE")
707     '("glagolitic" "G_UNICODE_SCRIPT_GLAGOLITIC")
708     '("tifinagh" "G_UNICODE_SCRIPT_TIFINAGH")
709     '("syloti-nagri" "G_UNICODE_SCRIPT_SYLOTI_NAGRI")
710     '("old-persian" "G_UNICODE_SCRIPT_OLD_PERSIAN")
711     '("kharoshthi" "G_UNICODE_SCRIPT_KHAROSHTHI")
712     '("unknown" "G_UNICODE_SCRIPT_UNKNOWN")
713     '("balinese" "G_UNICODE_SCRIPT_BALINESE")
714     '("cuneiform" "G_UNICODE_SCRIPT_CUNEIFORM")
715     '("phoenician" "G_UNICODE_SCRIPT_PHOENICIAN")
716     '("phags-pa" "G_UNICODE_SCRIPT_PHAGS_PA")
717     '("nko" "G_UNICODE_SCRIPT_NKO")
718   )
719 )
720
721 (define-enum Mode
722   (in-module "GNormalize")
723   (c-name "GNormalizeMode")
724   (gtype-id "G_TYPE_NORMALIZE_MODE")
725   (values
726     '("default" "G_NORMALIZE_DEFAULT")
727     '("nfd" "G_NORMALIZE_NFD")
728     '("default-compose" "G_NORMALIZE_DEFAULT_COMPOSE")
729     '("nfc" "G_NORMALIZE_NFC")
730     '("all" "G_NORMALIZE_ALL")
731     '("nfkd" "G_NORMALIZE_NFKD")
732     '("all-compose" "G_NORMALIZE_ALL_COMPOSE")
733     '("nfkc" "G_NORMALIZE_NFKC")
734   )
735 )
736
737 (define-enum Directory
738   (in-module "GUser")
739   (c-name "GUserDirectory")
740   (gtype-id "G_TYPE_USER_DIRECTORY")
741   (values
742     '("directory-desktop" "G_USER_DIRECTORY_DESKTOP")
743     '("directory-documents" "G_USER_DIRECTORY_DOCUMENTS")
744     '("directory-download" "G_USER_DIRECTORY_DOWNLOAD")
745     '("directory-music" "G_USER_DIRECTORY_MUSIC")
746     '("directory-pictures" "G_USER_DIRECTORY_PICTURES")
747     '("directory-public-share" "G_USER_DIRECTORY_PUBLIC_SHARE")
748     '("directory-templates" "G_USER_DIRECTORY_TEMPLATES")
749     '("directory-videos" "G_USER_DIRECTORY_VIDEOS")
750     '("n-directories" "G_USER_N_DIRECTORIES")
751   )
752 )
753
754
755 ;; From galias.h
756
757
758
759 ;; From galloca.h
760
761 (define-function alloca
762   (c-name "alloca")
763   (return-type "char*")
764   (parameters
765   )
766 )
767
768
769
770 ;; From garray.h
771
772 (define-function g_array_new
773   (c-name "g_array_new")
774   (is-constructor-of "GArray")
775   (return-type "GArray*")
776   (parameters
777     '("gboolean" "zero_terminated")
778     '("gboolean" "clear_")
779     '("guint" "element_size")
780   )
781 )
782
783 (define-function g_array_sized_new
784   (c-name "g_array_sized_new")
785   (is-constructor-of "GArraySized")
786   (return-type "GArray*")
787   (parameters
788     '("gboolean" "zero_terminated")
789     '("gboolean" "clear_")
790     '("guint" "element_size")
791     '("guint" "reserved_size")
792   )
793 )
794
795 (define-method free
796   (of-object "GArray")
797   (c-name "g_array_free")
798   (return-type "gchar*")
799   (parameters
800     '("gboolean" "free_segment")
801   )
802 )
803
804 (define-method append_vals
805   (of-object "GArray")
806   (c-name "g_array_append_vals")
807   (return-type "GArray*")
808   (parameters
809     '("gconstpointer" "data")
810     '("guint" "len")
811   )
812 )
813
814 (define-method prepend_vals
815   (of-object "GArray")
816   (c-name "g_array_prepend_vals")
817   (return-type "GArray*")
818   (parameters
819     '("gconstpointer" "data")
820     '("guint" "len")
821   )
822 )
823
824 (define-method insert_vals
825   (of-object "GArray")
826   (c-name "g_array_insert_vals")
827   (return-type "GArray*")
828   (parameters
829     '("guint" "index_")
830     '("gconstpointer" "data")
831     '("guint" "len")
832   )
833 )
834
835 (define-method set_size
836   (of-object "GArray")
837   (c-name "g_array_set_size")
838   (return-type "GArray*")
839   (parameters
840     '("guint" "length")
841   )
842 )
843
844 (define-method remove_index
845   (of-object "GArray")
846   (c-name "g_array_remove_index")
847   (return-type "GArray*")
848   (parameters
849     '("guint" "index_")
850   )
851 )
852
853 (define-method remove_index_fast
854   (of-object "GArray")
855   (c-name "g_array_remove_index_fast")
856   (return-type "GArray*")
857   (parameters
858     '("guint" "index_")
859   )
860 )
861
862 (define-method remove_range
863   (of-object "GArray")
864   (c-name "g_array_remove_range")
865   (return-type "GArray*")
866   (parameters
867     '("guint" "index_")
868     '("guint" "length")
869   )
870 )
871
872 (define-method sort
873   (of-object "GArray")
874   (c-name "g_array_sort")
875   (return-type "none")
876   (parameters
877     '("GCompareFunc" "compare_func")
878   )
879 )
880
881 (define-method sort_with_data
882   (of-object "GArray")
883   (c-name "g_array_sort_with_data")
884   (return-type "none")
885   (parameters
886     '("GCompareDataFunc" "compare_func")
887     '("gpointer" "user_data")
888   )
889 )
890
891 (define-function g_ptr_array_new
892   (c-name "g_ptr_array_new")
893   (is-constructor-of "GPtrArray")
894   (return-type "GPtrArray*")
895 )
896
897 (define-function g_ptr_array_sized_new
898   (c-name "g_ptr_array_sized_new")
899   (is-constructor-of "GPtrArraySized")
900   (return-type "GPtrArray*")
901   (parameters
902     '("guint" "reserved_size")
903   )
904 )
905
906 (define-method free
907   (of-object "GPtrArray")
908   (c-name "g_ptr_array_free")
909   (return-type "gpointer*")
910   (parameters
911     '("gboolean" "free_seg")
912   )
913 )
914
915 (define-method set_size
916   (of-object "GPtrArray")
917   (c-name "g_ptr_array_set_size")
918   (return-type "none")
919   (parameters
920     '("gint" "length")
921   )
922 )
923
924 (define-method remove_index
925   (of-object "GPtrArray")
926   (c-name "g_ptr_array_remove_index")
927   (return-type "gpointer")
928   (parameters
929     '("guint" "index_")
930   )
931 )
932
933 (define-method remove_index_fast
934   (of-object "GPtrArray")
935   (c-name "g_ptr_array_remove_index_fast")
936   (return-type "gpointer")
937   (parameters
938     '("guint" "index_")
939   )
940 )
941
942 (define-method remove
943   (of-object "GPtrArray")
944   (c-name "g_ptr_array_remove")
945   (return-type "gboolean")
946   (parameters
947     '("gpointer" "data")
948   )
949 )
950
951 (define-method remove_fast
952   (of-object "GPtrArray")
953   (c-name "g_ptr_array_remove_fast")
954   (return-type "gboolean")
955   (parameters
956     '("gpointer" "data")
957   )
958 )
959
960 (define-method remove_range
961   (of-object "GPtrArray")
962   (c-name "g_ptr_array_remove_range")
963   (return-type "none")
964   (parameters
965     '("guint" "index_")
966     '("guint" "length")
967   )
968 )
969
970 (define-method add
971   (of-object "GPtrArray")
972   (c-name "g_ptr_array_add")
973   (return-type "none")
974   (parameters
975     '("gpointer" "data")
976   )
977 )
978
979 (define-method sort
980   (of-object "GPtrArray")
981   (c-name "g_ptr_array_sort")
982   (return-type "none")
983   (parameters
984     '("GCompareFunc" "compare_func")
985   )
986 )
987
988 (define-method sort_with_data
989   (of-object "GPtrArray")
990   (c-name "g_ptr_array_sort_with_data")
991   (return-type "none")
992   (parameters
993     '("GCompareDataFunc" "compare_func")
994     '("gpointer" "user_data")
995   )
996 )
997
998 (define-method foreach
999   (of-object "GPtrArray")
1000   (c-name "g_ptr_array_foreach")
1001   (return-type "none")
1002   (parameters
1003     '("GFunc" "func")
1004     '("gpointer" "user_data")
1005   )
1006 )
1007
1008 (define-function g_byte_array_new
1009   (c-name "g_byte_array_new")
1010   (is-constructor-of "GByteArray")
1011   (return-type "GByteArray*")
1012 )
1013
1014 (define-function g_byte_array_sized_new
1015   (c-name "g_byte_array_sized_new")
1016   (is-constructor-of "GByteArraySized")
1017   (return-type "GByteArray*")
1018   (parameters
1019     '("guint" "reserved_size")
1020   )
1021 )
1022
1023 (define-method free
1024   (of-object "GByteArray")
1025   (c-name "g_byte_array_free")
1026   (return-type "guint8*")
1027   (parameters
1028     '("gboolean" "free_segment")
1029   )
1030 )
1031
1032 (define-method append
1033   (of-object "GByteArray")
1034   (c-name "g_byte_array_append")
1035   (return-type "GByteArray*")
1036   (parameters
1037     '("const-guint8*" "data")
1038     '("guint" "len")
1039   )
1040 )
1041
1042 (define-method prepend
1043   (of-object "GByteArray")
1044   (c-name "g_byte_array_prepend")
1045   (return-type "GByteArray*")
1046   (parameters
1047     '("const-guint8*" "data")
1048     '("guint" "len")
1049   )
1050 )
1051
1052 (define-method set_size
1053   (of-object "GByteArray")
1054   (c-name "g_byte_array_set_size")
1055   (return-type "GByteArray*")
1056   (parameters
1057     '("guint" "length")
1058   )
1059 )
1060
1061 (define-method remove_index
1062   (of-object "GByteArray")
1063   (c-name "g_byte_array_remove_index")
1064   (return-type "GByteArray*")
1065   (parameters
1066     '("guint" "index_")
1067   )
1068 )
1069
1070 (define-method remove_index_fast
1071   (of-object "GByteArray")
1072   (c-name "g_byte_array_remove_index_fast")
1073   (return-type "GByteArray*")
1074   (parameters
1075     '("guint" "index_")
1076   )
1077 )
1078
1079 (define-method remove_range
1080   (of-object "GByteArray")
1081   (c-name "g_byte_array_remove_range")
1082   (return-type "GByteArray*")
1083   (parameters
1084     '("guint" "index_")
1085     '("guint" "length")
1086   )
1087 )
1088
1089 (define-method sort
1090   (of-object "GByteArray")
1091   (c-name "g_byte_array_sort")
1092   (return-type "none")
1093   (parameters
1094     '("GCompareFunc" "compare_func")
1095   )
1096 )
1097
1098 (define-method sort_with_data
1099   (of-object "GByteArray")
1100   (c-name "g_byte_array_sort_with_data")
1101   (return-type "none")
1102   (parameters
1103     '("GCompareDataFunc" "compare_func")
1104     '("gpointer" "user_data")
1105   )
1106 )
1107
1108
1109
1110 ;; From gasyncqueue.h
1111
1112 (define-function g_async_queue_new
1113   (c-name "g_async_queue_new")
1114   (is-constructor-of "GAsyncQueue")
1115   (return-type "GAsyncQueue*")
1116 )
1117
1118 (define-method lock
1119   (of-object "GAsyncQueue")
1120   (c-name "g_async_queue_lock")
1121   (return-type "none")
1122 )
1123
1124 (define-method unlock
1125   (of-object "GAsyncQueue")
1126   (c-name "g_async_queue_unlock")
1127   (return-type "none")
1128 )
1129
1130 (define-method ref
1131   (of-object "GAsyncQueue")
1132   (c-name "g_async_queue_ref")
1133   (return-type "GAsyncQueue*")
1134 )
1135
1136 (define-method unref
1137   (of-object "GAsyncQueue")
1138   (c-name "g_async_queue_unref")
1139   (return-type "none")
1140 )
1141
1142 (define-method ref_unlocked
1143   (of-object "GAsyncQueue")
1144   (c-name "g_async_queue_ref_unlocked")
1145   (return-type "none")
1146 )
1147
1148 (define-method unref_and_unlock
1149   (of-object "GAsyncQueue")
1150   (c-name "g_async_queue_unref_and_unlock")
1151   (return-type "none")
1152 )
1153
1154 (define-method push
1155   (of-object "GAsyncQueue")
1156   (c-name "g_async_queue_push")
1157   (return-type "none")
1158   (parameters
1159     '("gpointer" "data")
1160   )
1161 )
1162
1163 (define-method push_unlocked
1164   (of-object "GAsyncQueue")
1165   (c-name "g_async_queue_push_unlocked")
1166   (return-type "none")
1167   (parameters
1168     '("gpointer" "data")
1169   )
1170 )
1171
1172 (define-method push_sorted
1173   (of-object "GAsyncQueue")
1174   (c-name "g_async_queue_push_sorted")
1175   (return-type "none")
1176   (parameters
1177     '("gpointer" "data")
1178     '("GCompareDataFunc" "func")
1179     '("gpointer" "user_data")
1180   )
1181 )
1182
1183 (define-method push_sorted_unlocked
1184   (of-object "GAsyncQueue")
1185   (c-name "g_async_queue_push_sorted_unlocked")
1186   (return-type "none")
1187   (parameters
1188     '("gpointer" "data")
1189     '("GCompareDataFunc" "func")
1190     '("gpointer" "user_data")
1191   )
1192 )
1193
1194 (define-method pop
1195   (of-object "GAsyncQueue")
1196   (c-name "g_async_queue_pop")
1197   (return-type "gpointer")
1198 )
1199
1200 (define-method pop_unlocked
1201   (of-object "GAsyncQueue")
1202   (c-name "g_async_queue_pop_unlocked")
1203   (return-type "gpointer")
1204 )
1205
1206 (define-method try_pop
1207   (of-object "GAsyncQueue")
1208   (c-name "g_async_queue_try_pop")
1209   (return-type "gpointer")
1210 )
1211
1212 (define-method try_pop_unlocked
1213   (of-object "GAsyncQueue")
1214   (c-name "g_async_queue_try_pop_unlocked")
1215   (return-type "gpointer")
1216 )
1217
1218 (define-method timed_pop
1219   (of-object "GAsyncQueue")
1220   (c-name "g_async_queue_timed_pop")
1221   (return-type "gpointer")
1222   (parameters
1223     '("GTimeVal*" "end_time")
1224   )
1225 )
1226
1227 (define-method timed_pop_unlocked
1228   (of-object "GAsyncQueue")
1229   (c-name "g_async_queue_timed_pop_unlocked")
1230   (return-type "gpointer")
1231   (parameters
1232     '("GTimeVal*" "end_time")
1233   )
1234 )
1235
1236 (define-method length
1237   (of-object "GAsyncQueue")
1238   (c-name "g_async_queue_length")
1239   (return-type "gint")
1240 )
1241
1242 (define-method length_unlocked
1243   (of-object "GAsyncQueue")
1244   (c-name "g_async_queue_length_unlocked")
1245   (return-type "gint")
1246 )
1247
1248 (define-method sort
1249   (of-object "GAsyncQueue")
1250   (c-name "g_async_queue_sort")
1251   (return-type "none")
1252   (parameters
1253     '("GCompareDataFunc" "func")
1254     '("gpointer" "user_data")
1255   )
1256 )
1257
1258 (define-method sort_unlocked
1259   (of-object "GAsyncQueue")
1260   (c-name "g_async_queue_sort_unlocked")
1261   (return-type "none")
1262   (parameters
1263     '("GCompareDataFunc" "func")
1264     '("gpointer" "user_data")
1265   )
1266 )
1267
1268
1269
1270 ;; From gatomic.h
1271
1272 (define-function g_atomic_int_exchange_and_add
1273   (c-name "g_atomic_int_exchange_and_add")
1274   (return-type "gint")
1275   (parameters
1276     '("volatile-gint*" "atomic")
1277     '("gint" "val")
1278   )
1279 )
1280
1281 (define-function g_atomic_int_add
1282   (c-name "g_atomic_int_add")
1283   (return-type "none")
1284   (parameters
1285     '("volatile-gint*" "atomic")
1286     '("gint" "val")
1287   )
1288 )
1289
1290 (define-function g_atomic_int_compare_and_exchange
1291   (c-name "g_atomic_int_compare_and_exchange")
1292   (return-type "gboolean")
1293   (parameters
1294     '("volatile-gint*" "atomic")
1295     '("gint" "oldval")
1296     '("gint" "newval")
1297   )
1298 )
1299
1300 (define-function g_atomic_pointer_compare_and_exchange
1301   (c-name "g_atomic_pointer_compare_and_exchange")
1302   (return-type "gboolean")
1303   (parameters
1304     '("volatile-gpointer*" "atomic")
1305     '("gpointer" "oldval")
1306     '("gpointer" "newval")
1307   )
1308 )
1309
1310 (define-function g_atomic_int_get
1311   (c-name "g_atomic_int_get")
1312   (return-type "gint")
1313   (parameters
1314     '("volatile-gint*" "atomic")
1315   )
1316 )
1317
1318 (define-function g_atomic_int_set
1319   (c-name "g_atomic_int_set")
1320   (return-type "none")
1321   (parameters
1322     '("volatile-gint*" "atomic")
1323     '("gint" "newval")
1324   )
1325 )
1326
1327 (define-function g_atomic_pointer_get
1328   (c-name "g_atomic_pointer_get")
1329   (return-type "gpointer")
1330   (parameters
1331     '("volatile-gpointer*" "atomic")
1332   )
1333 )
1334
1335 (define-function g_atomic_pointer_set
1336   (c-name "g_atomic_pointer_set")
1337   (return-type "none")
1338   (parameters
1339     '("volatile-gpointer*" "atomic")
1340     '("gpointer" "newval")
1341   )
1342 )
1343
1344
1345
1346 ;; From gbacktrace.h
1347
1348 (define-function g_on_error_query
1349   (c-name "g_on_error_query")
1350   (return-type "none")
1351   (parameters
1352     '("const-gchar*" "prg_name")
1353   )
1354 )
1355
1356 (define-function g_on_error_stack_trace
1357   (c-name "g_on_error_stack_trace")
1358   (return-type "none")
1359   (parameters
1360     '("const-gchar*" "prg_name")
1361   )
1362 )
1363
1364
1365
1366 ;; From gbase64.h
1367
1368 (define-function g_base64_encode_step
1369   (c-name "g_base64_encode_step")
1370   (return-type "gsize")
1371   (parameters
1372     '("const-guchar*" "in")
1373     '("gsize" "len")
1374     '("gboolean" "break_lines")
1375     '("gchar*" "out")
1376     '("gint*" "state")
1377     '("gint*" "save")
1378   )
1379 )
1380
1381 (define-function g_base64_encode_close
1382   (c-name "g_base64_encode_close")
1383   (return-type "gsize")
1384   (parameters
1385     '("gboolean" "break_lines")
1386     '("gchar*" "out")
1387     '("gint*" "state")
1388     '("gint*" "save")
1389   )
1390 )
1391
1392 (define-function g_base64_encode
1393   (c-name "g_base64_encode")
1394   (return-type "gchar*")
1395   (parameters
1396     '("const-guchar*" "data")
1397     '("gsize" "len")
1398   )
1399 )
1400
1401 (define-function g_base64_decode_step
1402   (c-name "g_base64_decode_step")
1403   (return-type "gsize")
1404   (parameters
1405     '("const-gchar*" "in")
1406     '("gsize" "len")
1407     '("guchar*" "out")
1408     '("gint*" "state")
1409     '("guint*" "save")
1410   )
1411 )
1412
1413 (define-function g_base64_decode
1414   (c-name "g_base64_decode")
1415   (return-type "guchar*")
1416   (parameters
1417     '("const-gchar*" "text")
1418     '("gsize*" "out_len")
1419   )
1420 )
1421
1422
1423
1424 ;; From gbookmarkfile.h
1425
1426 (define-function g_bookmark_file_error_quark
1427   (c-name "g_bookmark_file_error_quark")
1428   (return-type "GQuark")
1429 )
1430
1431 (define-function g_bookmark_file_new
1432   (c-name "g_bookmark_file_new")
1433   (is-constructor-of "GBookmarkFile")
1434   (return-type "GBookmarkFile*")
1435 )
1436
1437 (define-method free
1438   (of-object "GBookmarkFile")
1439   (c-name "g_bookmark_file_free")
1440   (return-type "none")
1441 )
1442
1443 (define-method load_from_file
1444   (of-object "GBookmarkFile")
1445   (c-name "g_bookmark_file_load_from_file")
1446   (return-type "gboolean")
1447   (parameters
1448     '("const-gchar*" "filename")
1449     '("GError**" "error")
1450   )
1451 )
1452
1453 (define-method load_from_data
1454   (of-object "GBookmarkFile")
1455   (c-name "g_bookmark_file_load_from_data")
1456   (return-type "gboolean")
1457   (parameters
1458     '("const-gchar*" "data")
1459     '("gsize" "length")
1460     '("GError**" "error")
1461   )
1462 )
1463
1464 (define-method load_from_data_dirs
1465   (of-object "GBookmarkFile")
1466   (c-name "g_bookmark_file_load_from_data_dirs")
1467   (return-type "gboolean")
1468   (parameters
1469     '("const-gchar*" "file")
1470     '("gchar**" "full_path")
1471     '("GError**" "error")
1472   )
1473 )
1474
1475 (define-method to_data
1476   (of-object "GBookmarkFile")
1477   (c-name "g_bookmark_file_to_data")
1478   (return-type "gchar*")
1479   (parameters
1480     '("gsize*" "length")
1481     '("GError**" "error")
1482   )
1483 )
1484
1485 (define-method to_file
1486   (of-object "GBookmarkFile")
1487   (c-name "g_bookmark_file_to_file")
1488   (return-type "gboolean")
1489   (parameters
1490     '("const-gchar*" "filename")
1491     '("GError**" "error")
1492   )
1493 )
1494
1495 (define-method set_title
1496   (of-object "GBookmarkFile")
1497   (c-name "g_bookmark_file_set_title")
1498   (return-type "none")
1499   (parameters
1500     '("const-gchar*" "uri")
1501     '("const-gchar*" "title")
1502   )
1503 )
1504
1505 (define-method get_title
1506   (of-object "GBookmarkFile")
1507   (c-name "g_bookmark_file_get_title")
1508   (return-type "gchar*")
1509   (parameters
1510     '("const-gchar*" "uri")
1511     '("GError**" "error")
1512   )
1513 )
1514
1515 (define-method set_description
1516   (of-object "GBookmarkFile")
1517   (c-name "g_bookmark_file_set_description")
1518   (return-type "none")
1519   (parameters
1520     '("const-gchar*" "uri")
1521     '("const-gchar*" "description")
1522   )
1523 )
1524
1525 (define-method get_description
1526   (of-object "GBookmarkFile")
1527   (c-name "g_bookmark_file_get_description")
1528   (return-type "gchar*")
1529   (parameters
1530     '("const-gchar*" "uri")
1531     '("GError**" "error")
1532   )
1533 )
1534
1535 (define-method set_mime_type
1536   (of-object "GBookmarkFile")
1537   (c-name "g_bookmark_file_set_mime_type")
1538   (return-type "none")
1539   (parameters
1540     '("const-gchar*" "uri")
1541     '("const-gchar*" "mime_type")
1542   )
1543 )
1544
1545 (define-method get_mime_type
1546   (of-object "GBookmarkFile")
1547   (c-name "g_bookmark_file_get_mime_type")
1548   (return-type "gchar*")
1549   (parameters
1550     '("const-gchar*" "uri")
1551     '("GError**" "error")
1552   )
1553 )
1554
1555 (define-method set_groups
1556   (of-object "GBookmarkFile")
1557   (c-name "g_bookmark_file_set_groups")
1558   (return-type "none")
1559   (parameters
1560     '("const-gchar*" "uri")
1561     '("const-gchar**" "groups")
1562     '("gsize" "length")
1563   )
1564 )
1565
1566 (define-method add_group
1567   (of-object "GBookmarkFile")
1568   (c-name "g_bookmark_file_add_group")
1569   (return-type "none")
1570   (parameters
1571     '("const-gchar*" "uri")
1572     '("const-gchar*" "group")
1573   )
1574 )
1575
1576 (define-method has_group
1577   (of-object "GBookmarkFile")
1578   (c-name "g_bookmark_file_has_group")
1579   (return-type "gboolean")
1580   (parameters
1581     '("const-gchar*" "uri")
1582     '("const-gchar*" "group")
1583     '("GError**" "error")
1584   )
1585 )
1586
1587 (define-method get_groups
1588   (of-object "GBookmarkFile")
1589   (c-name "g_bookmark_file_get_groups")
1590   (return-type "gchar**")
1591   (parameters
1592     '("const-gchar*" "uri")
1593     '("gsize*" "length")
1594     '("GError**" "error")
1595   )
1596 )
1597
1598 (define-method add_application
1599   (of-object "GBookmarkFile")
1600   (c-name "g_bookmark_file_add_application")
1601   (return-type "none")
1602   (parameters
1603     '("const-gchar*" "uri")
1604     '("const-gchar*" "name")
1605     '("const-gchar*" "exec")
1606   )
1607 )
1608
1609 (define-method has_application
1610   (of-object "GBookmarkFile")
1611   (c-name "g_bookmark_file_has_application")
1612   (return-type "gboolean")
1613   (parameters
1614     '("const-gchar*" "uri")
1615     '("const-gchar*" "name")
1616     '("GError**" "error")
1617   )
1618 )
1619
1620 (define-method get_applications
1621   (of-object "GBookmarkFile")
1622   (c-name "g_bookmark_file_get_applications")
1623   (return-type "gchar**")
1624   (parameters
1625     '("const-gchar*" "uri")
1626     '("gsize*" "length")
1627     '("GError**" "error")
1628   )
1629 )
1630
1631 (define-method set_app_info
1632   (of-object "GBookmarkFile")
1633   (c-name "g_bookmark_file_set_app_info")
1634   (return-type "gboolean")
1635   (parameters
1636     '("const-gchar*" "uri")
1637     '("const-gchar*" "name")
1638     '("const-gchar*" "exec")
1639     '("gint" "count")
1640     '("time_t" "stamp")
1641     '("GError**" "error")
1642   )
1643 )
1644
1645 (define-method get_app_info
1646   (of-object "GBookmarkFile")
1647   (c-name "g_bookmark_file_get_app_info")
1648   (return-type "gboolean")
1649   (parameters
1650     '("const-gchar*" "uri")
1651     '("const-gchar*" "name")
1652     '("gchar**" "exec")
1653     '("guint*" "count")
1654     '("time_t*" "stamp")
1655     '("GError**" "error")
1656   )
1657 )
1658
1659 (define-method set_is_private
1660   (of-object "GBookmarkFile")
1661   (c-name "g_bookmark_file_set_is_private")
1662   (return-type "none")
1663   (parameters
1664     '("const-gchar*" "uri")
1665     '("gboolean" "is_private")
1666   )
1667 )
1668
1669 (define-method get_is_private
1670   (of-object "GBookmarkFile")
1671   (c-name "g_bookmark_file_get_is_private")
1672   (return-type "gboolean")
1673   (parameters
1674     '("const-gchar*" "uri")
1675     '("GError**" "error")
1676   )
1677 )
1678
1679 (define-method set_icon
1680   (of-object "GBookmarkFile")
1681   (c-name "g_bookmark_file_set_icon")
1682   (return-type "none")
1683   (parameters
1684     '("const-gchar*" "uri")
1685     '("const-gchar*" "href")
1686     '("const-gchar*" "mime_type")
1687   )
1688 )
1689
1690 (define-method get_icon
1691   (of-object "GBookmarkFile")
1692   (c-name "g_bookmark_file_get_icon")
1693   (return-type "gboolean")
1694   (parameters
1695     '("const-gchar*" "uri")
1696     '("gchar**" "href")
1697     '("gchar**" "mime_type")
1698     '("GError**" "error")
1699   )
1700 )
1701
1702 (define-method set_added
1703   (of-object "GBookmarkFile")
1704   (c-name "g_bookmark_file_set_added")
1705   (return-type "none")
1706   (parameters
1707     '("const-gchar*" "uri")
1708     '("time_t" "added")
1709   )
1710 )
1711
1712 (define-method get_added
1713   (of-object "GBookmarkFile")
1714   (c-name "g_bookmark_file_get_added")
1715   (return-type "time_t")
1716   (parameters
1717     '("const-gchar*" "uri")
1718     '("GError**" "error")
1719   )
1720 )
1721
1722 (define-method set_modified
1723   (of-object "GBookmarkFile")
1724   (c-name "g_bookmark_file_set_modified")
1725   (return-type "none")
1726   (parameters
1727     '("const-gchar*" "uri")
1728     '("time_t" "modified")
1729   )
1730 )
1731
1732 (define-method get_modified
1733   (of-object "GBookmarkFile")
1734   (c-name "g_bookmark_file_get_modified")
1735   (return-type "time_t")
1736   (parameters
1737     '("const-gchar*" "uri")
1738     '("GError**" "error")
1739   )
1740 )
1741
1742 (define-method set_visited
1743   (of-object "GBookmarkFile")
1744   (c-name "g_bookmark_file_set_visited")
1745   (return-type "none")
1746   (parameters
1747     '("const-gchar*" "uri")
1748     '("time_t" "visited")
1749   )
1750 )
1751
1752 (define-method get_visited
1753   (of-object "GBookmarkFile")
1754   (c-name "g_bookmark_file_get_visited")
1755   (return-type "time_t")
1756   (parameters
1757     '("const-gchar*" "uri")
1758     '("GError**" "error")
1759   )
1760 )
1761
1762 (define-method has_item
1763   (of-object "GBookmarkFile")
1764   (c-name "g_bookmark_file_has_item")
1765   (return-type "gboolean")
1766   (parameters
1767     '("const-gchar*" "uri")
1768   )
1769 )
1770
1771 (define-method get_size
1772   (of-object "GBookmarkFile")
1773   (c-name "g_bookmark_file_get_size")
1774   (return-type "gint")
1775 )
1776
1777 (define-method get_uris
1778   (of-object "GBookmarkFile")
1779   (c-name "g_bookmark_file_get_uris")
1780   (return-type "gchar**")
1781   (parameters
1782     '("gsize*" "length")
1783   )
1784 )
1785
1786 (define-method remove_group
1787   (of-object "GBookmarkFile")
1788   (c-name "g_bookmark_file_remove_group")
1789   (return-type "gboolean")
1790   (parameters
1791     '("const-gchar*" "uri")
1792     '("const-gchar*" "group")
1793     '("GError**" "error")
1794   )
1795 )
1796
1797 (define-method remove_application
1798   (of-object "GBookmarkFile")
1799   (c-name "g_bookmark_file_remove_application")
1800   (return-type "gboolean")
1801   (parameters
1802     '("const-gchar*" "uri")
1803     '("const-gchar*" "name")
1804     '("GError**" "error")
1805   )
1806 )
1807
1808 (define-method remove_item
1809   (of-object "GBookmarkFile")
1810   (c-name "g_bookmark_file_remove_item")
1811   (return-type "gboolean")
1812   (parameters
1813     '("const-gchar*" "uri")
1814     '("GError**" "error")
1815   )
1816 )
1817
1818 (define-method move_item
1819   (of-object "GBookmarkFile")
1820   (c-name "g_bookmark_file_move_item")
1821   (return-type "gboolean")
1822   (parameters
1823     '("const-gchar*" "old_uri")
1824     '("const-gchar*" "new_uri")
1825     '("GError**" "error")
1826   )
1827 )
1828
1829
1830
1831 ;; From gbsearcharray.h
1832
1833 (define-function if
1834   (c-name "if")
1835   (return-type "else")
1836   (parameters
1837     '("cmp-<" "0")
1838   )
1839 )
1840
1841 (define-function MIN
1842   (c-name "MIN")
1843   (return-type "return")
1844   (parameters
1845     '("barray->n_nodes-+" "1")
1846   )
1847 )
1848
1849
1850
1851 ;; From gcache.h
1852
1853 (define-function g_cache_new
1854   (c-name "g_cache_new")
1855   (is-constructor-of "GCache")
1856   (return-type "GCache*")
1857   (parameters
1858     '("GCacheNewFunc" "value_new_func")
1859     '("GCacheDestroyFunc" "value_destroy_func")
1860     '("GCacheDupFunc" "key_dup_func")
1861     '("GCacheDestroyFunc" "key_destroy_func")
1862     '("GHashFunc" "hash_key_func")
1863     '("GHashFunc" "hash_value_func")
1864     '("GEqualFunc" "key_equal_func")
1865   )
1866 )
1867
1868 (define-method destroy
1869   (of-object "GCache")
1870   (c-name "g_cache_destroy")
1871   (return-type "none")
1872 )
1873
1874 (define-method insert
1875   (of-object "GCache")
1876   (c-name "g_cache_insert")
1877   (return-type "gpointer")
1878   (parameters
1879     '("gpointer" "key")
1880   )
1881 )
1882
1883 (define-method remove
1884   (of-object "GCache")
1885   (c-name "g_cache_remove")
1886   (return-type "none")
1887   (parameters
1888     '("gconstpointer" "value")
1889   )
1890 )
1891
1892 (define-method key_foreach
1893   (of-object "GCache")
1894   (c-name "g_cache_key_foreach")
1895   (return-type "none")
1896   (parameters
1897     '("GHFunc" "func")
1898     '("gpointer" "user_data")
1899   )
1900 )
1901
1902 (define-method value_foreach
1903   (of-object "GCache")
1904   (c-name "g_cache_value_foreach")
1905   (return-type "none")
1906   (parameters
1907     '("GHFunc" "func")
1908     '("gpointer" "user_data")
1909   )
1910 )
1911
1912
1913
1914 ;; From gcompletion.h
1915
1916 (define-function g_completion_new
1917   (c-name "g_completion_new")
1918   (is-constructor-of "GCompletion")
1919   (return-type "GCompletion*")
1920   (parameters
1921     '("GCompletionFunc" "func")
1922   )
1923 )
1924
1925 (define-method add_items
1926   (of-object "GCompletion")
1927   (c-name "g_completion_add_items")
1928   (return-type "none")
1929   (parameters
1930     '("GList*" "items")
1931   )
1932 )
1933
1934 (define-method remove_items
1935   (of-object "GCompletion")
1936   (c-name "g_completion_remove_items")
1937   (return-type "none")
1938   (parameters
1939     '("GList*" "items")
1940   )
1941 )
1942
1943 (define-method clear_items
1944   (of-object "GCompletion")
1945   (c-name "g_completion_clear_items")
1946   (return-type "none")
1947 )
1948
1949 (define-method complete
1950   (of-object "GCompletion")
1951   (c-name "g_completion_complete")
1952   (return-type "GList*")
1953   (parameters
1954     '("const-gchar*" "prefix")
1955     '("gchar**" "new_prefix")
1956   )
1957 )
1958
1959 (define-method complete_utf8
1960   (of-object "GCompletion")
1961   (c-name "g_completion_complete_utf8")
1962   (return-type "GList*")
1963   (parameters
1964     '("const-gchar*" "prefix")
1965     '("gchar**" "new_prefix")
1966   )
1967 )
1968
1969 (define-method set_compare
1970   (of-object "GCompletion")
1971   (c-name "g_completion_set_compare")
1972   (return-type "none")
1973   (parameters
1974     '("GCompletionStrncmpFunc" "strncmp_func")
1975   )
1976 )
1977
1978 (define-method free
1979   (of-object "GCompletion")
1980   (c-name "g_completion_free")
1981   (return-type "none")
1982 )
1983
1984
1985
1986 ;; From gconvert.h
1987
1988 (define-function g_convert_error_quark
1989   (c-name "g_convert_error_quark")
1990   (return-type "GQuark")
1991 )
1992
1993 (define-function g_iconv_open
1994   (c-name "g_iconv_open")
1995   (return-type "GIConv")
1996   (parameters
1997     '("const-gchar*" "to_codeset")
1998     '("const-gchar*" "from_codeset")
1999   )
2000 )
2001
2002 (define-method close
2003   (of-object "GIConv")
2004   (c-name "g_iconv_close")
2005   (return-type "gint")
2006 )
2007
2008 (define-function g_convert
2009   (c-name "g_convert")
2010   (return-type "gchar*")
2011   (parameters
2012     '("const-gchar*" "str")
2013     '("gssize" "len")
2014     '("const-gchar*" "to_codeset")
2015     '("const-gchar*" "from_codeset")
2016     '("gsize*" "bytes_read")
2017     '("gsize*" "bytes_written")
2018     '("GError**" "error")
2019   )
2020 )
2021
2022 (define-function g_convert_with_iconv
2023   (c-name "g_convert_with_iconv")
2024   (return-type "gchar*")
2025   (parameters
2026     '("const-gchar*" "str")
2027     '("gssize" "len")
2028     '("GIConv" "converter")
2029     '("gsize*" "bytes_read")
2030     '("gsize*" "bytes_written")
2031     '("GError**" "error")
2032   )
2033 )
2034
2035 (define-function g_convert_with_fallback
2036   (c-name "g_convert_with_fallback")
2037   (return-type "gchar*")
2038   (parameters
2039     '("const-gchar*" "str")
2040     '("gssize" "len")
2041     '("const-gchar*" "to_codeset")
2042     '("const-gchar*" "from_codeset")
2043     '("gchar*" "fallback")
2044     '("gsize*" "bytes_read")
2045     '("gsize*" "bytes_written")
2046     '("GError**" "error")
2047   )
2048 )
2049
2050 (define-function g_locale_to_utf8
2051   (c-name "g_locale_to_utf8")
2052   (return-type "gchar*")
2053   (parameters
2054     '("const-gchar*" "opsysstring")
2055     '("gssize" "len")
2056     '("gsize*" "bytes_read")
2057     '("gsize*" "bytes_written")
2058     '("GError**" "error")
2059   )
2060 )
2061
2062 (define-function g_locale_from_utf8
2063   (c-name "g_locale_from_utf8")
2064   (return-type "gchar*")
2065   (parameters
2066     '("const-gchar*" "utf8string")
2067     '("gssize" "len")
2068     '("gsize*" "bytes_read")
2069     '("gsize*" "bytes_written")
2070     '("GError**" "error")
2071   )
2072 )
2073
2074 (define-function g_filename_to_utf8
2075   (c-name "g_filename_to_utf8")
2076   (return-type "gchar*")
2077   (parameters
2078     '("const-gchar*" "opsysstring")
2079     '("gssize" "len")
2080     '("gsize*" "bytes_read")
2081     '("gsize*" "bytes_written")
2082     '("GError**" "error")
2083   )
2084 )
2085
2086 (define-function g_filename_from_utf8
2087   (c-name "g_filename_from_utf8")
2088   (return-type "gchar*")
2089   (parameters
2090     '("const-gchar*" "utf8string")
2091     '("gssize" "len")
2092     '("gsize*" "bytes_read")
2093     '("gsize*" "bytes_written")
2094     '("GError**" "error")
2095   )
2096 )
2097
2098 (define-function g_filename_from_uri
2099   (c-name "g_filename_from_uri")
2100   (return-type "gchar*")
2101   (parameters
2102     '("const-gchar*" "uri")
2103     '("gchar**" "hostname")
2104     '("GError**" "error")
2105   )
2106 )
2107
2108 (define-function g_filename_to_uri
2109   (c-name "g_filename_to_uri")
2110   (return-type "gchar*")
2111   (parameters
2112     '("const-gchar*" "filename")
2113     '("const-gchar*" "hostname")
2114     '("GError**" "error")
2115   )
2116 )
2117
2118 (define-function g_filename_display_name
2119   (c-name "g_filename_display_name")
2120   (return-type "gchar*")
2121   (parameters
2122     '("const-gchar*" "filename")
2123   )
2124 )
2125
2126 (define-function g_get_filename_charsets
2127   (c-name "g_get_filename_charsets")
2128   (return-type "gboolean")
2129   (parameters
2130     '("const-gchar***" "charsets")
2131   )
2132 )
2133
2134 (define-function g_filename_display_basename
2135   (c-name "g_filename_display_basename")
2136   (return-type "gchar*")
2137   (parameters
2138     '("const-gchar*" "filename")
2139   )
2140 )
2141
2142 (define-function g_uri_list_extract_uris
2143   (c-name "g_uri_list_extract_uris")
2144   (return-type "gchar**")
2145   (parameters
2146     '("const-gchar*" "uri_list")
2147   )
2148 )
2149
2150
2151
2152 ;; From gdataset.h
2153
2154 (define-function g_datalist_init
2155   (c-name "g_datalist_init")
2156   (return-type "none")
2157   (parameters
2158     '("GData**" "datalist")
2159   )
2160 )
2161
2162 (define-function g_datalist_clear
2163   (c-name "g_datalist_clear")
2164   (return-type "none")
2165   (parameters
2166     '("GData**" "datalist")
2167   )
2168 )
2169
2170 (define-function g_datalist_id_get_data
2171   (c-name "g_datalist_id_get_data")
2172   (return-type "gpointer")
2173   (parameters
2174     '("GData**" "datalist")
2175     '("GQuark" "key_id")
2176   )
2177 )
2178
2179 (define-function g_datalist_id_set_data_full
2180   (c-name "g_datalist_id_set_data_full")
2181   (return-type "none")
2182   (parameters
2183     '("GData**" "datalist")
2184     '("GQuark" "key_id")
2185     '("gpointer" "data")
2186     '("GDestroyNotify" "destroy_func")
2187   )
2188 )
2189
2190 (define-function g_datalist_id_remove_no_notify
2191   (c-name "g_datalist_id_remove_no_notify")
2192   (return-type "gpointer")
2193   (parameters
2194     '("GData**" "datalist")
2195     '("GQuark" "key_id")
2196   )
2197 )
2198
2199 (define-function g_datalist_foreach
2200   (c-name "g_datalist_foreach")
2201   (return-type "none")
2202   (parameters
2203     '("GData**" "datalist")
2204     '("GDataForeachFunc" "func")
2205     '("gpointer" "user_data")
2206   )
2207 )
2208
2209 (define-function g_datalist_set_flags
2210   (c-name "g_datalist_set_flags")
2211   (return-type "none")
2212   (parameters
2213     '("GData**" "datalist")
2214     '("guint" "flags")
2215   )
2216 )
2217
2218 (define-function g_datalist_unset_flags
2219   (c-name "g_datalist_unset_flags")
2220   (return-type "none")
2221   (parameters
2222     '("GData**" "datalist")
2223     '("guint" "flags")
2224   )
2225 )
2226
2227 (define-function g_datalist_get_flags
2228   (c-name "g_datalist_get_flags")
2229   (return-type "guint")
2230   (parameters
2231     '("GData**" "datalist")
2232   )
2233 )
2234
2235 (define-function g_dataset_destroy
2236   (c-name "g_dataset_destroy")
2237   (return-type "none")
2238   (parameters
2239     '("gconstpointer" "dataset_location")
2240   )
2241 )
2242
2243 (define-function g_dataset_id_get_data
2244   (c-name "g_dataset_id_get_data")
2245   (return-type "gpointer")
2246   (parameters
2247     '("gconstpointer" "dataset_location")
2248     '("GQuark" "key_id")
2249   )
2250 )
2251
2252 (define-function g_dataset_id_set_data_full
2253   (c-name "g_dataset_id_set_data_full")
2254   (return-type "none")
2255   (parameters
2256     '("gconstpointer" "dataset_location")
2257     '("GQuark" "key_id")
2258     '("gpointer" "data")
2259     '("GDestroyNotify" "destroy_func")
2260   )
2261 )
2262
2263 (define-function g_dataset_id_remove_no_notify
2264   (c-name "g_dataset_id_remove_no_notify")
2265   (return-type "gpointer")
2266   (parameters
2267     '("gconstpointer" "dataset_location")
2268     '("GQuark" "key_id")
2269   )
2270 )
2271
2272 (define-function g_dataset_foreach
2273   (c-name "g_dataset_foreach")
2274   (return-type "none")
2275   (parameters
2276     '("gconstpointer" "dataset_location")
2277     '("GDataForeachFunc" "func")
2278     '("gpointer" "user_data")
2279   )
2280 )
2281
2282
2283
2284 ;; From gdatasetprivate.h
2285
2286
2287
2288 ;; From gdate.h
2289
2290 (define-function g_date_new
2291   (c-name "g_date_new")
2292   (is-constructor-of "GDate")
2293   (return-type "GDate*")
2294 )
2295
2296 (define-function g_date_new_dmy
2297   (c-name "g_date_new_dmy")
2298   (return-type "GDate*")
2299   (parameters
2300     '("GDateDay" "day")
2301     '("GDateMonth" "month")
2302     '("GDateYear" "year")
2303   )
2304 )
2305
2306 (define-function g_date_new_julian
2307   (c-name "g_date_new_julian")
2308   (return-type "GDate*")
2309   (parameters
2310     '("guint32" "julian_day")
2311   )
2312 )
2313
2314 (define-method free
2315   (of-object "GDate")
2316   (c-name "g_date_free")
2317   (return-type "none")
2318 )
2319
2320 (define-method valid
2321   (of-object "GDate")
2322   (c-name "g_date_valid")
2323   (return-type "gboolean")
2324 )
2325
2326 (define-function g_date_valid_day
2327   (c-name "g_date_valid_day")
2328   (return-type "gboolean")
2329   (parameters
2330     '("GDateDay" "day")
2331   )
2332 )
2333
2334 (define-function g_date_valid_month
2335   (c-name "g_date_valid_month")
2336   (return-type "gboolean")
2337   (parameters
2338     '("GDateMonth" "month")
2339   )
2340 )
2341
2342 (define-function g_date_valid_year
2343   (c-name "g_date_valid_year")
2344   (return-type "gboolean")
2345   (parameters
2346     '("GDateYear" "year")
2347   )
2348 )
2349
2350 (define-function g_date_valid_weekday
2351   (c-name "g_date_valid_weekday")
2352   (return-type "gboolean")
2353   (parameters
2354     '("GDateWeekday" "weekday")
2355   )
2356 )
2357
2358 (define-function g_date_valid_julian
2359   (c-name "g_date_valid_julian")
2360   (return-type "gboolean")
2361   (parameters
2362     '("guint32" "julian_date")
2363   )
2364 )
2365
2366 (define-function g_date_valid_dmy
2367   (c-name "g_date_valid_dmy")
2368   (return-type "gboolean")
2369   (parameters
2370     '("GDateDay" "day")
2371     '("GDateMonth" "month")
2372     '("GDateYear" "year")
2373   )
2374 )
2375
2376 (define-method get_weekday
2377   (of-object "GDate")
2378   (c-name "g_date_get_weekday")
2379   (return-type "GDateWeekday")
2380 )
2381
2382 (define-method get_month
2383   (of-object "GDate")
2384   (c-name "g_date_get_month")
2385   (return-type "GDateMonth")
2386 )
2387
2388 (define-method get_year
2389   (of-object "GDate")
2390   (c-name "g_date_get_year")
2391   (return-type "GDateYear")
2392 )
2393
2394 (define-method get_day
2395   (of-object "GDate")
2396   (c-name "g_date_get_day")
2397   (return-type "GDateDay")
2398 )
2399
2400 (define-method get_julian
2401   (of-object "GDate")
2402   (c-name "g_date_get_julian")
2403   (return-type "guint32")
2404 )
2405
2406 (define-method get_day_of_year
2407   (of-object "GDate")
2408   (c-name "g_date_get_day_of_year")
2409   (return-type "guint")
2410 )
2411
2412 (define-method get_monday_week_of_year
2413   (of-object "GDate")
2414   (c-name "g_date_get_monday_week_of_year")
2415   (return-type "guint")
2416 )
2417
2418 (define-method get_sunday_week_of_year
2419   (of-object "GDate")
2420   (c-name "g_date_get_sunday_week_of_year")
2421   (return-type "guint")
2422 )
2423
2424 (define-method get_iso8601_week_of_year
2425   (of-object "GDate")
2426   (c-name "g_date_get_iso8601_week_of_year")
2427   (return-type "guint")
2428 )
2429
2430 (define-method clear
2431   (of-object "GDate")
2432   (c-name "g_date_clear")
2433   (return-type "none")
2434   (parameters
2435     '("guint" "n_dates")
2436   )
2437 )
2438
2439 (define-method set_parse
2440   (of-object "GDate")
2441   (c-name "g_date_set_parse")
2442   (return-type "none")
2443   (parameters
2444     '("const-gchar*" "str")
2445   )
2446 )
2447
2448 (define-method set_time_t
2449   (of-object "GDate")
2450   (c-name "g_date_set_time_t")
2451   (return-type "none")
2452   (parameters
2453     '("time_t" "timet")
2454   )
2455 )
2456
2457 (define-method set_time_val
2458   (of-object "GDate")
2459   (c-name "g_date_set_time_val")
2460   (return-type "none")
2461   (parameters
2462     '("GTimeVal*" "timeval")
2463   )
2464 )
2465
2466 (define-method set_time
2467   (of-object "GDate")
2468   (c-name "g_date_set_time")
2469   (return-type "none")
2470   (parameters
2471     '("GTime" "time_")
2472   )
2473 )
2474
2475 (define-method set_month
2476   (of-object "GDate")
2477   (c-name "g_date_set_month")
2478   (return-type "none")
2479   (parameters
2480     '("GDateMonth" "month")
2481   )
2482 )
2483
2484 (define-method set_day
2485   (of-object "GDate")
2486   (c-name "g_date_set_day")
2487   (return-type "none")
2488   (parameters
2489     '("GDateDay" "day")
2490   )
2491 )
2492
2493 (define-method set_year
2494   (of-object "GDate")
2495   (c-name "g_date_set_year")
2496   (return-type "none")
2497   (parameters
2498     '("GDateYear" "year")
2499   )
2500 )
2501
2502 (define-method set_dmy
2503   (of-object "GDate")
2504   (c-name "g_date_set_dmy")
2505   (return-type "none")
2506   (parameters
2507     '("GDateDay" "day")
2508     '("GDateMonth" "month")
2509     '("GDateYear" "y")
2510   )
2511 )
2512
2513 (define-method set_julian
2514   (of-object "GDate")
2515   (c-name "g_date_set_julian")
2516   (return-type "none")
2517   (parameters
2518     '("guint32" "julian_date")
2519   )
2520 )
2521
2522 (define-method is_first_of_month
2523   (of-object "GDate")
2524   (c-name "g_date_is_first_of_month")
2525   (return-type "gboolean")
2526 )
2527
2528 (define-method is_last_of_month
2529   (of-object "GDate")
2530   (c-name "g_date_is_last_of_month")
2531   (return-type "gboolean")
2532 )
2533
2534 (define-method add_days
2535   (of-object "GDate")
2536   (c-name "g_date_add_days")
2537   (return-type "none")
2538   (parameters
2539     '("guint" "n_days")
2540   )
2541 )
2542
2543 (define-method subtract_days
2544   (of-object "GDate")
2545   (c-name "g_date_subtract_days")
2546   (return-type "none")
2547   (parameters
2548     '("guint" "n_days")
2549   )
2550 )
2551
2552 (define-method add_months
2553   (of-object "GDate")
2554   (c-name "g_date_add_months")
2555   (return-type "none")
2556   (parameters
2557     '("guint" "n_months")
2558   )
2559 )
2560
2561 (define-method subtract_months
2562   (of-object "GDate")
2563   (c-name "g_date_subtract_months")
2564   (return-type "none")
2565   (parameters
2566     '("guint" "n_months")
2567   )
2568 )
2569
2570 (define-method add_years
2571   (of-object "GDate")
2572   (c-name "g_date_add_years")
2573   (return-type "none")
2574   (parameters
2575     '("guint" "n_years")
2576   )
2577 )
2578
2579 (define-method subtract_years
2580   (of-object "GDate")
2581   (c-name "g_date_subtract_years")
2582   (return-type "none")
2583   (parameters
2584     '("guint" "n_years")
2585   )
2586 )
2587
2588 (define-function g_date_is_leap_year
2589   (c-name "g_date_is_leap_year")
2590   (return-type "gboolean")
2591   (parameters
2592     '("GDateYear" "year")
2593   )
2594 )
2595
2596 (define-function g_date_get_days_in_month
2597   (c-name "g_date_get_days_in_month")
2598   (return-type "guint8")
2599   (parameters
2600     '("GDateMonth" "month")
2601     '("GDateYear" "year")
2602   )
2603 )
2604
2605 (define-function g_date_get_monday_weeks_in_year
2606   (c-name "g_date_get_monday_weeks_in_year")
2607   (return-type "guint8")
2608   (parameters
2609     '("GDateYear" "year")
2610   )
2611 )
2612
2613 (define-function g_date_get_sunday_weeks_in_year
2614   (c-name "g_date_get_sunday_weeks_in_year")
2615   (return-type "guint8")
2616   (parameters
2617     '("GDateYear" "year")
2618   )
2619 )
2620
2621 (define-method days_between
2622   (of-object "GDate")
2623   (c-name "g_date_days_between")
2624   (return-type "gint")
2625   (parameters
2626     '("const-GDate*" "date2")
2627   )
2628 )
2629
2630 (define-method compare
2631   (of-object "GDate")
2632   (c-name "g_date_compare")
2633   (return-type "gint")
2634   (parameters
2635     '("const-GDate*" "rhs")
2636   )
2637 )
2638
2639 (define-method to_struct_tm
2640   (of-object "GDate")
2641   (c-name "g_date_to_struct_tm")
2642   (return-type "none")
2643   (parameters
2644     '("struct-tm*" "tm")
2645   )
2646 )
2647
2648 (define-method clamp
2649   (of-object "GDate")
2650   (c-name "g_date_clamp")
2651   (return-type "none")
2652   (parameters
2653     '("const-GDate*" "min_date")
2654     '("const-GDate*" "max_date")
2655   )
2656 )
2657
2658 (define-method order
2659   (of-object "GDate")
2660   (c-name "g_date_order")
2661   (return-type "none")
2662   (parameters
2663     '("GDate*" "date2")
2664   )
2665 )
2666
2667 (define-function g_date_strftime
2668   (c-name "g_date_strftime")
2669   (return-type "gsize")
2670   (parameters
2671     '("gchar*" "s")
2672     '("gsize" "slen")
2673     '("const-gchar*" "format")
2674     '("const-GDate*" "date")
2675   )
2676 )
2677
2678
2679
2680 ;; From gdebug.h
2681
2682
2683
2684 ;; From gdir.h
2685
2686 (define-function g_dir_open
2687   (c-name "g_dir_open")
2688   (return-type "GDir*")
2689   (parameters
2690     '("const-gchar*" "path")
2691     '("guint" "flags")
2692     '("GError**" "error")
2693   )
2694 )
2695
2696 (define-method read_name
2697   (of-object "GDir")
2698   (c-name "g_dir_read_name")
2699   (return-type "const-gchar*")
2700 )
2701
2702 (define-method rewind
2703   (of-object "GDir")
2704   (c-name "g_dir_rewind")
2705   (return-type "none")
2706 )
2707
2708 (define-method close
2709   (of-object "GDir")
2710   (c-name "g_dir_close")
2711   (return-type "none")
2712 )
2713
2714
2715
2716 ;; From gerror.h
2717
2718 (define-function g_error_new
2719   (c-name "g_error_new")
2720   (is-constructor-of "GError")
2721   (return-type "GError*")
2722   (parameters
2723     '("GQuark" "domain")
2724     '("gint" "code")
2725     '("const-gchar*" "format")
2726   )
2727   (varargs #t)
2728 )
2729
2730 (define-function g_error_new_literal
2731   (c-name "g_error_new_literal")
2732   (return-type "GError*")
2733   (parameters
2734     '("GQuark" "domain")
2735     '("gint" "code")
2736     '("const-gchar*" "message")
2737   )
2738 )
2739
2740 (define-method free
2741   (of-object "GError")
2742   (c-name "g_error_free")
2743   (return-type "none")
2744 )
2745
2746 (define-method copy
2747   (of-object "GError")
2748   (c-name "g_error_copy")
2749   (return-type "GError*")
2750 )
2751
2752 (define-method matches
2753   (of-object "GError")
2754   (c-name "g_error_matches")
2755   (return-type "gboolean")
2756   (parameters
2757     '("GQuark" "domain")
2758     '("gint" "code")
2759   )
2760 )
2761
2762 (define-function g_set_error
2763   (c-name "g_set_error")
2764   (return-type "none")
2765   (parameters
2766     '("GError**" "err")
2767     '("GQuark" "domain")
2768     '("gint" "code")
2769     '("const-gchar*" "format")
2770   )
2771   (varargs #t)
2772 )
2773
2774 (define-function g_propagate_error
2775   (c-name "g_propagate_error")
2776   (return-type "none")
2777   (parameters
2778     '("GError**" "dest")
2779     '("GError*" "src")
2780   )
2781 )
2782
2783 (define-function g_clear_error
2784   (c-name "g_clear_error")
2785   (return-type "none")
2786   (parameters
2787     '("GError**" "err")
2788   )
2789 )
2790
2791
2792
2793 ;; From gfileutils.h
2794
2795 (define-function g_file_error_quark
2796   (c-name "g_file_error_quark")
2797   (return-type "GQuark")
2798 )
2799
2800 (define-function g_file_error_from_errno
2801   (c-name "g_file_error_from_errno")
2802   (return-type "GFileError")
2803   (parameters
2804     '("gint" "err_no")
2805   )
2806 )
2807
2808 (define-function g_file_test
2809   (c-name "g_file_test")
2810   (return-type "gboolean")
2811   (parameters
2812     '("const-gchar*" "filename")
2813     '("GFileTest" "test")
2814   )
2815 )
2816
2817 (define-function g_file_get_contents
2818   (c-name "g_file_get_contents")
2819   (return-type "gboolean")
2820   (parameters
2821     '("const-gchar*" "filename")
2822     '("gchar**" "contents")
2823     '("gsize*" "length")
2824     '("GError**" "error")
2825   )
2826 )
2827
2828 (define-function g_file_set_contents
2829   (c-name "g_file_set_contents")
2830   (return-type "gboolean")
2831   (parameters
2832     '("const-gchar*" "filename")
2833     '("const-gchar*" "contents")
2834     '("gssize" "length")
2835     '("GError**" "error")
2836   )
2837 )
2838
2839 (define-function g_file_read_link
2840   (c-name "g_file_read_link")
2841   (return-type "gchar*")
2842   (parameters
2843     '("const-gchar*" "filename")
2844     '("GError**" "error")
2845   )
2846 )
2847
2848 (define-function g_mkstemp
2849   (c-name "g_mkstemp")
2850   (return-type "gint")
2851   (parameters
2852     '("gchar*" "tmpl")
2853   )
2854 )
2855
2856 (define-function g_file_open_tmp
2857   (c-name "g_file_open_tmp")
2858   (return-type "gint")
2859   (parameters
2860     '("const-gchar*" "tmpl")
2861     '("gchar**" "name_used")
2862     '("GError**" "error")
2863   )
2864 )
2865
2866 (define-function g_build_path
2867   (c-name "g_build_path")
2868   (return-type "gchar*")
2869   (parameters
2870     '("const-gchar*" "separator")
2871     '("const-gchar*" "first_element")
2872   )
2873   (varargs #t)
2874 )
2875
2876 (define-function g_build_pathv
2877   (c-name "g_build_pathv")
2878   (return-type "gchar*")
2879   (parameters
2880     '("const-gchar*" "separator")
2881     '("gchar**" "args")
2882   )
2883 )
2884
2885 (define-function g_build_filename
2886   (c-name "g_build_filename")
2887   (return-type "gchar*")
2888   (parameters
2889     '("const-gchar*" "first_element")
2890   )
2891   (varargs #t)
2892 )
2893
2894 (define-function g_build_filenamev
2895   (c-name "g_build_filenamev")
2896   (return-type "gchar*")
2897   (parameters
2898     '("gchar**" "args")
2899   )
2900 )
2901
2902 (define-function g_mkdir_with_parents
2903   (c-name "g_mkdir_with_parents")
2904   (return-type "int")
2905   (parameters
2906     '("const-gchar*" "pathname")
2907     '("int" "mode")
2908   )
2909 )
2910
2911
2912
2913 ;; From ghash.h
2914
2915 (define-function g_hash_table_new
2916   (c-name "g_hash_table_new")
2917   (is-constructor-of "GHashTable")
2918   (return-type "GHashTable*")
2919   (parameters
2920     '("GHashFunc" "hash_func")
2921     '("GEqualFunc" "key_equal_func")
2922   )
2923 )
2924
2925 (define-function g_hash_table_new_full
2926   (c-name "g_hash_table_new_full")
2927   (return-type "GHashTable*")
2928   (parameters
2929     '("GHashFunc" "hash_func")
2930     '("GEqualFunc" "key_equal_func")
2931     '("GDestroyNotify" "key_destroy_func")
2932     '("GDestroyNotify" "value_destroy_func")
2933   )
2934 )
2935
2936 (define-method destroy
2937   (of-object "GHashTable")
2938   (c-name "g_hash_table_destroy")
2939   (return-type "none")
2940 )
2941
2942 (define-method insert
2943   (of-object "GHashTable")
2944   (c-name "g_hash_table_insert")
2945   (return-type "none")
2946   (parameters
2947     '("gpointer" "key")
2948     '("gpointer" "value")
2949   )
2950 )
2951
2952 (define-method replace
2953   (of-object "GHashTable")
2954   (c-name "g_hash_table_replace")
2955   (return-type "none")
2956   (parameters
2957     '("gpointer" "key")
2958     '("gpointer" "value")
2959   )
2960 )
2961
2962 (define-method remove
2963   (of-object "GHashTable")
2964   (c-name "g_hash_table_remove")
2965   (return-type "gboolean")
2966   (parameters
2967     '("gconstpointer" "key")
2968   )
2969 )
2970
2971 (define-method remove_all
2972   (of-object "GHashTable")
2973   (c-name "g_hash_table_remove_all")
2974   (return-type "none")
2975 )
2976
2977 (define-method steal
2978   (of-object "GHashTable")
2979   (c-name "g_hash_table_steal")
2980   (return-type "gboolean")
2981   (parameters
2982     '("gconstpointer" "key")
2983   )
2984 )
2985
2986 (define-method steal_all
2987   (of-object "GHashTable")
2988   (c-name "g_hash_table_steal_all")
2989   (return-type "none")
2990 )
2991
2992 (define-method lookup
2993   (of-object "GHashTable")
2994   (c-name "g_hash_table_lookup")
2995   (return-type "gpointer")
2996   (parameters
2997     '("gconstpointer" "key")
2998   )
2999 )
3000
3001 (define-method lookup_extended
3002   (of-object "GHashTable")
3003   (c-name "g_hash_table_lookup_extended")
3004   (return-type "gboolean")
3005   (parameters
3006     '("gconstpointer" "lookup_key")
3007     '("gpointer*" "orig_key")
3008     '("gpointer*" "value")
3009   )
3010 )
3011
3012 (define-method foreach
3013   (of-object "GHashTable")
3014   (c-name "g_hash_table_foreach")
3015   (return-type "none")
3016   (parameters
3017     '("GHFunc" "func")
3018     '("gpointer" "user_data")
3019   )
3020 )
3021
3022 (define-method find
3023   (of-object "GHashTable")
3024   (c-name "g_hash_table_find")
3025   (return-type "gpointer")
3026   (parameters
3027     '("GHRFunc" "predicate")
3028     '("gpointer" "user_data")
3029   )
3030 )
3031
3032 (define-method foreach_remove
3033   (of-object "GHashTable")
3034   (c-name "g_hash_table_foreach_remove")
3035   (return-type "guint")
3036   (parameters
3037     '("GHRFunc" "func")
3038     '("gpointer" "user_data")
3039   )
3040 )
3041
3042 (define-method foreach_steal
3043   (of-object "GHashTable")
3044   (c-name "g_hash_table_foreach_steal")
3045   (return-type "guint")
3046   (parameters
3047     '("GHRFunc" "func")
3048     '("gpointer" "user_data")
3049   )
3050 )
3051
3052 (define-method size
3053   (of-object "GHashTable")
3054   (c-name "g_hash_table_size")
3055   (return-type "guint")
3056 )
3057
3058 (define-method get_keys
3059   (of-object "GHashTable")
3060   (c-name "g_hash_table_get_keys")
3061   (return-type "GList*")
3062 )
3063
3064 (define-method get_values
3065   (of-object "GHashTable")
3066   (c-name "g_hash_table_get_values")
3067   (return-type "GList*")
3068 )
3069
3070 (define-method ref
3071   (of-object "GHashTable")
3072   (c-name "g_hash_table_ref")
3073   (return-type "GHashTable*")
3074 )
3075
3076 (define-method unref
3077   (of-object "GHashTable")
3078   (c-name "g_hash_table_unref")
3079   (return-type "none")
3080 )
3081
3082 (define-function g_str_equal
3083   (c-name "g_str_equal")
3084   (return-type "gboolean")
3085   (parameters
3086     '("gconstpointer" "v1")
3087     '("gconstpointer" "v2")
3088   )
3089 )
3090
3091 (define-function g_str_hash
3092   (c-name "g_str_hash")
3093   (return-type "guint")
3094   (parameters
3095     '("gconstpointer" "v")
3096   )
3097 )
3098
3099 (define-function g_int_equal
3100   (c-name "g_int_equal")
3101   (return-type "gboolean")
3102   (parameters
3103     '("gconstpointer" "v1")
3104     '("gconstpointer" "v2")
3105   )
3106 )
3107
3108 (define-function g_int_hash
3109   (c-name "g_int_hash")
3110   (return-type "guint")
3111   (parameters
3112     '("gconstpointer" "v")
3113   )
3114 )
3115
3116 (define-function g_direct_hash
3117   (c-name "g_direct_hash")
3118   (return-type "guint")
3119   (parameters
3120     '("gconstpointer" "v")
3121   )
3122 )
3123
3124 (define-function g_direct_equal
3125   (c-name "g_direct_equal")
3126   (return-type "gboolean")
3127   (parameters
3128     '("gconstpointer" "v1")
3129     '("gconstpointer" "v2")
3130   )
3131 )
3132
3133
3134
3135 ;; From ghook.h
3136
3137 (define-method init
3138   (of-object "GHookList")
3139   (c-name "g_hook_list_init")
3140   (return-type "none")
3141   (parameters
3142     '("guint" "hook_size")
3143   )
3144 )
3145
3146 (define-method clear
3147   (of-object "GHookList")
3148   (c-name "g_hook_list_clear")
3149   (return-type "none")
3150 )
3151
3152 (define-function g_hook_alloc
3153   (c-name "g_hook_alloc")
3154   (return-type "GHook*")
3155   (parameters
3156     '("GHookList*" "hook_list")
3157   )
3158 )
3159
3160 (define-function g_hook_free
3161   (c-name "g_hook_free")
3162   (return-type "none")
3163   (parameters
3164     '("GHookList*" "hook_list")
3165     '("GHook*" "hook")
3166   )
3167 )
3168
3169 (define-function g_hook_ref
3170   (c-name "g_hook_ref")
3171   (return-type "GHook*")
3172   (parameters
3173     '("GHookList*" "hook_list")
3174     '("GHook*" "hook")
3175   )
3176 )
3177
3178 (define-function g_hook_unref
3179   (c-name "g_hook_unref")
3180   (return-type "none")
3181   (parameters
3182     '("GHookList*" "hook_list")
3183     '("GHook*" "hook")
3184   )
3185 )
3186
3187 (define-function g_hook_destroy
3188   (c-name "g_hook_destroy")
3189   (return-type "gboolean")
3190   (parameters
3191     '("GHookList*" "hook_list")
3192     '("gulong" "hook_id")
3193   )
3194 )
3195
3196 (define-function g_hook_destroy_link
3197   (c-name "g_hook_destroy_link")
3198   (return-type "none")
3199   (parameters
3200     '("GHookList*" "hook_list")
3201     '("GHook*" "hook")
3202   )
3203 )
3204
3205 (define-function g_hook_prepend
3206   (c-name "g_hook_prepend")
3207   (return-type "none")
3208   (parameters
3209     '("GHookList*" "hook_list")
3210     '("GHook*" "hook")
3211   )
3212 )
3213
3214 (define-function g_hook_insert_before
3215   (c-name "g_hook_insert_before")
3216   (return-type "none")
3217   (parameters
3218     '("GHookList*" "hook_list")
3219     '("GHook*" "sibling")
3220     '("GHook*" "hook")
3221   )
3222 )
3223
3224 (define-function g_hook_insert_sorted
3225   (c-name "g_hook_insert_sorted")
3226   (return-type "none")
3227   (parameters
3228     '("GHookList*" "hook_list")
3229     '("GHook*" "hook")
3230     '("GHookCompareFunc" "func")
3231   )
3232 )
3233
3234 (define-function g_hook_get
3235   (c-name "g_hook_get")
3236   (return-type "GHook*")
3237   (parameters
3238     '("GHookList*" "hook_list")
3239     '("gulong" "hook_id")
3240   )
3241 )
3242
3243 (define-function g_hook_find
3244   (c-name "g_hook_find")
3245   (return-type "GHook*")
3246   (parameters
3247     '("GHookList*" "hook_list")
3248     '("gboolean" "need_valids")
3249     '("GHookFindFunc" "func")
3250     '("gpointer" "data")
3251   )
3252 )
3253
3254 (define-function g_hook_find_data
3255   (c-name "g_hook_find_data")
3256   (return-type "GHook*")
3257   (parameters
3258     '("GHookList*" "hook_list")
3259     '("gboolean" "need_valids")
3260     '("gpointer" "data")
3261   )
3262 )
3263
3264 (define-function g_hook_find_func
3265   (c-name "g_hook_find_func")
3266   (return-type "GHook*")
3267   (parameters
3268     '("GHookList*" "hook_list")
3269     '("gboolean" "need_valids")
3270     '("gpointer" "func")
3271   )
3272 )
3273
3274 (define-function g_hook_find_func_data
3275   (c-name "g_hook_find_func_data")
3276   (return-type "GHook*")
3277   (parameters
3278     '("GHookList*" "hook_list")
3279     '("gboolean" "need_valids")
3280     '("gpointer" "func")
3281     '("gpointer" "data")
3282   )
3283 )
3284
3285 (define-function g_hook_first_valid
3286   (c-name "g_hook_first_valid")
3287   (return-type "GHook*")
3288   (parameters
3289     '("GHookList*" "hook_list")
3290     '("gboolean" "may_be_in_call")
3291   )
3292 )
3293
3294 (define-function g_hook_next_valid
3295   (c-name "g_hook_next_valid")
3296   (return-type "GHook*")
3297   (parameters
3298     '("GHookList*" "hook_list")
3299     '("GHook*" "hook")
3300     '("gboolean" "may_be_in_call")
3301   )
3302 )
3303
3304 (define-method compare_ids
3305   (of-object "GHook")
3306   (c-name "g_hook_compare_ids")
3307   (return-type "gint")
3308   (parameters
3309     '("GHook*" "sibling")
3310   )
3311 )
3312
3313 (define-method invoke
3314   (of-object "GHookList")
3315   (c-name "g_hook_list_invoke")
3316   (return-type "none")
3317   (parameters
3318     '("gboolean" "may_recurse")
3319   )
3320 )
3321
3322 (define-method invoke_check
3323   (of-object "GHookList")
3324   (c-name "g_hook_list_invoke_check")
3325   (return-type "none")
3326   (parameters
3327     '("gboolean" "may_recurse")
3328   )
3329 )
3330
3331 (define-method marshal
3332   (of-object "GHookList")
3333   (c-name "g_hook_list_marshal")
3334   (return-type "none")
3335   (parameters
3336     '("gboolean" "may_recurse")
3337     '("GHookMarshaller" "marshaller")
3338     '("gpointer" "marshal_data")
3339   )
3340 )
3341
3342 (define-method marshal_check
3343   (of-object "GHookList")
3344   (c-name "g_hook_list_marshal_check")
3345   (return-type "none")
3346   (parameters
3347     '("gboolean" "may_recurse")
3348     '("GHookCheckMarshaller" "marshaller")
3349     '("gpointer" "marshal_data")
3350   )
3351 )
3352
3353
3354
3355 ;; From gi18n.h
3356
3357
3358
3359 ;; From gi18n-lib.h
3360
3361
3362
3363 ;; From giochannel.h
3364
3365 (define-method init
3366   (of-object "GIOChannel")
3367   (c-name "g_io_channel_init")
3368   (return-type "none")
3369 )
3370
3371 (define-method ref
3372   (of-object "GIOChannel")
3373   (c-name "g_io_channel_ref")
3374   (return-type "GIOChannel*")
3375 )
3376
3377 (define-method unref
3378   (of-object "GIOChannel")
3379   (c-name "g_io_channel_unref")
3380   (return-type "none")
3381 )
3382
3383 (define-method read
3384   (of-object "GIOChannel")
3385   (c-name "g_io_channel_read")
3386   (return-type "GIOError")
3387   (parameters
3388     '("gchar*" "buf")
3389     '("gsize" "count")
3390     '("gsize*" "bytes_read")
3391   )
3392 )
3393
3394 (define-method write
3395   (of-object "GIOChannel")
3396   (c-name "g_io_channel_write")
3397   (return-type "GIOError")
3398   (parameters
3399     '("const-gchar*" "buf")
3400     '("gsize" "count")
3401     '("gsize*" "bytes_written")
3402   )
3403 )
3404
3405 (define-method seek
3406   (of-object "GIOChannel")
3407   (c-name "g_io_channel_seek")
3408   (return-type "GIOError")
3409   (parameters
3410     '("gint64" "offset")
3411     '("GSeekType" "type")
3412   )
3413 )
3414
3415 (define-method close
3416   (of-object "GIOChannel")
3417   (c-name "g_io_channel_close")
3418   (return-type "none")
3419 )
3420
3421 (define-method shutdown
3422   (of-object "GIOChannel")
3423   (c-name "g_io_channel_shutdown")
3424   (return-type "GIOStatus")
3425   (parameters
3426     '("gboolean" "flush")
3427     '("GError**" "err")
3428   )
3429 )
3430
3431 (define-function g_io_add_watch_full
3432   (c-name "g_io_add_watch_full")
3433   (return-type "guint")
3434   (parameters
3435     '("GIOChannel*" "channel")
3436     '("gint" "priority")
3437     '("GIOCondition" "condition")
3438     '("GIOFunc" "func")
3439     '("gpointer" "user_data")
3440     '("GDestroyNotify" "notify")
3441   )
3442 )
3443
3444 (define-function g_io_create_watch
3445   (c-name "g_io_create_watch")
3446   (return-type "GSource*")
3447   (parameters
3448     '("GIOChannel*" "channel")
3449     '("GIOCondition" "condition")
3450   )
3451 )
3452
3453 (define-function g_io_add_watch
3454   (c-name "g_io_add_watch")
3455   (return-type "guint")
3456   (parameters
3457     '("GIOChannel*" "channel")
3458     '("GIOCondition" "condition")
3459     '("GIOFunc" "func")
3460     '("gpointer" "user_data")
3461   )
3462 )
3463
3464 (define-method set_buffer_size
3465   (of-object "GIOChannel")
3466   (c-name "g_io_channel_set_buffer_size")
3467   (return-type "none")
3468   (parameters
3469     '("gsize" "size")
3470   )
3471 )
3472
3473 (define-method get_buffer_size
3474   (of-object "GIOChannel")
3475   (c-name "g_io_channel_get_buffer_size")
3476   (return-type "gsize")
3477 )
3478
3479 (define-method get_buffer_condition
3480   (of-object "GIOChannel")
3481   (c-name "g_io_channel_get_buffer_condition")
3482   (return-type "GIOCondition")
3483 )
3484
3485 (define-method set_flags
3486   (of-object "GIOChannel")
3487   (c-name "g_io_channel_set_flags")
3488   (return-type "GIOStatus")
3489   (parameters
3490     '("GIOFlags" "flags")
3491     '("GError**" "error")
3492   )
3493 )
3494
3495 (define-method get_flags
3496   (of-object "GIOChannel")
3497   (c-name "g_io_channel_get_flags")
3498   (return-type "GIOFlags")
3499 )
3500
3501 (define-method set_line_term
3502   (of-object "GIOChannel")
3503   (c-name "g_io_channel_set_line_term")
3504   (return-type "none")
3505   (parameters
3506     '("const-gchar*" "line_term")
3507     '("gint" "length")
3508   )
3509 )
3510
3511 (define-method get_line_term
3512   (of-object "GIOChannel")
3513   (c-name "g_io_channel_get_line_term")
3514   (return-type "const-gchar*")
3515   (parameters
3516     '("gint*" "length")
3517   )
3518 )
3519
3520 (define-method set_buffered
3521   (of-object "GIOChannel")
3522   (c-name "g_io_channel_set_buffered")
3523   (return-type "none")
3524   (parameters
3525     '("gboolean" "buffered")
3526   )
3527 )
3528
3529 (define-method get_buffered
3530   (of-object "GIOChannel")
3531   (c-name "g_io_channel_get_buffered")
3532   (return-type "gboolean")
3533 )
3534
3535 (define-method set_encoding
3536   (of-object "GIOChannel")
3537   (c-name "g_io_channel_set_encoding")
3538   (return-type "GIOStatus")
3539   (parameters
3540     '("const-gchar*" "encoding")
3541     '("GError**" "error")
3542   )
3543 )
3544
3545 (define-method get_encoding
3546   (of-object "GIOChannel")
3547   (c-name "g_io_channel_get_encoding")
3548   (return-type "const-gchar*")
3549 )
3550
3551 (define-method set_close_on_unref
3552   (of-object "GIOChannel")
3553   (c-name "g_io_channel_set_close_on_unref")
3554   (return-type "none")
3555   (parameters
3556     '("gboolean" "do_close")
3557   )
3558 )
3559
3560 (define-method get_close_on_unref
3561   (of-object "GIOChannel")
3562   (c-name "g_io_channel_get_close_on_unref")
3563   (return-type "gboolean")
3564 )
3565
3566 (define-method flush
3567   (of-object "GIOChannel")
3568   (c-name "g_io_channel_flush")
3569   (return-type "GIOStatus")
3570   (parameters
3571     '("GError**" "error")
3572   )
3573 )
3574
3575 (define-method read_line
3576   (of-object "GIOChannel")
3577   (c-name "g_io_channel_read_line")
3578   (return-type "GIOStatus")
3579   (parameters
3580     '("gchar**" "str_return")
3581     '("gsize*" "length")
3582     '("gsize*" "terminator_pos")
3583     '("GError**" "error")
3584   )
3585 )
3586
3587 (define-method read_line_string
3588   (of-object "GIOChannel")
3589   (c-name "g_io_channel_read_line_string")
3590   (return-type "GIOStatus")
3591   (parameters
3592     '("GString*" "buffer")
3593     '("gsize*" "terminator_pos")
3594     '("GError**" "error")
3595   )
3596 )
3597
3598 (define-method read_to_end
3599   (of-object "GIOChannel")
3600   (c-name "g_io_channel_read_to_end")
3601   (return-type "GIOStatus")
3602   (parameters
3603     '("gchar**" "str_return")
3604     '("gsize*" "length")
3605     '("GError**" "error")
3606   )
3607 )
3608
3609 (define-method read_chars
3610   (of-object "GIOChannel")
3611   (c-name "g_io_channel_read_chars")
3612   (return-type "GIOStatus")
3613   (parameters
3614     '("gchar*" "buf")
3615     '("gsize" "count")
3616     '("gsize*" "bytes_read")
3617     '("GError**" "error")
3618   )
3619 )
3620
3621 (define-method read_unichar
3622   (of-object "GIOChannel")
3623   (c-name "g_io_channel_read_unichar")
3624   (return-type "GIOStatus")
3625   (parameters
3626     '("gunichar*" "thechar")
3627     '("GError**" "error")
3628   )
3629 )
3630
3631 (define-method write_chars
3632   (of-object "GIOChannel")
3633   (c-name "g_io_channel_write_chars")
3634   (return-type "GIOStatus")
3635   (parameters
3636     '("const-gchar*" "buf")
3637     '("gssize" "count")
3638     '("gsize*" "bytes_written")
3639     '("GError**" "error")
3640   )
3641 )
3642
3643 (define-method write_unichar
3644   (of-object "GIOChannel")
3645   (c-name "g_io_channel_write_unichar")
3646   (return-type "GIOStatus")
3647   (parameters
3648     '("gunichar" "thechar")
3649     '("GError**" "error")
3650   )
3651 )
3652
3653 (define-method seek_position
3654   (of-object "GIOChannel")
3655   (c-name "g_io_channel_seek_position")
3656   (return-type "GIOStatus")
3657   (parameters
3658     '("gint64" "offset")
3659     '("GSeekType" "type")
3660     '("GError**" "error")
3661   )
3662 )
3663
3664 (define-function g_io_channel_new_file
3665   (c-name "g_io_channel_new_file")
3666   (return-type "GIOChannel*")
3667   (parameters
3668     '("const-gchar*" "filename")
3669     '("const-gchar*" "mode")
3670     '("GError**" "error")
3671   )
3672 )
3673
3674 (define-function g_io_channel_error_quark
3675   (c-name "g_io_channel_error_quark")
3676   (return-type "GQuark")
3677 )
3678
3679 (define-function g_io_channel_error_from_errno
3680   (c-name "g_io_channel_error_from_errno")
3681   (return-type "GIOChannelError")
3682   (parameters
3683     '("gint" "en")
3684   )
3685 )
3686
3687 (define-function g_io_channel_unix_new
3688   (c-name "g_io_channel_unix_new")
3689   (is-constructor-of "GIoChannelUnix")
3690   (return-type "GIOChannel*")
3691   (parameters
3692     '("int" "fd")
3693   )
3694 )
3695
3696 (define-method unix_get_fd
3697   (of-object "GIOChannel")
3698   (c-name "g_io_channel_unix_get_fd")
3699   (return-type "gint")
3700 )
3701
3702 (define-method win32_make_pollfd
3703   (of-object "GIOChannel")
3704   (c-name "g_io_channel_win32_make_pollfd")
3705   (return-type "none")
3706   (parameters
3707     '("GIOCondition" "condition")
3708     '("GPollFD*" "fd")
3709   )
3710 )
3711
3712 (define-function g_io_channel_win32_poll
3713   (c-name "g_io_channel_win32_poll")
3714   (return-type "gint")
3715   (parameters
3716     '("GPollFD*" "fds")
3717     '("gint" "n_fds")
3718     '("gint" "timeout_")
3719   )
3720 )
3721
3722 (define-function g_io_channel_win32_new_messages
3723   (c-name "g_io_channel_win32_new_messages")
3724   (return-type "GIOChannel*")
3725   (parameters
3726     '("guint" "hwnd")
3727   )
3728 )
3729
3730 (define-function g_io_channel_win32_new_fd
3731   (c-name "g_io_channel_win32_new_fd")
3732   (return-type "GIOChannel*")
3733   (parameters
3734     '("gint" "fd")
3735   )
3736 )
3737
3738 (define-method win32_get_fd
3739   (of-object "GIOChannel")
3740   (c-name "g_io_channel_win32_get_fd")
3741   (return-type "gint")
3742 )
3743
3744 (define-function g_io_channel_win32_new_socket
3745   (c-name "g_io_channel_win32_new_socket")
3746   (return-type "GIOChannel*")
3747   (parameters
3748     '("gint" "socket")
3749   )
3750 )
3751
3752
3753
3754 ;; From gkeyfile.h
3755
3756 (define-function g_key_file_error_quark
3757   (c-name "g_key_file_error_quark")
3758   (return-type "GQuark")
3759 )
3760
3761 (define-function g_key_file_new
3762   (c-name "g_key_file_new")
3763   (is-constructor-of "GKeyFile")
3764   (return-type "GKeyFile*")
3765 )
3766
3767 (define-method free
3768   (of-object "GKeyFile")
3769   (c-name "g_key_file_free")
3770   (return-type "none")
3771 )
3772
3773 (define-method set_list_separator
3774   (of-object "GKeyFile")
3775   (c-name "g_key_file_set_list_separator")
3776   (return-type "none")
3777   (parameters
3778     '("gchar" "separator")
3779   )
3780 )
3781
3782 (define-method load_from_file
3783   (of-object "GKeyFile")
3784   (c-name "g_key_file_load_from_file")
3785   (return-type "gboolean")
3786   (parameters
3787     '("const-gchar*" "file")
3788     '("GKeyFileFlags" "flags")
3789     '("GError**" "error")
3790   )
3791 )
3792
3793 (define-method load_from_data
3794   (of-object "GKeyFile")
3795   (c-name "g_key_file_load_from_data")
3796   (return-type "gboolean")
3797   (parameters
3798     '("const-gchar*" "data")
3799     '("gsize" "length")
3800     '("GKeyFileFlags" "flags")
3801     '("GError**" "error")
3802   )
3803 )
3804
3805 (define-method load_from_dirs
3806   (of-object "GKeyFile")
3807   (c-name "g_key_file_load_from_dirs")
3808   (return-type "gboolean")
3809   (parameters
3810     '("const-gchar*" "file")
3811     '("const-gchar**" "search_dirs")
3812     '("gchar**" "full_path")
3813     '("GKeyFileFlags" "flags")
3814     '("GError**" "error")
3815   )
3816 )
3817
3818 (define-method load_from_data_dirs
3819   (of-object "GKeyFile")
3820   (c-name "g_key_file_load_from_data_dirs")
3821   (return-type "gboolean")
3822   (parameters
3823     '("const-gchar*" "file")
3824     '("gchar**" "full_path")
3825     '("GKeyFileFlags" "flags")
3826     '("GError**" "error")
3827   )
3828 )
3829
3830 (define-method to_data
3831   (of-object "GKeyFile")
3832   (c-name "g_key_file_to_data")
3833   (return-type "gchar*")
3834   (parameters
3835     '("gsize*" "length")
3836     '("GError**" "error")
3837   )
3838 )
3839
3840 (define-method get_start_group
3841   (of-object "GKeyFile")
3842   (c-name "g_key_file_get_start_group")
3843   (return-type "gchar*")
3844 )
3845
3846 (define-method get_groups
3847   (of-object "GKeyFile")
3848   (c-name "g_key_file_get_groups")
3849   (return-type "gchar**")
3850   (parameters
3851     '("gsize*" "length")
3852   )
3853 )
3854
3855 (define-method get_keys
3856   (of-object "GKeyFile")
3857   (c-name "g_key_file_get_keys")
3858   (return-type "gchar**")
3859   (parameters
3860     '("const-gchar*" "group_name")
3861     '("gsize*" "length")
3862     '("GError**" "error")
3863   )
3864 )
3865
3866 (define-method has_group
3867   (of-object "GKeyFile")
3868   (c-name "g_key_file_has_group")
3869   (return-type "gboolean")
3870   (parameters
3871     '("const-gchar*" "group_name")
3872   )
3873 )
3874
3875 (define-method has_key
3876   (of-object "GKeyFile")
3877   (c-name "g_key_file_has_key")
3878   (return-type "gboolean")
3879   (parameters
3880     '("const-gchar*" "group_name")
3881     '("const-gchar*" "key")
3882     '("GError**" "error")
3883   )
3884 )
3885
3886 (define-method get_value
3887   (of-object "GKeyFile")
3888   (c-name "g_key_file_get_value")
3889   (return-type "gchar*")
3890   (parameters
3891     '("const-gchar*" "group_name")
3892     '("const-gchar*" "key")
3893     '("GError**" "error")
3894   )
3895 )
3896
3897 (define-method set_value
3898   (of-object "GKeyFile")
3899   (c-name "g_key_file_set_value")
3900   (return-type "none")
3901   (parameters
3902     '("const-gchar*" "group_name")
3903     '("const-gchar*" "key")
3904     '("const-gchar*" "value")
3905   )
3906 )
3907
3908 (define-method get_string
3909   (of-object "GKeyFile")
3910   (c-name "g_key_file_get_string")
3911   (return-type "gchar*")
3912   (parameters
3913     '("const-gchar*" "group_name")
3914     '("const-gchar*" "key")
3915     '("GError**" "error")
3916   )
3917 )
3918
3919 (define-method set_string
3920   (of-object "GKeyFile")
3921   (c-name "g_key_file_set_string")
3922   (return-type "none")
3923   (parameters
3924     '("const-gchar*" "group_name")
3925     '("const-gchar*" "key")
3926     '("const-gchar*" "string")
3927   )
3928 )
3929
3930 (define-method get_locale_string
3931   (of-object "GKeyFile")
3932   (c-name "g_key_file_get_locale_string")
3933   (return-type "gchar*")
3934   (parameters
3935     '("const-gchar*" "group_name")
3936     '("const-gchar*" "key")
3937     '("const-gchar*" "locale")
3938     '("GError**" "error")
3939   )
3940 )
3941
3942 (define-method set_locale_string
3943   (of-object "GKeyFile")
3944   (c-name "g_key_file_set_locale_string")
3945   (return-type "none")
3946   (parameters
3947     '("const-gchar*" "group_name")
3948     '("const-gchar*" "key")
3949     '("const-gchar*" "locale")
3950     '("const-gchar*" "string")
3951   )
3952 )
3953
3954 (define-method get_boolean
3955   (of-object "GKeyFile")
3956   (c-name "g_key_file_get_boolean")
3957   (return-type "gboolean")
3958   (parameters
3959     '("const-gchar*" "group_name")
3960     '("const-gchar*" "key")
3961     '("GError**" "error")
3962   )
3963 )
3964
3965 (define-method set_boolean
3966   (of-object "GKeyFile")
3967   (c-name "g_key_file_set_boolean")
3968   (return-type "none")
3969   (parameters
3970     '("const-gchar*" "group_name")
3971     '("const-gchar*" "key")
3972     '("gboolean" "value")
3973   )
3974 )
3975
3976 (define-method get_integer
3977   (of-object "GKeyFile")
3978   (c-name "g_key_file_get_integer")
3979   (return-type "gint")
3980   (parameters
3981     '("const-gchar*" "group_name")
3982     '("const-gchar*" "key")
3983     '("GError**" "error")
3984   )
3985 )
3986
3987 (define-method set_integer
3988   (of-object "GKeyFile")
3989   (c-name "g_key_file_set_integer")
3990   (return-type "none")
3991   (parameters
3992     '("const-gchar*" "group_name")
3993     '("const-gchar*" "key")
3994     '("gint" "value")
3995   )
3996 )
3997
3998 (define-method get_double
3999   (of-object "GKeyFile")
4000   (c-name "g_key_file_get_double")
4001   (return-type "gdouble")
4002   (parameters
4003     '("const-gchar*" "group_name")
4004     '("const-gchar*" "key")
4005     '("GError**" "error")
4006   )
4007 )
4008
4009 (define-method set_double
4010   (of-object "GKeyFile")
4011   (c-name "g_key_file_set_double")
4012   (return-type "none")
4013   (parameters
4014     '("const-gchar*" "group_name")
4015     '("const-gchar*" "key")
4016     '("gdouble" "value")
4017   )
4018 )
4019
4020 (define-method get_string_list
4021   (of-object "GKeyFile")
4022   (c-name "g_key_file_get_string_list")
4023   (return-type "gchar**")
4024   (parameters
4025     '("const-gchar*" "group_name")
4026     '("const-gchar*" "key")
4027     '("gsize*" "length")
4028     '("GError**" "error")
4029   )
4030 )
4031
4032 (define-method set_string_list
4033   (of-object "GKeyFile")
4034   (c-name "g_key_file_set_string_list")
4035   (return-type "none")
4036   (parameters
4037     '("const-gchar*" "group_name")
4038     '("const-gchar*" "key")
4039     '("const-gchar*-const[]" "list")
4040     '("gsize" "length")
4041   )
4042 )
4043
4044 (define-method get_locale_string_list
4045   (of-object "GKeyFile")
4046   (c-name "g_key_file_get_locale_string_list")
4047   (return-type "gchar**")
4048   (parameters
4049     '("const-gchar*" "group_name")
4050     '("const-gchar*" "key")
4051     '("const-gchar*" "locale")
4052     '("gsize*" "length")
4053     '("GError**" "error")
4054   )
4055 )
4056
4057 (define-method set_locale_string_list
4058   (of-object "GKeyFile")
4059   (c-name "g_key_file_set_locale_string_list")
4060   (return-type "none")
4061   (parameters
4062     '("const-gchar*" "group_name")
4063     '("const-gchar*" "key")
4064     '("const-gchar*" "locale")
4065     '("const-gchar*-const[]" "list")
4066     '("gsize" "length")
4067   )
4068 )
4069
4070 (define-method get_boolean_list
4071   (of-object "GKeyFile")
4072   (c-name "g_key_file_get_boolean_list")
4073   (return-type "gboolean*")
4074   (parameters
4075     '("const-gchar*" "group_name")
4076     '("const-gchar*" "key")
4077     '("gsize*" "length")
4078     '("GError**" "error")
4079   )
4080 )
4081
4082 (define-method set_boolean_list
4083   (of-object "GKeyFile")
4084   (c-name "g_key_file_set_boolean_list")
4085   (return-type "none")
4086   (parameters
4087     '("const-gchar*" "group_name")
4088     '("const-gchar*" "key")
4089     '("gboolean[]" "list")
4090     '("gsize" "length")
4091   )
4092 )
4093
4094 (define-method get_integer_list
4095   (of-object "GKeyFile")
4096   (c-name "g_key_file_get_integer_list")
4097   (return-type "gint*")
4098   (parameters
4099     '("const-gchar*" "group_name")
4100     '("const-gchar*" "key")
4101     '("gsize*" "length")
4102     '("GError**" "error")
4103   )
4104 )
4105
4106 (define-method set_double_list
4107   (of-object "GKeyFile")
4108   (c-name "g_key_file_set_double_list")
4109   (return-type "none")
4110   (parameters
4111     '("const-gchar*" "group_name")
4112     '("const-gchar*" "key")
4113     '("gdouble[]" "list")
4114     '("gsize" "length")
4115   )
4116 )
4117
4118 (define-method get_double_list
4119   (of-object "GKeyFile")
4120   (c-name "g_key_file_get_double_list")
4121   (return-type "gdouble*")
4122   (parameters
4123     '("const-gchar*" "group_name")
4124     '("const-gchar*" "key")
4125     '("gsize*" "length")
4126     '("GError**" "error")
4127   )
4128 )
4129
4130 (define-method set_integer_list
4131   (of-object "GKeyFile")
4132   (c-name "g_key_file_set_integer_list")
4133   (return-type "none")
4134   (parameters
4135     '("const-gchar*" "group_name")
4136     '("const-gchar*" "key")
4137     '("gint[]" "list")
4138     '("gsize" "length")
4139   )
4140 )
4141
4142 (define-method set_comment
4143   (of-object "GKeyFile")
4144   (c-name "g_key_file_set_comment")
4145   (return-type "none")
4146   (parameters
4147     '("const-gchar*" "group_name")
4148     '("const-gchar*" "key")
4149     '("const-gchar*" "comment")
4150     '("GError**" "error")
4151   )
4152 )
4153
4154 (define-method get_comment
4155   (of-object "GKeyFile")
4156   (c-name "g_key_file_get_comment")
4157   (return-type "gchar*")
4158   (parameters
4159     '("const-gchar*" "group_name")
4160     '("const-gchar*" "key")
4161     '("GError**" "error")
4162   )
4163 )
4164
4165 (define-method remove_comment
4166   (of-object "GKeyFile")
4167   (c-name "g_key_file_remove_comment")
4168   (return-type "none")
4169   (parameters
4170     '("const-gchar*" "group_name")
4171     '("const-gchar*" "key")
4172     '("GError**" "error")
4173   )
4174 )
4175
4176 (define-method remove_key
4177   (of-object "GKeyFile")
4178   (c-name "g_key_file_remove_key")
4179   (return-type "none")
4180   (parameters
4181     '("const-gchar*" "group_name")
4182     '("const-gchar*" "key")
4183     '("GError**" "error")
4184   )
4185 )
4186
4187 (define-method remove_group
4188   (of-object "GKeyFile")
4189   (c-name "g_key_file_remove_group")
4190   (return-type "none")
4191   (parameters
4192     '("const-gchar*" "group_name")
4193     '("GError**" "error")
4194   )
4195 )
4196
4197
4198
4199 ;; From glib.h
4200
4201
4202
4203 ;; From glibintl.h
4204
4205
4206
4207 ;; From glib-object.h
4208
4209
4210
4211 ;; From glist.h
4212
4213 (define-function g_list_alloc
4214   (c-name "g_list_alloc")
4215   (return-type "GList*")
4216 )
4217
4218 (define-method free
4219   (of-object "GList")
4220   (c-name "g_list_free")
4221   (return-type "none")
4222 )
4223
4224 (define-method free_1
4225   (of-object "GList")
4226   (c-name "g_list_free_1")
4227   (return-type "none")
4228 )
4229
4230 (define-method append
4231   (of-object "GList")
4232   (c-name "g_list_append")
4233   (return-type "GList*")
4234   (parameters
4235     '("gpointer" "data")
4236   )
4237 )
4238
4239 (define-method prepend
4240   (of-object "GList")
4241   (c-name "g_list_prepend")
4242   (return-type "GList*")
4243   (parameters
4244     '("gpointer" "data")
4245   )
4246 )
4247
4248 (define-method insert
4249   (of-object "GList")
4250   (c-name "g_list_insert")
4251   (return-type "GList*")
4252   (parameters
4253     '("gpointer" "data")
4254     '("gint" "position")
4255   )
4256 )
4257
4258 (define-method insert_sorted
4259   (of-object "GList")
4260   (c-name "g_list_insert_sorted")
4261   (return-type "GList*")
4262   (parameters
4263     '("gpointer" "data")
4264     '("GCompareFunc" "func")
4265   )
4266 )
4267
4268 (define-method insert_sorted_with_data
4269   (of-object "GList")
4270   (c-name "g_list_insert_sorted_with_data")
4271   (return-type "GList*")
4272   (parameters
4273     '("gpointer" "data")
4274     '("GCompareDataFunc" "func")
4275     '("gpointer" "user_data")
4276   )
4277 )
4278
4279 (define-method insert_before
4280   (of-object "GList")
4281   (c-name "g_list_insert_before")
4282   (return-type "GList*")
4283   (parameters
4284     '("GList*" "sibling")
4285     '("gpointer" "data")
4286   )
4287 )
4288
4289 (define-method concat
4290   (of-object "GList")
4291   (c-name "g_list_concat")
4292   (return-type "GList*")
4293   (parameters
4294     '("GList*" "list2")
4295   )
4296 )
4297
4298 (define-method remove
4299   (of-object "GList")
4300   (c-name "g_list_remove")
4301   (return-type "GList*")
4302   (parameters
4303     '("gconstpointer" "data")
4304   )
4305 )
4306
4307 (define-method remove_all
4308   (of-object "GList")
4309   (c-name "g_list_remove_all")
4310   (return-type "GList*")
4311   (parameters
4312     '("gconstpointer" "data")
4313   )
4314 )
4315
4316 (define-method remove_link
4317   (of-object "GList")
4318   (c-name "g_list_remove_link")
4319   (return-type "GList*")
4320   (parameters
4321     '("GList*" "llink")
4322   )
4323 )
4324
4325 (define-method delete_link
4326   (of-object "GList")
4327   (c-name "g_list_delete_link")
4328   (return-type "GList*")
4329   (parameters
4330     '("GList*" "link_")
4331   )
4332 )
4333
4334 (define-method reverse
4335   (of-object "GList")
4336   (c-name "g_list_reverse")
4337   (return-type "GList*")
4338 )
4339
4340 (define-method copy
4341   (of-object "GList")
4342   (c-name "g_list_copy")
4343   (return-type "GList*")
4344 )
4345
4346 (define-method nth
4347   (of-object "GList")
4348   (c-name "g_list_nth")
4349   (return-type "GList*")
4350   (parameters
4351     '("guint" "n")
4352   )
4353 )
4354
4355 (define-method nth_prev
4356   (of-object "GList")
4357   (c-name "g_list_nth_prev")
4358   (return-type "GList*")
4359   (parameters
4360     '("guint" "n")
4361   )
4362 )
4363
4364 (define-method find
4365   (of-object "GList")
4366   (c-name "g_list_find")
4367   (return-type "GList*")
4368   (parameters
4369     '("gconstpointer" "data")
4370   )
4371 )
4372
4373 (define-method find_custom
4374   (of-object "GList")
4375   (c-name "g_list_find_custom")
4376   (return-type "GList*")
4377   (parameters
4378     '("gconstpointer" "data")
4379     '("GCompareFunc" "func")
4380   )
4381 )
4382
4383 (define-method position
4384   (of-object "GList")
4385   (c-name "g_list_position")
4386   (return-type "gint")
4387   (parameters
4388     '("GList*" "llink")
4389   )
4390 )
4391
4392 (define-method index
4393   (of-object "GList")
4394   (c-name "g_list_index")
4395   (return-type "gint")
4396   (parameters
4397     '("gconstpointer" "data")
4398   )
4399 )
4400
4401 (define-method last
4402   (of-object "GList")
4403   (c-name "g_list_last")
4404   (return-type "GList*")
4405 )
4406
4407 (define-method first
4408   (of-object "GList")
4409   (c-name "g_list_first")
4410   (return-type "GList*")
4411 )
4412
4413 (define-method length
4414   (of-object "GList")
4415   (c-name "g_list_length")
4416   (return-type "guint")
4417 )
4418
4419 (define-method foreach
4420   (of-object "GList")
4421   (c-name "g_list_foreach")
4422   (return-type "none")
4423   (parameters
4424     '("GFunc" "func")
4425     '("gpointer" "user_data")
4426   )
4427 )
4428
4429 (define-method sort
4430   (of-object "GList")
4431   (c-name "g_list_sort")
4432   (return-type "GList*")
4433   (parameters
4434     '("GCompareFunc" "compare_func")
4435   )
4436 )
4437
4438 (define-method sort_with_data
4439   (of-object "GList")
4440   (c-name "g_list_sort_with_data")
4441   (return-type "GList*")
4442   (parameters
4443     '("GCompareDataFunc" "compare_func")
4444     '("gpointer" "user_data")
4445   )
4446 )
4447
4448 (define-method nth_data
4449   (of-object "GList")
4450   (c-name "g_list_nth_data")
4451   (return-type "gpointer")
4452   (parameters
4453     '("guint" "n")
4454   )
4455 )
4456
4457 (define-function g_list_push_allocator
4458   (c-name "g_list_push_allocator")
4459   (return-type "none")
4460   (parameters
4461     '("gpointer" "allocator")
4462   )
4463 )
4464
4465 (define-function g_list_pop_allocator
4466   (c-name "g_list_pop_allocator")
4467   (return-type "none")
4468 )
4469
4470
4471
4472 ;; From gmacros.h
4473
4474
4475
4476 ;; From gmain.h
4477
4478 (define-function g_main_context_new
4479   (c-name "g_main_context_new")
4480   (is-constructor-of "GMainContext")
4481   (return-type "GMainContext*")
4482 )
4483
4484 (define-method ref
4485   (of-object "GMainContext")
4486   (c-name "g_main_context_ref")
4487   (return-type "GMainContext*")
4488 )
4489
4490 (define-method unref
4491   (of-object "GMainContext")
4492   (c-name "g_main_context_unref")
4493   (return-type "none")
4494 )
4495
4496 (define-function g_main_context_default
4497   (c-name "g_main_context_default")
4498   (return-type "GMainContext*")
4499 )
4500
4501 (define-method iteration
4502   (of-object "GMainContext")
4503   (c-name "g_main_context_iteration")
4504   (return-type "gboolean")
4505   (parameters
4506     '("gboolean" "may_block")
4507   )
4508 )
4509
4510 (define-method pending
4511   (of-object "GMainContext")
4512   (c-name "g_main_context_pending")
4513   (return-type "gboolean")
4514 )
4515
4516 (define-method find_source_by_id
4517   (of-object "GMainContext")
4518   (c-name "g_main_context_find_source_by_id")
4519   (return-type "GSource*")
4520   (parameters
4521     '("guint" "source_id")
4522   )
4523 )
4524
4525 (define-method find_source_by_user_data
4526   (of-object "GMainContext")
4527   (c-name "g_main_context_find_source_by_user_data")
4528   (return-type "GSource*")
4529   (parameters
4530     '("gpointer" "user_data")
4531   )
4532 )
4533
4534 (define-method find_source_by_funcs_user_data
4535   (of-object "GMainContext")
4536   (c-name "g_main_context_find_source_by_funcs_user_data")
4537   (return-type "GSource*")
4538   (parameters
4539     '("GSourceFuncs*" "funcs")
4540     '("gpointer" "user_data")
4541   )
4542 )
4543
4544 (define-method wakeup
4545   (of-object "GMainContext")
4546   (c-name "g_main_context_wakeup")
4547   (return-type "none")
4548 )
4549
4550 (define-method acquire
4551   (of-object "GMainContext")
4552   (c-name "g_main_context_acquire")
4553   (return-type "gboolean")
4554 )
4555
4556 (define-method release
4557   (of-object "GMainContext")
4558   (c-name "g_main_context_release")
4559   (return-type "none")
4560 )
4561
4562 (define-method is_owner
4563   (of-object "GMainContext")
4564   (c-name "g_main_context_is_owner")
4565   (return-type "gboolean")
4566 )
4567
4568 (define-method wait
4569   (of-object "GMainContext")
4570   (c-name "g_main_context_wait")
4571   (return-type "gboolean")
4572   (parameters
4573     '("GCond*" "cond")
4574     '("GMutex*" "mutex")
4575   )
4576 )
4577
4578 (define-method prepare
4579   (of-object "GMainContext")
4580   (c-name "g_main_context_prepare")
4581   (return-type "gboolean")
4582   (parameters
4583     '("gint*" "priority")
4584   )
4585 )
4586
4587 (define-method query
4588   (of-object "GMainContext")
4589   (c-name "g_main_context_query")
4590   (return-type "gint")
4591   (parameters
4592     '("gint" "max_priority")
4593     '("gint*" "timeout_")
4594     '("GPollFD*" "fds")
4595     '("gint" "n_fds")
4596   )
4597 )
4598
4599 (define-method check
4600   (of-object "GMainContext")
4601   (c-name "g_main_context_check")
4602   (return-type "gint")
4603   (parameters
4604     '("gint" "max_priority")
4605     '("GPollFD*" "fds")
4606     '("gint" "n_fds")
4607   )
4608 )
4609
4610 (define-method dispatch
4611   (of-object "GMainContext")
4612   (c-name "g_main_context_dispatch")
4613   (return-type "none")
4614 )
4615
4616 (define-method set_poll_func
4617   (of-object "GMainContext")
4618   (c-name "g_main_context_set_poll_func")
4619   (return-type "none")
4620   (parameters
4621     '("GPollFunc" "func")
4622   )
4623 )
4624
4625 (define-method get_poll_func
4626   (of-object "GMainContext")
4627   (c-name "g_main_context_get_poll_func")
4628   (return-type "GPollFunc")
4629 )
4630
4631 (define-method add_poll
4632   (of-object "GMainContext")
4633   (c-name "g_main_context_add_poll")
4634   (return-type "none")
4635   (parameters
4636     '("GPollFD*" "fd")
4637     '("gint" "priority")
4638   )
4639 )
4640
4641 (define-method remove_poll
4642   (of-object "GMainContext")
4643   (c-name "g_main_context_remove_poll")
4644   (return-type "none")
4645   (parameters
4646     '("GPollFD*" "fd")
4647   )
4648 )
4649
4650 (define-function g_main_depth
4651   (c-name "g_main_depth")
4652   (return-type "gint")
4653 )
4654
4655 (define-function g_main_current_source
4656   (c-name "g_main_current_source")
4657   (return-type "GSource*")
4658 )
4659
4660 (define-function g_main_loop_new
4661   (c-name "g_main_loop_new")
4662   (is-constructor-of "GMainLoop")
4663   (return-type "GMainLoop*")
4664   (parameters
4665     '("GMainContext*" "context")
4666     '("gboolean" "is_running")
4667   )
4668 )
4669
4670 (define-method run
4671   (of-object "GMainLoop")
4672   (c-name "g_main_loop_run")
4673   (return-type "none")
4674 )
4675
4676 (define-method quit
4677   (of-object "GMainLoop")
4678   (c-name "g_main_loop_quit")
4679   (return-type "none")
4680 )
4681
4682 (define-method ref
4683   (of-object "GMainLoop")
4684   (c-name "g_main_loop_ref")
4685   (return-type "GMainLoop*")
4686 )
4687
4688 (define-method unref
4689   (of-object "GMainLoop")
4690   (c-name "g_main_loop_unref")
4691   (return-type "none")
4692 )
4693
4694 (define-method is_running
4695   (of-object "GMainLoop")
4696   (c-name "g_main_loop_is_running")
4697   (return-type "gboolean")
4698 )
4699
4700 (define-method get_context
4701   (of-object "GMainLoop")
4702   (c-name "g_main_loop_get_context")
4703   (return-type "GMainContext*")
4704 )
4705
4706 (define-function g_source_new
4707   (c-name "g_source_new")
4708   (is-constructor-of "GSource")
4709   (return-type "GSource*")
4710   (parameters
4711     '("GSourceFuncs*" "source_funcs")
4712     '("guint" "struct_size")
4713   )
4714 )
4715
4716 (define-method ref
4717   (of-object "GSource")
4718   (c-name "g_source_ref")
4719   (return-type "GSource*")
4720 )
4721
4722 (define-method unref
4723   (of-object "GSource")
4724   (c-name "g_source_unref")
4725   (return-type "none")
4726 )
4727
4728 (define-method attach
4729   (of-object "GSource")
4730   (c-name "g_source_attach")
4731   (return-type "guint")
4732   (parameters
4733     '("GMainContext*" "context")
4734   )
4735 )
4736
4737 (define-method destroy
4738   (of-object "GSource")
4739   (c-name "g_source_destroy")
4740   (return-type "none")
4741 )
4742
4743 (define-method set_priority
4744   (of-object "GSource")
4745   (c-name "g_source_set_priority")
4746   (return-type "none")
4747   (parameters
4748     '("gint" "priority")
4749   )
4750 )
4751
4752 (define-method get_priority
4753   (of-object "GSource")
4754   (c-name "g_source_get_priority")
4755   (return-type "gint")
4756 )
4757
4758 (define-method set_can_recurse
4759   (of-object "GSource")
4760   (c-name "g_source_set_can_recurse")
4761   (return-type "none")
4762   (parameters
4763     '("gboolean" "can_recurse")
4764   )
4765 )
4766
4767 (define-method get_can_recurse
4768   (of-object "GSource")
4769   (c-name "g_source_get_can_recurse")
4770   (return-type "gboolean")
4771 )
4772
4773 (define-method get_id
4774   (of-object "GSource")
4775   (c-name "g_source_get_id")
4776   (return-type "guint")
4777 )
4778
4779 (define-method get_context
4780   (of-object "GSource")
4781   (c-name "g_source_get_context")
4782   (return-type "GMainContext*")
4783 )
4784
4785 (define-method set_callback
4786   (of-object "GSource")
4787   (c-name "g_source_set_callback")
4788   (return-type "none")
4789   (parameters
4790     '("GSourceFunc" "func")
4791     '("gpointer" "data")
4792     '("GDestroyNotify" "notify")
4793   )
4794 )
4795
4796 (define-method set_funcs
4797   (of-object "GSource")
4798   (c-name "g_source_set_funcs")
4799   (return-type "none")
4800   (parameters
4801     '("GSourceFuncs*" "funcs")
4802   )
4803 )
4804
4805 (define-method is_destroyed
4806   (of-object "GSource")
4807   (c-name "g_source_is_destroyed")
4808   (return-type "gboolean")
4809 )
4810
4811 (define-method set_callback_indirect
4812   (of-object "GSource")
4813   (c-name "g_source_set_callback_indirect")
4814   (return-type "none")
4815   (parameters
4816     '("gpointer" "callback_data")
4817     '("GSourceCallbackFuncs*" "callback_funcs")
4818   )
4819 )
4820
4821 (define-method add_poll
4822   (of-object "GSource")
4823   (c-name "g_source_add_poll")
4824   (return-type "none")
4825   (parameters
4826     '("GPollFD*" "fd")
4827   )
4828 )
4829
4830 (define-method remove_poll
4831   (of-object "GSource")
4832   (c-name "g_source_remove_poll")
4833   (return-type "none")
4834   (parameters
4835     '("GPollFD*" "fd")
4836   )
4837 )
4838
4839 (define-method get_current_time
4840   (of-object "GSource")
4841   (c-name "g_source_get_current_time")
4842   (return-type "none")
4843   (parameters
4844     '("GTimeVal*" "timeval")
4845   )
4846 )
4847
4848 (define-function g_idle_source_new
4849   (c-name "g_idle_source_new")
4850   (is-constructor-of "GIdleSource")
4851   (return-type "GSource*")
4852 )
4853
4854 (define-function g_child_watch_source_new
4855   (c-name "g_child_watch_source_new")
4856   (is-constructor-of "GChildWatchSource")
4857   (return-type "GSource*")
4858   (parameters
4859     '("GPid" "pid")
4860   )
4861 )
4862
4863 (define-function g_timeout_source_new
4864   (c-name "g_timeout_source_new")
4865   (is-constructor-of "GTimeoutSource")
4866   (return-type "GSource*")
4867   (parameters
4868     '("guint" "interval")
4869   )
4870 )
4871
4872 (define-function g_timeout_source_new_seconds
4873   (c-name "g_timeout_source_new_seconds")
4874   (return-type "GSource*")
4875   (parameters
4876     '("guint" "interval")
4877   )
4878 )
4879
4880 (define-function g_get_current_time
4881   (c-name "g_get_current_time")
4882   (return-type "none")
4883   (parameters
4884     '("GTimeVal*" "result")
4885   )
4886 )
4887
4888 (define-function g_source_remove
4889   (c-name "g_source_remove")
4890   (return-type "gboolean")
4891   (parameters
4892     '("guint" "tag")
4893   )
4894 )
4895
4896 (define-function g_source_remove_by_user_data
4897   (c-name "g_source_remove_by_user_data")
4898   (return-type "gboolean")
4899   (parameters
4900     '("gpointer" "user_data")
4901   )
4902 )
4903
4904 (define-function g_source_remove_by_funcs_user_data
4905   (c-name "g_source_remove_by_funcs_user_data")
4906   (return-type "gboolean")
4907   (parameters
4908     '("GSourceFuncs*" "funcs")
4909     '("gpointer" "user_data")
4910   )
4911 )
4912
4913 (define-function g_timeout_add_full
4914   (c-name "g_timeout_add_full")
4915   (return-type "guint")
4916   (parameters
4917     '("gint" "priority")
4918     '("guint" "interval")
4919     '("GSourceFunc" "function")
4920     '("gpointer" "data")
4921     '("GDestroyNotify" "notify")
4922   )
4923 )
4924
4925 (define-function g_timeout_add
4926   (c-name "g_timeout_add")
4927   (return-type "guint")
4928   (parameters
4929     '("guint" "interval")
4930     '("GSourceFunc" "function")
4931     '("gpointer" "data")
4932   )
4933 )
4934
4935 (define-function g_timeout_add_seconds
4936   (c-name "g_timeout_add_seconds")
4937   (return-type "guint")
4938   (parameters
4939     '("guint" "interval")
4940     '("GSourceFunc" "function")
4941     '("gpointer" "data")
4942   )
4943 )
4944
4945 (define-function g_child_watch_add_full
4946   (c-name "g_child_watch_add_full")
4947   (return-type "guint")
4948   (parameters
4949     '("gint" "priority")
4950     '("GPid" "pid")
4951     '("GChildWatchFunc" "function")
4952     '("gpointer" "data")
4953     '("GDestroyNotify" "notify")
4954   )
4955 )
4956
4957 (define-function g_child_watch_add
4958   (c-name "g_child_watch_add")
4959   (return-type "guint")
4960   (parameters
4961     '("GPid" "pid")
4962     '("GChildWatchFunc" "function")
4963     '("gpointer" "data")
4964   )
4965 )
4966
4967 (define-function g_idle_add
4968   (c-name "g_idle_add")
4969   (return-type "guint")
4970   (parameters
4971     '("GSourceFunc" "function")
4972     '("gpointer" "data")
4973   )
4974 )
4975
4976 (define-function g_idle_add_full
4977   (c-name "g_idle_add_full")
4978   (return-type "guint")
4979   (parameters
4980     '("gint" "priority")
4981     '("GSourceFunc" "function")
4982     '("gpointer" "data")
4983     '("GDestroyNotify" "notify")
4984   )
4985 )
4986
4987 (define-function g_idle_remove_by_data
4988   (c-name "g_idle_remove_by_data")
4989   (return-type "gboolean")
4990   (parameters
4991     '("gpointer" "data")
4992   )
4993 )
4994
4995
4996
4997 ;; From gmappedfile.h
4998
4999 (define-function g_mapped_file_new
5000   (c-name "g_mapped_file_new")
5001   (is-constructor-of "GMappedFile")
5002   (return-type "GMappedFile*")
5003   (parameters
5004     '("const-gchar*" "filename")
5005     '("gboolean" "writable")
5006     '("GError**" "error")
5007   )
5008 )
5009
5010 (define-method get_length
5011   (of-object "GMappedFile")
5012   (c-name "g_mapped_file_get_length")
5013   (return-type "gsize")
5014 )
5015
5016 (define-method get_contents
5017   (of-object "GMappedFile")
5018   (c-name "g_mapped_file_get_contents")
5019   (return-type "gchar*")
5020 )
5021
5022 (define-method free
5023   (of-object "GMappedFile")
5024   (c-name "g_mapped_file_free")
5025   (return-type "none")
5026 )
5027
5028
5029
5030 ;; From gmarkup.h
5031
5032 (define-function g_markup_error_quark
5033   (c-name "g_markup_error_quark")
5034   (return-type "GQuark")
5035 )
5036
5037 (define-function g_markup_parse_context_new
5038   (c-name "g_markup_parse_context_new")
5039   (is-constructor-of "GMarkupParseContext")
5040   (return-type "GMarkupParseContext*")
5041   (parameters
5042     '("const-GMarkupParser*" "parser")
5043     '("GMarkupParseFlags" "flags")
5044     '("gpointer" "user_data")
5045     '("GDestroyNotify" "user_data_dnotify")
5046   )
5047 )
5048
5049 (define-method free
5050   (of-object "GMarkupParseContext")
5051   (c-name "g_markup_parse_context_free")
5052   (return-type "none")
5053 )
5054
5055 (define-method parse
5056   (of-object "GMarkupParseContext")
5057   (c-name "g_markup_parse_context_parse")
5058   (return-type "gboolean")
5059   (parameters
5060     '("const-gchar*" "text")
5061     '("gssize" "text_len")
5062     '("GError**" "error")
5063   )
5064 )
5065
5066 (define-method end_parse
5067   (of-object "GMarkupParseContext")
5068   (c-name "g_markup_parse_context_end_parse")
5069   (return-type "gboolean")
5070   (parameters
5071     '("GError**" "error")
5072   )
5073 )
5074
5075 (define-method get_element
5076   (of-object "GMarkupParseContext")
5077   (c-name "g_markup_parse_context_get_element")
5078   (return-type "const-gchar*")
5079 )
5080
5081 (define-method get_position
5082   (of-object "GMarkupParseContext")
5083   (c-name "g_markup_parse_context_get_position")
5084   (return-type "none")
5085   (parameters
5086     '("gint*" "line_number")
5087     '("gint*" "char_number")
5088   )
5089 )
5090
5091 (define-function g_markup_escape_text
5092   (c-name "g_markup_escape_text")
5093   (return-type "gchar*")
5094   (parameters
5095     '("const-gchar*" "text")
5096     '("gssize" "length")
5097   )
5098 )
5099
5100 (define-function g_markup_printf_escaped
5101   (c-name "g_markup_printf_escaped")
5102   (return-type "gchar*")
5103   (parameters
5104     '("const-char*" "format")
5105   )
5106   (varargs #t)
5107 )
5108
5109 (define-function g_markup_vprintf_escaped
5110   (c-name "g_markup_vprintf_escaped")
5111   (return-type "gchar*")
5112   (parameters
5113     '("const-char*" "format")
5114     '("va_list" "args")
5115   )
5116 )
5117
5118
5119
5120 ;; From gmem.h
5121
5122 (define-function g_malloc
5123   (c-name "g_malloc")
5124   (return-type "gpointer")
5125   (parameters
5126     '("gulong" "n_bytes")
5127   )
5128 )
5129
5130 (define-function g_malloc0
5131   (c-name "g_malloc0")
5132   (return-type "gpointer")
5133   (parameters
5134     '("gulong" "n_bytes")
5135   )
5136 )
5137
5138 (define-function g_realloc
5139   (c-name "g_realloc")
5140   (return-type "gpointer")
5141   (parameters
5142     '("gpointer" "mem")
5143     '("gulong" "n_bytes")
5144   )
5145 )
5146
5147 (define-function g_free
5148   (c-name "g_free")
5149   (return-type "none")
5150   (parameters
5151     '("gpointer" "mem")
5152   )
5153 )
5154
5155 (define-function g_try_malloc
5156   (c-name "g_try_malloc")
5157   (return-type "gpointer")
5158   (parameters
5159     '("gulong" "n_bytes")
5160   )
5161 )
5162
5163 (define-function g_try_malloc0
5164   (c-name "g_try_malloc0")
5165   (return-type "gpointer")
5166   (parameters
5167     '("gulong" "n_bytes")
5168   )
5169 )
5170
5171 (define-function g_try_realloc
5172   (c-name "g_try_realloc")
5173   (return-type "gpointer")
5174   (parameters
5175     '("gpointer" "mem")
5176     '("gulong" "n_bytes")
5177   )
5178 )
5179
5180 (define-function g_mem_set_vtable
5181   (c-name "g_mem_set_vtable")
5182   (return-type "none")
5183   (parameters
5184     '("GMemVTable*" "vtable")
5185   )
5186 )
5187
5188 (define-function g_mem_is_system_malloc
5189   (c-name "g_mem_is_system_malloc")
5190   (return-type "gboolean")
5191 )
5192
5193 (define-function g_mem_profile
5194   (c-name "g_mem_profile")
5195   (return-type "none")
5196 )
5197
5198 (define-function g_mem_chunk_new
5199   (c-name "g_mem_chunk_new")
5200   (is-constructor-of "GMemChunk")
5201   (return-type "GMemChunk*")
5202   (parameters
5203     '("const-gchar*" "name")
5204     '("gint" "atom_size")
5205     '("gulong" "area_size")
5206     '("gint" "type")
5207   )
5208 )
5209
5210 (define-method destroy
5211   (of-object "GMemChunk")
5212   (c-name "g_mem_chunk_destroy")
5213   (return-type "none")
5214 )
5215
5216 (define-method alloc
5217   (of-object "GMemChunk")
5218   (c-name "g_mem_chunk_alloc")
5219   (return-type "gpointer")
5220 )
5221
5222 (define-method alloc0
5223   (of-object "GMemChunk")
5224   (c-name "g_mem_chunk_alloc0")
5225   (return-type "gpointer")
5226 )
5227
5228 (define-method free
5229   (of-object "GMemChunk")
5230   (c-name "g_mem_chunk_free")
5231   (return-type "none")
5232   (parameters
5233     '("gpointer" "mem")
5234   )
5235 )
5236
5237 (define-method clean
5238   (of-object "GMemChunk")
5239   (c-name "g_mem_chunk_clean")
5240   (return-type "none")
5241 )
5242
5243 (define-method reset
5244   (of-object "GMemChunk")
5245   (c-name "g_mem_chunk_reset")
5246   (return-type "none")
5247 )
5248
5249 (define-method print
5250   (of-object "GMemChunk")
5251   (c-name "g_mem_chunk_print")
5252   (return-type "none")
5253 )
5254
5255 (define-function g_mem_chunk_info
5256   (c-name "g_mem_chunk_info")
5257   (return-type "none")
5258 )
5259
5260 (define-function g_blow_chunks
5261   (c-name "g_blow_chunks")
5262   (return-type "none")
5263 )
5264
5265 (define-function g_allocator_new
5266   (c-name "g_allocator_new")
5267   (is-constructor-of "GAllocator")
5268   (return-type "GAllocator*")
5269   (parameters
5270     '("const-gchar*" "name")
5271     '("guint" "n_preallocs")
5272   )
5273 )
5274
5275 (define-method free
5276   (of-object "GAllocator")
5277   (c-name "g_allocator_free")
5278   (return-type "none")
5279 )
5280
5281
5282
5283 ;; From gmessages.h
5284
5285 (define-function g_printf_string_upper_bound
5286   (c-name "g_printf_string_upper_bound")
5287   (return-type "gsize")
5288   (parameters
5289     '("const-gchar*" "format")
5290     '("va_list" "args")
5291   )
5292 )
5293
5294 (define-function g_log_set_handler
5295   (c-name "g_log_set_handler")
5296   (return-type "guint")
5297   (parameters
5298     '("const-gchar*" "log_domain")
5299     '("GLogLevelFlags" "log_levels")
5300     '("GLogFunc" "log_func")
5301     '("gpointer" "user_data")
5302   )
5303 )
5304
5305 (define-function g_log_remove_handler
5306   (c-name "g_log_remove_handler")
5307   (return-type "none")
5308   (parameters
5309     '("const-gchar*" "log_domain")
5310     '("guint" "handler_id")
5311   )
5312 )
5313
5314 (define-function g_log_default_handler
5315   (c-name "g_log_default_handler")
5316   (return-type "none")
5317   (parameters
5318     '("const-gchar*" "log_domain")
5319     '("GLogLevelFlags" "log_level")
5320     '("const-gchar*" "message")
5321     '("gpointer" "unused_data")
5322   )
5323 )
5324
5325 (define-function g_log_set_default_handler
5326   (c-name "g_log_set_default_handler")
5327   (return-type "GLogFunc")
5328   (parameters
5329     '("GLogFunc" "log_func")
5330     '("gpointer" "user_data")
5331   )
5332 )
5333
5334 (define-function g_log
5335   (c-name "g_log")
5336   (return-type "none")
5337   (parameters
5338     '("const-gchar*" "log_domain")
5339     '("GLogLevelFlags" "log_level")
5340     '("const-gchar*" "format")
5341   )
5342   (varargs #t)
5343 )
5344
5345 (define-function g_logv
5346   (c-name "g_logv")
5347   (return-type "none")
5348   (parameters
5349     '("const-gchar*" "log_domain")
5350     '("GLogLevelFlags" "log_level")
5351     '("const-gchar*" "format")
5352     '("va_list" "args")
5353   )
5354 )
5355
5356 (define-function g_log_set_fatal_mask
5357   (c-name "g_log_set_fatal_mask")
5358   (return-type "GLogLevelFlags")
5359   (parameters
5360     '("const-gchar*" "log_domain")
5361     '("GLogLevelFlags" "fatal_mask")
5362   )
5363 )
5364
5365 (define-function g_log_set_always_fatal
5366   (c-name "g_log_set_always_fatal")
5367   (return-type "GLogLevelFlags")
5368   (parameters
5369     '("GLogLevelFlags" "fatal_mask")
5370   )
5371 )
5372
5373 (define-function g_return_if_fail_warning
5374   (c-name "g_return_if_fail_warning")
5375   (return-type "none")
5376   (parameters
5377     '("const-char*" "log_domain")
5378     '("const-char*" "pretty_function")
5379     '("const-char*" "expression")
5380   )
5381 )
5382
5383 (define-function g_assert_warning
5384   (c-name "g_assert_warning")
5385   (return-type "none")
5386   (parameters
5387     '("const-char*" "log_domain")
5388     '("const-char*" "file")
5389     '("const-int" "line")
5390     '("const-char*" "pretty_function")
5391     '("const-char*" "expression")
5392   )
5393 )
5394
5395 (define-function g_set_print_handler
5396   (c-name "g_set_print_handler")
5397   (return-type "GPrintFunc")
5398   (parameters
5399     '("GPrintFunc" "func")
5400   )
5401 )
5402
5403 (define-function g_printerr
5404   (c-name "g_printerr")
5405   (return-type "none")
5406   (parameters
5407     '("const-gchar*" "format")
5408   )
5409   (varargs #t)
5410 )
5411
5412 (define-function g_set_printerr_handler
5413   (c-name "g_set_printerr_handler")
5414   (return-type "GPrintFunc")
5415   (parameters
5416     '("GPrintFunc" "func")
5417   )
5418 )
5419
5420
5421
5422 ;; From gmirroringtable.h
5423
5424
5425
5426 ;; From gnode.h
5427
5428 (define-function g_node_new
5429   (c-name "g_node_new")
5430   (is-constructor-of "GNode")
5431   (return-type "GNode*")
5432   (parameters
5433     '("gpointer" "data")
5434   )
5435 )
5436
5437 (define-method destroy
5438   (of-object "GNode")
5439   (c-name "g_node_destroy")
5440   (return-type "none")
5441 )
5442
5443 (define-method unlink
5444   (of-object "GNode")
5445   (c-name "g_node_unlink")
5446   (return-type "none")
5447 )
5448
5449 (define-method copy_deep
5450   (of-object "GNode")
5451   (c-name "g_node_copy_deep")
5452   (return-type "GNode*")
5453   (parameters
5454     '("GCopyFunc" "copy_func")
5455     '("gpointer" "data")
5456   )
5457 )
5458
5459 (define-method copy
5460   (of-object "GNode")
5461   (c-name "g_node_copy")
5462   (return-type "GNode*")
5463 )
5464
5465 (define-method insert
5466   (of-object "GNode")
5467   (c-name "g_node_insert")
5468   (return-type "GNode*")
5469   (parameters
5470     '("gint" "position")
5471     '("GNode*" "node")
5472   )
5473 )
5474
5475 (define-method insert_before
5476   (of-object "GNode")
5477   (c-name "g_node_insert_before")
5478   (return-type "GNode*")
5479   (parameters
5480     '("GNode*" "sibling")
5481     '("GNode*" "node")
5482   )
5483 )
5484
5485 (define-method insert_after
5486   (of-object "GNode")
5487   (c-name "g_node_insert_after")
5488   (return-type "GNode*")
5489   (parameters
5490     '("GNode*" "sibling")
5491     '("GNode*" "node")
5492   )
5493 )
5494
5495 (define-method prepend
5496   (of-object "GNode")
5497   (c-name "g_node_prepend")
5498   (return-type "GNode*")
5499   (parameters
5500     '("GNode*" "node")
5501   )
5502 )
5503
5504 (define-method n_nodes
5505   (of-object "GNode")
5506   (c-name "g_node_n_nodes")
5507   (return-type "guint")
5508   (parameters
5509     '("GTraverseFlags" "flags")
5510   )
5511 )
5512
5513 (define-method get_root
5514   (of-object "GNode")
5515   (c-name "g_node_get_root")
5516   (return-type "GNode*")
5517 )
5518
5519 (define-method is_ancestor
5520   (of-object "GNode")
5521   (c-name "g_node_is_ancestor")
5522   (return-type "gboolean")
5523   (parameters
5524     '("GNode*" "descendant")
5525   )
5526 )
5527
5528 (define-method depth
5529   (of-object "GNode")
5530   (c-name "g_node_depth")
5531   (return-type "guint")
5532 )
5533
5534 (define-method find
5535   (of-object "GNode")
5536   (c-name "g_node_find")
5537   (return-type "GNode*")
5538   (parameters
5539     '("GTraverseType" "order")
5540     '("GTraverseFlags" "flags")
5541     '("gpointer" "data")
5542   )
5543 )
5544
5545 (define-method traverse
5546   (of-object "GNode")
5547   (c-name "g_node_traverse")
5548   (return-type "none")
5549   (parameters
5550     '("GTraverseType" "order")
5551     '("GTraverseFlags" "flags")
5552     '("gint" "max_depth")
5553     '("GNodeTraverseFunc" "func")
5554     '("gpointer" "data")
5555   )
5556 )
5557
5558 (define-method max_height
5559   (of-object "GNode")
5560   (c-name "g_node_max_height")
5561   (return-type "guint")
5562 )
5563
5564 (define-method children_foreach
5565   (of-object "GNode")
5566   (c-name "g_node_children_foreach")
5567   (return-type "none")
5568   (parameters
5569     '("GTraverseFlags" "flags")
5570     '("GNodeForeachFunc" "func")
5571     '("gpointer" "data")
5572   )
5573 )
5574
5575 (define-method reverse_children
5576   (of-object "GNode")
5577   (c-name "g_node_reverse_children")
5578   (return-type "none")
5579 )
5580
5581 (define-method n_children
5582   (of-object "GNode")
5583   (c-name "g_node_n_children")
5584   (return-type "guint")
5585 )
5586
5587 (define-method nth_child
5588   (of-object "GNode")
5589   (c-name "g_node_nth_child")
5590   (return-type "GNode*")
5591   (parameters
5592     '("guint" "n")
5593   )
5594 )
5595
5596 (define-method last_child
5597   (of-object "GNode")
5598   (c-name "g_node_last_child")
5599   (return-type "GNode*")
5600 )
5601
5602 (define-method find_child
5603   (of-object "GNode")
5604   (c-name "g_node_find_child")
5605   (return-type "GNode*")
5606   (parameters
5607     '("GTraverseFlags" "flags")
5608     '("gpointer" "data")
5609   )
5610 )
5611
5612 (define-method child_position
5613   (of-object "GNode")
5614   (c-name "g_node_child_position")
5615   (return-type "gint")
5616   (parameters
5617     '("GNode*" "child")
5618   )
5619 )
5620
5621 (define-method child_index
5622   (of-object "GNode")
5623   (c-name "g_node_child_index")
5624   (return-type "gint")
5625   (parameters
5626     '("gpointer" "data")
5627   )
5628 )
5629
5630 (define-method first_sibling
5631   (of-object "GNode")
5632   (c-name "g_node_first_sibling")
5633   (return-type "GNode*")
5634 )
5635
5636 (define-method last_sibling
5637   (of-object "GNode")
5638   (c-name "g_node_last_sibling")
5639   (return-type "GNode*")
5640 )
5641
5642 (define-function g_node_push_allocator
5643   (c-name "g_node_push_allocator")
5644   (return-type "none")
5645   (parameters
5646     '("gpointer" "dummy")
5647   )
5648 )
5649
5650 (define-function g_node_pop_allocator
5651   (c-name "g_node_pop_allocator")
5652   (return-type "none")
5653 )
5654
5655
5656
5657 ;; From goption.h
5658
5659 (define-function g_option_error_quark
5660   (c-name "g_option_error_quark")
5661   (return-type "GQuark")
5662 )
5663
5664 (define-function g_option_context_new
5665   (c-name "g_option_context_new")
5666   (is-constructor-of "GOptionContext")
5667   (return-type "GOptionContext*")
5668   (parameters
5669     '("const-gchar*" "parameter_string")
5670   )
5671 )
5672
5673 (define-method set_summary
5674   (of-object "GOptionContext")
5675   (c-name "g_option_context_set_summary")
5676   (return-type "none")
5677   (parameters
5678     '("const-gchar*" "summary")
5679   )
5680 )
5681
5682 (define-method get_summary
5683   (of-object "GOptionContext")
5684   (c-name "g_option_context_get_summary")
5685   (return-type "const-gchar*")
5686 )
5687
5688 (define-method set_description
5689   (of-object "GOptionContext")
5690   (c-name "g_option_context_set_description")
5691   (return-type "none")
5692   (parameters
5693     '("const-gchar*" "description")
5694   )
5695 )
5696
5697 (define-method get_description
5698   (of-object "GOptionContext")
5699   (c-name "g_option_context_get_description")
5700   (return-type "const-gchar*")
5701 )
5702
5703 (define-method free
5704   (of-object "GOptionContext")
5705   (c-name "g_option_context_free")
5706   (return-type "none")
5707 )
5708
5709 (define-method set_help_enabled
5710   (of-object "GOptionContext")
5711   (c-name "g_option_context_set_help_enabled")
5712   (return-type "none")
5713   (parameters
5714     '("gboolean" "help_enabled")
5715   )
5716 )
5717
5718 (define-method get_help_enabled
5719   (of-object "GOptionContext")
5720   (c-name "g_option_context_get_help_enabled")
5721   (return-type "gboolean")
5722 )
5723
5724 (define-method set_ignore_unknown_options
5725   (of-object "GOptionContext")
5726   (c-name "g_option_context_set_ignore_unknown_options")
5727   (return-type "none")
5728   (parameters
5729     '("gboolean" "ignore_unknown")
5730   )
5731 )
5732
5733 (define-method get_ignore_unknown_options
5734   (of-object "GOptionContext")
5735   (c-name "g_option_context_get_ignore_unknown_options")
5736   (return-type "gboolean")
5737 )
5738
5739 (define-method add_main_entries
5740   (of-object "GOptionContext")
5741   (c-name "g_option_context_add_main_entries")
5742   (return-type "none")
5743   (parameters
5744     '("const-GOptionEntry*" "entries")
5745     '("const-gchar*" "translation_domain")
5746   )
5747 )
5748
5749 (define-method parse
5750   (of-object "GOptionContext")
5751   (c-name "g_option_context_parse")
5752   (return-type "gboolean")
5753   (parameters
5754     '("gint*" "argc")
5755     '("gchar***" "argv")
5756     '("GError**" "error")
5757   )
5758 )
5759
5760 (define-method set_translate_func
5761   (of-object "GOptionContext")
5762   (c-name "g_option_context_set_translate_func")
5763   (return-type "none")
5764   (parameters
5765     '("GTranslateFunc" "func")
5766     '("gpointer" "data")
5767     '("GDestroyNotify" "destroy_notify")
5768   )
5769 )
5770
5771 (define-method set_translation_domain
5772   (of-object "GOptionContext")
5773   (c-name "g_option_context_set_translation_domain")
5774   (return-type "none")
5775   (parameters
5776     '("const-gchar*" "domain")
5777   )
5778 )
5779
5780 (define-method add_group
5781   (of-object "GOptionContext")
5782   (c-name "g_option_context_add_group")
5783   (return-type "none")
5784   (parameters
5785     '("GOptionGroup*" "group")
5786   )
5787 )
5788
5789 (define-method set_main_group
5790   (of-object "GOptionContext")
5791   (c-name "g_option_context_set_main_group")
5792   (return-type "none")
5793   (parameters
5794     '("GOptionGroup*" "group")
5795   )
5796 )
5797
5798 (define-method get_main_group
5799   (of-object "GOptionContext")
5800   (c-name "g_option_context_get_main_group")
5801   (return-type "GOptionGroup*")
5802 )
5803
5804 (define-method get_help
5805   (of-object "GOptionContext")
5806   (c-name "g_option_context_get_help")
5807   (return-type "gchar*")
5808   (parameters
5809     '("gboolean" "main_help")
5810     '("GOptionGroup*" "group")
5811   )
5812 )
5813
5814 (define-function g_option_group_new
5815   (c-name "g_option_group_new")
5816   (is-constructor-of "GOptionGroup")
5817   (return-type "GOptionGroup*")
5818   (parameters
5819     '("const-gchar*" "name")
5820     '("const-gchar*" "description")
5821     '("const-gchar*" "help_description")
5822     '("gpointer" "user_data")
5823     '("GDestroyNotify" "destroy")
5824   )
5825 )
5826
5827 (define-method set_parse_hooks
5828   (of-object "GOptionGroup")
5829   (c-name "g_option_group_set_parse_hooks")
5830   (return-type "none")
5831   (parameters
5832     '("GOptionParseFunc" "pre_parse_func")
5833     '("GOptionParseFunc" "post_parse_func")
5834   )
5835 )
5836
5837 (define-method set_error_hook
5838   (of-object "GOptionGroup")
5839   (c-name "g_option_group_set_error_hook")
5840   (return-type "none")
5841   (parameters
5842     '("GOptionErrorFunc" "error_func")
5843   )
5844 )
5845
5846 (define-method free
5847   (of-object "GOptionGroup")
5848   (c-name "g_option_group_free")
5849   (return-type "none")
5850 )
5851
5852 (define-method add_entries
5853   (of-object "GOptionGroup")
5854   (c-name "g_option_group_add_entries")
5855   (return-type "none")
5856   (parameters
5857     '("const-GOptionEntry*" "entries")
5858   )
5859 )
5860
5861 (define-method set_translate_func
5862   (of-object "GOptionGroup")
5863   (c-name "g_option_group_set_translate_func")
5864   (return-type "none")
5865   (parameters
5866     '("GTranslateFunc" "func")
5867     '("gpointer" "data")
5868     '("GDestroyNotify" "destroy_notify")
5869   )
5870 )
5871
5872 (define-method set_translation_domain
5873   (of-object "GOptionGroup")
5874   (c-name "g_option_group_set_translation_domain")
5875   (return-type "none")
5876   (parameters
5877     '("const-gchar*" "domain")
5878   )
5879 )
5880
5881
5882
5883 ;; From gpattern.h
5884
5885 (define-function g_pattern_spec_new
5886   (c-name "g_pattern_spec_new")
5887   (is-constructor-of "GPatternSpec")
5888   (return-type "GPatternSpec*")
5889   (parameters
5890     '("const-gchar*" "pattern")
5891   )
5892 )
5893
5894 (define-method free
5895   (of-object "GPatternSpec")
5896   (c-name "g_pattern_spec_free")
5897   (return-type "none")
5898 )
5899
5900 (define-method equal
5901   (of-object "GPatternSpec")
5902   (c-name "g_pattern_spec_equal")
5903   (return-type "gboolean")
5904   (parameters
5905     '("GPatternSpec*" "pspec2")
5906   )
5907 )
5908
5909 (define-function g_pattern_match
5910   (c-name "g_pattern_match")
5911   (return-type "gboolean")
5912   (parameters
5913     '("GPatternSpec*" "pspec")
5914     '("guint" "string_length")
5915     '("const-gchar*" "string")
5916     '("const-gchar*" "string_reversed")
5917   )
5918 )
5919
5920 (define-function g_pattern_match_string
5921   (c-name "g_pattern_match_string")
5922   (return-type "gboolean")
5923   (parameters
5924     '("GPatternSpec*" "pspec")
5925     '("const-gchar*" "string")
5926   )
5927 )
5928
5929 (define-function g_pattern_match_simple
5930   (c-name "g_pattern_match_simple")
5931   (return-type "gboolean")
5932   (parameters
5933     '("const-gchar*" "pattern")
5934     '("const-gchar*" "string")
5935   )
5936 )
5937
5938
5939
5940 ;; From gprimes.h
5941
5942 (define-function g_spaced_primes_closest
5943   (c-name "g_spaced_primes_closest")
5944   (return-type "guint")
5945   (parameters
5946     '("guint" "num")
5947   )
5948 )
5949
5950
5951
5952 ;; From gprintf.h
5953
5954 (define-function g_printf
5955   (c-name "g_printf")
5956   (return-type "gint")
5957   (parameters
5958     '("gchar-const*" "format")
5959   )
5960   (varargs #t)
5961 )
5962
5963 (define-function g_fprintf
5964   (c-name "g_fprintf")
5965   (return-type "gint")
5966   (parameters
5967     '("FILE*" "file")
5968     '("gchar-const*" "format")
5969   )
5970   (varargs #t)
5971 )
5972
5973 (define-function g_sprintf
5974   (c-name "g_sprintf")
5975   (return-type "gint")
5976   (parameters
5977     '("gchar*" "string")
5978     '("gchar-const*" "format")
5979   )
5980   (varargs #t)
5981 )
5982
5983 (define-function g_vprintf
5984   (c-name "g_vprintf")
5985   (return-type "gint")
5986   (parameters
5987     '("gchar-const*" "format")
5988     '("va_list" "args")
5989   )
5990 )
5991
5992 (define-function g_vfprintf
5993   (c-name "g_vfprintf")
5994   (return-type "gint")
5995   (parameters
5996     '("FILE*" "file")
5997     '("gchar-const*" "format")
5998     '("va_list" "args")
5999   )
6000 )
6001
6002 (define-function g_vsprintf
6003   (c-name "g_vsprintf")
6004   (return-type "gint")
6005   (parameters
6006     '("gchar*" "string")
6007     '("gchar-const*" "format")
6008     '("va_list" "args")
6009   )
6010 )
6011
6012 (define-function g_vasprintf
6013   (c-name "g_vasprintf")
6014   (return-type "gint")
6015   (parameters
6016     '("gchar**" "string")
6017     '("gchar-const*" "format")
6018     '("va_list" "args")
6019   )
6020 )
6021
6022
6023
6024 ;; From gprintfint.h
6025
6026
6027
6028 ;; From gqsort.h
6029
6030 (define-function g_qsort_with_data
6031   (c-name "g_qsort_with_data")
6032   (return-type "none")
6033   (parameters
6034     '("gconstpointer" "pbase")
6035     '("gint" "total_elems")
6036     '("gsize" "size")
6037     '("GCompareDataFunc" "compare_func")
6038     '("gpointer" "user_data")
6039   )
6040 )
6041
6042
6043
6044 ;; From gquark.h
6045
6046 (define-function g_quark_try_string
6047   (c-name "g_quark_try_string")
6048   (return-type "GQuark")
6049   (parameters
6050     '("const-gchar*" "string")
6051   )
6052 )
6053
6054 (define-function g_quark_from_static_string
6055   (c-name "g_quark_from_static_string")
6056   (return-type "GQuark")
6057   (parameters
6058     '("const-gchar*" "string")
6059   )
6060 )
6061
6062 (define-function g_quark_from_string
6063   (c-name "g_quark_from_string")
6064   (return-type "GQuark")
6065   (parameters
6066     '("const-gchar*" "string")
6067   )
6068 )
6069
6070 (define-method to_string
6071   (of-object "GQuark")
6072   (c-name "g_quark_to_string")
6073   (return-type "const-gchar*")
6074 )
6075
6076 (define-function g_intern_string
6077   (c-name "g_intern_string")
6078   (return-type "const-gchar*")
6079   (parameters
6080     '("const-gchar*" "string")
6081   )
6082 )
6083
6084 (define-function g_intern_static_string
6085   (c-name "g_intern_static_string")
6086   (return-type "const-gchar*")
6087   (parameters
6088     '("const-gchar*" "string")
6089   )
6090 )
6091
6092
6093
6094 ;; From gqueue.h
6095
6096 (define-function g_queue_new
6097   (c-name "g_queue_new")
6098   (is-constructor-of "GQueue")
6099   (return-type "GQueue*")
6100 )
6101
6102 (define-method free
6103   (of-object "GQueue")
6104   (c-name "g_queue_free")
6105   (return-type "none")
6106 )
6107
6108 (define-method init
6109   (of-object "GQueue")
6110   (c-name "g_queue_init")
6111   (return-type "none")
6112 )
6113
6114 (define-method clear
6115   (of-object "GQueue")
6116   (c-name "g_queue_clear")
6117   (return-type "none")
6118 )
6119
6120 (define-method is_empty
6121   (of-object "GQueue")
6122   (c-name "g_queue_is_empty")
6123   (return-type "gboolean")
6124 )
6125
6126 (define-method get_length
6127   (of-object "GQueue")
6128   (c-name "g_queue_get_length")
6129   (return-type "guint")
6130 )
6131
6132 (define-method reverse
6133   (of-object "GQueue")
6134   (c-name "g_queue_reverse")
6135   (return-type "none")
6136 )
6137
6138 (define-method copy
6139   (of-object "GQueue")
6140   (c-name "g_queue_copy")
6141   (return-type "GQueue*")
6142 )
6143
6144 (define-method foreach
6145   (of-object "GQueue")
6146   (c-name "g_queue_foreach")
6147   (return-type "none")
6148   (parameters
6149     '("GFunc" "func")
6150     '("gpointer" "user_data")
6151   )
6152 )
6153
6154 (define-method find
6155   (of-object "GQueue")
6156   (c-name "g_queue_find")
6157   (return-type "GList*")
6158   (parameters
6159     '("gconstpointer" "data")
6160   )
6161 )
6162
6163 (define-method find_custom
6164   (of-object "GQueue")
6165   (c-name "g_queue_find_custom")
6166   (return-type "GList*")
6167   (parameters
6168     '("gconstpointer" "data")
6169     '("GCompareFunc" "func")
6170   )
6171 )
6172
6173 (define-method sort
6174   (of-object "GQueue")
6175   (c-name "g_queue_sort")
6176   (return-type "none")
6177   (parameters
6178     '("GCompareDataFunc" "compare_func")
6179     '("gpointer" "user_data")
6180   )
6181 )
6182
6183 (define-method push_head
6184   (of-object "GQueue")
6185   (c-name "g_queue_push_head")
6186   (return-type "none")
6187   (parameters
6188     '("gpointer" "data")
6189   )
6190 )
6191
6192 (define-method push_tail
6193   (of-object "GQueue")
6194   (c-name "g_queue_push_tail")
6195   (return-type "none")
6196   (parameters
6197     '("gpointer" "data")
6198   )
6199 )
6200
6201 (define-method push_nth
6202   (of-object "GQueue")
6203   (c-name "g_queue_push_nth")
6204   (return-type "none")
6205   (parameters
6206     '("gpointer" "data")
6207     '("gint" "n")
6208   )
6209 )
6210
6211 (define-method pop_head
6212   (of-object "GQueue")
6213   (c-name "g_queue_pop_head")
6214   (return-type "gpointer")
6215 )
6216
6217 (define-method pop_tail
6218   (of-object "GQueue")
6219   (c-name "g_queue_pop_tail")
6220   (return-type "gpointer")
6221 )
6222
6223 (define-method pop_nth
6224   (of-object "GQueue")
6225   (c-name "g_queue_pop_nth")
6226   (return-type "gpointer")
6227   (parameters
6228     '("guint" "n")
6229   )
6230 )
6231
6232 (define-method peek_head
6233   (of-object "GQueue")
6234   (c-name "g_queue_peek_head")
6235   (return-type "gpointer")
6236 )
6237
6238 (define-method peek_tail
6239   (of-object "GQueue")
6240   (c-name "g_queue_peek_tail")
6241   (return-type "gpointer")
6242 )
6243
6244 (define-method peek_nth
6245   (of-object "GQueue")
6246   (c-name "g_queue_peek_nth")
6247   (return-type "gpointer")
6248   (parameters
6249     '("guint" "n")
6250   )
6251 )
6252
6253 (define-method index
6254   (of-object "GQueue")
6255   (c-name "g_queue_index")
6256   (return-type "gint")
6257   (parameters
6258     '("gconstpointer" "data")
6259   )
6260 )
6261
6262 (define-method remove
6263   (of-object "GQueue")
6264   (c-name "g_queue_remove")
6265   (return-type "none")
6266   (parameters
6267     '("gconstpointer" "data")
6268   )
6269 )
6270
6271 (define-method remove_all
6272   (of-object "GQueue")
6273   (c-name "g_queue_remove_all")
6274   (return-type "none")
6275   (parameters
6276     '("gconstpointer" "data")
6277   )
6278 )
6279
6280 (define-method insert_before
6281   (of-object "GQueue")
6282   (c-name "g_queue_insert_before")
6283   (return-type "none")
6284   (parameters
6285     '("GList*" "sibling")
6286     '("gpointer" "data")
6287   )
6288 )
6289
6290 (define-method insert_after
6291   (of-object "GQueue")
6292   (c-name "g_queue_insert_after")
6293   (return-type "none")
6294   (parameters
6295     '("GList*" "sibling")
6296     '("gpointer" "data")
6297   )
6298 )
6299
6300 (define-method insert_sorted
6301   (of-object "GQueue")
6302   (c-name "g_queue_insert_sorted")
6303   (return-type "none")
6304   (parameters
6305     '("gpointer" "data")
6306     '("GCompareDataFunc" "func")
6307     '("gpointer" "user_data")
6308   )
6309 )
6310
6311 (define-method push_head_link
6312   (of-object "GQueue")
6313   (c-name "g_queue_push_head_link")
6314   (return-type "none")
6315   (parameters
6316     '("GList*" "link_")
6317   )
6318 )
6319
6320 (define-method push_tail_link
6321   (of-object "GQueue")
6322   (c-name "g_queue_push_tail_link")
6323   (return-type "none")
6324   (parameters
6325     '("GList*" "link_")
6326   )
6327 )
6328
6329 (define-method push_nth_link
6330   (of-object "GQueue")
6331   (c-name "g_queue_push_nth_link")
6332   (return-type "none")
6333   (parameters
6334     '("gint" "n")
6335     '("GList*" "link_")
6336   )
6337 )
6338
6339 (define-method pop_head_link
6340   (of-object "GQueue")
6341   (c-name "g_queue_pop_head_link")
6342   (return-type "GList*")
6343 )
6344
6345 (define-method pop_tail_link
6346   (of-object "GQueue")
6347   (c-name "g_queue_pop_tail_link")
6348   (return-type "GList*")
6349 )
6350
6351 (define-method pop_nth_link
6352   (of-object "GQueue")
6353   (c-name "g_queue_pop_nth_link")
6354   (return-type "GList*")
6355   (parameters
6356     '("guint" "n")
6357   )
6358 )
6359
6360 (define-method peek_head_link
6361   (of-object "GQueue")
6362   (c-name "g_queue_peek_head_link")
6363   (return-type "GList*")
6364 )
6365
6366 (define-method peek_tail_link
6367   (of-object "GQueue")
6368   (c-name "g_queue_peek_tail_link")
6369   (return-type "GList*")
6370 )
6371
6372 (define-method peek_nth_link
6373   (of-object "GQueue")
6374   (c-name "g_queue_peek_nth_link")
6375   (return-type "GList*")
6376   (parameters
6377     '("guint" "n")
6378   )
6379 )
6380
6381 (define-method link_index
6382   (of-object "GQueue")
6383   (c-name "g_queue_link_index")
6384   (return-type "gint")
6385   (parameters
6386     '("GList*" "link_")
6387   )
6388 )
6389
6390 (define-method unlink
6391   (of-object "GQueue")
6392   (c-name "g_queue_unlink")
6393   (return-type "none")
6394   (parameters
6395     '("GList*" "link_")
6396   )
6397 )
6398
6399 (define-method delete_link
6400   (of-object "GQueue")
6401   (c-name "g_queue_delete_link")
6402   (return-type "none")
6403   (parameters
6404     '("GList*" "link_")
6405   )
6406 )
6407
6408
6409
6410 ;; From grand.h
6411
6412 (define-function g_rand_new_with_seed
6413   (c-name "g_rand_new_with_seed")
6414   (return-type "GRand*")
6415   (parameters
6416     '("guint32" "seed")
6417   )
6418 )
6419
6420 (define-function g_rand_new_with_seed_array
6421   (c-name "g_rand_new_with_seed_array")
6422   (return-type "GRand*")
6423   (parameters
6424     '("const-guint32*" "seed")
6425     '("guint" "seed_length")
6426   )
6427 )
6428
6429 (define-function g_rand_new
6430   (c-name "g_rand_new")
6431   (is-constructor-of "GRand")
6432   (return-type "GRand*")
6433 )
6434
6435 (define-method free
6436   (of-object "GRand")
6437   (c-name "g_rand_free")
6438   (return-type "none")
6439 )
6440
6441 (define-method copy
6442   (of-object "GRand")
6443   (c-name "g_rand_copy")
6444   (return-type "GRand*")
6445 )
6446
6447 (define-method set_seed
6448   (of-object "GRand")
6449   (c-name "g_rand_set_seed")
6450   (return-type "none")
6451   (parameters
6452     '("guint32" "seed")
6453   )
6454 )
6455
6456 (define-method set_seed_array
6457   (of-object "GRand")
6458   (c-name "g_rand_set_seed_array")
6459   (return-type "none")
6460   (parameters
6461     '("const-guint32*" "seed")
6462     '("guint" "seed_length")
6463   )
6464 )
6465
6466 (define-method int
6467   (of-object "GRand")
6468   (c-name "g_rand_int")
6469   (return-type "guint32")
6470 )
6471
6472 (define-method int_range
6473   (of-object "GRand")
6474   (c-name "g_rand_int_range")
6475   (return-type "gint32")
6476   (parameters
6477     '("gint32" "begin")
6478     '("gint32" "end")
6479   )
6480 )
6481
6482 (define-method double
6483   (of-object "GRand")
6484   (c-name "g_rand_double")
6485   (return-type "gdouble")
6486 )
6487
6488 (define-method double_range
6489   (of-object "GRand")
6490   (c-name "g_rand_double_range")
6491   (return-type "gdouble")
6492   (parameters
6493     '("gdouble" "begin")
6494     '("gdouble" "end")
6495   )
6496 )
6497
6498 (define-function g_random_set_seed
6499   (c-name "g_random_set_seed")
6500   (return-type "none")
6501   (parameters
6502     '("guint32" "seed")
6503   )
6504 )
6505
6506 (define-function g_random_int
6507   (c-name "g_random_int")
6508   (return-type "guint32")
6509 )
6510
6511 (define-function g_random_int_range
6512   (c-name "g_random_int_range")
6513   (return-type "gint32")
6514   (parameters
6515     '("gint32" "begin")
6516     '("gint32" "end")
6517   )
6518 )
6519
6520 (define-function g_random_double
6521   (c-name "g_random_double")
6522   (return-type "gdouble")
6523 )
6524
6525 (define-function g_random_double_range
6526   (c-name "g_random_double_range")
6527   (return-type "gdouble")
6528   (parameters
6529     '("gdouble" "begin")
6530     '("gdouble" "end")
6531   )
6532 )
6533
6534
6535
6536 ;; From gregex.h
6537
6538 (define-function g_regex_error_quark
6539   (c-name "g_regex_error_quark")
6540   (return-type "GQuark")
6541 )
6542
6543 (define-function g_regex_new
6544   (c-name "g_regex_new")
6545   (is-constructor-of "GRegex")
6546   (return-type "GRegex*")
6547   (parameters
6548     '("const-gchar*" "pattern")
6549     '("GRegexCompileFlags" "compile_options")
6550     '("GRegexMatchFlags" "match_options")
6551     '("GError**" "error")
6552   )
6553 )
6554
6555 (define-method ref
6556   (of-object "GRegex")
6557   (c-name "g_regex_ref")
6558   (return-type "GRegex*")
6559 )
6560
6561 (define-method unref
6562   (of-object "GRegex")
6563   (c-name "g_regex_unref")
6564   (return-type "none")
6565 )
6566
6567 (define-method get_pattern
6568   (of-object "GRegex")
6569   (c-name "g_regex_get_pattern")
6570   (return-type "const-gchar*")
6571 )
6572
6573 (define-method get_max_backref
6574   (of-object "GRegex")
6575   (c-name "g_regex_get_max_backref")
6576   (return-type "gint")
6577 )
6578
6579 (define-method get_capture_count
6580   (of-object "GRegex")
6581   (c-name "g_regex_get_capture_count")
6582   (return-type "gint")
6583 )
6584
6585 (define-method get_string_number
6586   (of-object "GRegex")
6587   (c-name "g_regex_get_string_number")
6588   (return-type "gint")
6589   (parameters
6590     '("const-gchar*" "name")
6591   )
6592 )
6593
6594 (define-function g_regex_escape_string
6595   (c-name "g_regex_escape_string")
6596   (return-type "gchar*")
6597   (parameters
6598     '("const-gchar*" "string")
6599     '("gint" "length")
6600   )
6601 )
6602
6603 (define-function g_regex_match_simple
6604   (c-name "g_regex_match_simple")
6605   (return-type "gboolean")
6606   (parameters
6607     '("const-gchar*" "pattern")
6608     '("const-gchar*" "string")
6609     '("GRegexCompileFlags" "compile_options")
6610     '("GRegexMatchFlags" "match_options")
6611   )
6612 )
6613
6614 (define-method match
6615   (of-object "GRegex")
6616   (c-name "g_regex_match")
6617   (return-type "gboolean")
6618   (parameters
6619     '("const-gchar*" "string")
6620     '("GRegexMatchFlags" "match_options")
6621     '("GMatchInfo**" "match_info")
6622   )
6623 )
6624
6625 (define-method match_full
6626   (of-object "GRegex")
6627   (c-name "g_regex_match_full")
6628   (return-type "gboolean")
6629   (parameters
6630     '("const-gchar*" "string")
6631     '("gssize" "string_len")
6632     '("gint" "start_position")
6633     '("GRegexMatchFlags" "match_options")
6634     '("GMatchInfo**" "match_info")
6635     '("GError**" "error")
6636   )
6637 )
6638
6639 (define-method match_all
6640   (of-object "GRegex")
6641   (c-name "g_regex_match_all")
6642   (return-type "gboolean")
6643   (parameters
6644     '("const-gchar*" "string")
6645     '("GRegexMatchFlags" "match_options")
6646     '("GMatchInfo**" "match_info")
6647   )
6648 )
6649
6650 (define-method match_all_full
6651   (of-object "GRegex")
6652   (c-name "g_regex_match_all_full")
6653   (return-type "gboolean")
6654   (parameters
6655     '("const-gchar*" "string")
6656     '("gssize" "string_len")
6657     '("gint" "start_position")
6658     '("GRegexMatchFlags" "match_options")
6659     '("GMatchInfo**" "match_info")
6660     '("GError**" "error")
6661   )
6662 )
6663
6664 (define-function g_regex_split_simple
6665   (c-name "g_regex_split_simple")
6666   (return-type "gchar**")
6667   (parameters
6668     '("const-gchar*" "pattern")
6669     '("const-gchar*" "string")
6670     '("GRegexCompileFlags" "compile_options")
6671     '("GRegexMatchFlags" "match_options")
6672   )
6673 )
6674
6675 (define-method split
6676   (of-object "GRegex")
6677   (c-name "g_regex_split")
6678   (return-type "gchar**")
6679   (parameters
6680     '("const-gchar*" "string")
6681     '("GRegexMatchFlags" "match_options")
6682   )
6683 )
6684
6685 (define-method split_full
6686   (of-object "GRegex")
6687   (c-name "g_regex_split_full")
6688   (return-type "gchar**")
6689   (parameters
6690     '("const-gchar*" "string")
6691     '("gssize" "string_len")
6692     '("gint" "start_position")
6693     '("GRegexMatchFlags" "match_options")
6694     '("gint" "max_tokens")
6695     '("GError**" "error")
6696   )
6697 )
6698
6699 (define-method replace
6700   (of-object "GRegex")
6701   (c-name "g_regex_replace")
6702   (return-type "gchar*")
6703   (parameters
6704     '("const-gchar*" "string")
6705     '("gssize" "string_len")
6706     '("gint" "start_position")
6707     '("const-gchar*" "replacement")
6708     '("GRegexMatchFlags" "match_options")
6709     '("GError**" "error")
6710   )
6711 )
6712
6713 (define-method replace_literal
6714   (of-object "GRegex")
6715   (c-name "g_regex_replace_literal")
6716   (return-type "gchar*")
6717   (parameters
6718     '("const-gchar*" "string")
6719     '("gssize" "string_len")
6720     '("gint" "start_position")
6721     '("const-gchar*" "replacement")
6722     '("GRegexMatchFlags" "match_options")
6723     '("GError**" "error")
6724   )
6725 )
6726
6727 (define-method replace_eval
6728   (of-object "GRegex")
6729   (c-name "g_regex_replace_eval")
6730   (return-type "gchar*")
6731   (parameters
6732     '("const-gchar*" "string")
6733     '("gssize" "string_len")
6734     '("gint" "start_position")
6735     '("GRegexMatchFlags" "match_options")
6736     '("GRegexEvalCallback" "eval")
6737     '("gpointer" "user_data")
6738     '("GError**" "error")
6739   )
6740 )
6741
6742 (define-function g_regex_check_replacement
6743   (c-name "g_regex_check_replacement")
6744   (return-type "gboolean")
6745   (parameters
6746     '("const-gchar*" "replacement")
6747     '("gboolean*" "has_references")
6748     '("GError**" "error")
6749   )
6750 )
6751
6752 (define-method get_regex
6753   (of-object "GMatchInfo")
6754   (c-name "g_match_info_get_regex")
6755   (return-type "GRegex*")
6756 )
6757
6758 (define-method get_string
6759   (of-object "GMatchInfo")
6760   (c-name "g_match_info_get_string")
6761   (return-type "const-gchar*")
6762 )
6763
6764 (define-method free
6765   (of-object "GMatchInfo")
6766   (c-name "g_match_info_free")
6767   (return-type "none")
6768 )
6769
6770 (define-method next
6771   (of-object "GMatchInfo")
6772   (c-name "g_match_info_next")
6773   (return-type "gboolean")
6774   (parameters
6775     '("GError**" "error")
6776   )
6777 )
6778
6779 (define-method matches
6780   (of-object "GMatchInfo")
6781   (c-name "g_match_info_matches")
6782   (return-type "gboolean")
6783 )
6784
6785 (define-method get_match_count
6786   (of-object "GMatchInfo")
6787   (c-name "g_match_info_get_match_count")
6788   (return-type "gint")
6789 )
6790
6791 (define-method is_partial_match
6792   (of-object "GMatchInfo")
6793   (c-name "g_match_info_is_partial_match")
6794   (return-type "gboolean")
6795 )
6796
6797 (define-method expand_references
6798   (of-object "GMatchInfo")
6799   (c-name "g_match_info_expand_references")
6800   (return-type "gchar*")
6801   (parameters
6802     '("const-gchar*" "string_to_expand")
6803     '("GError**" "error")
6804   )
6805 )
6806
6807 (define-method fetch
6808   (of-object "GMatchInfo")
6809   (c-name "g_match_info_fetch")
6810   (return-type "gchar*")
6811   (parameters
6812     '("gint" "match_num")
6813   )
6814 )
6815
6816 (define-method fetch_pos
6817   (of-object "GMatchInfo")
6818   (c-name "g_match_info_fetch_pos")
6819   (return-type "gboolean")
6820   (parameters
6821     '("gint" "match_num")
6822     '("gint*" "start_pos")
6823     '("gint*" "end_pos")
6824   )
6825 )
6826
6827 (define-method fetch_named
6828   (of-object "GMatchInfo")
6829   (c-name "g_match_info_fetch_named")
6830   (return-type "gchar*")
6831   (parameters
6832     '("const-gchar*" "name")
6833   )
6834 )
6835
6836 (define-method fetch_named_pos
6837   (of-object "GMatchInfo")
6838   (c-name "g_match_info_fetch_named_pos")
6839   (return-type "gboolean")
6840   (parameters
6841     '("const-gchar*" "name")
6842     '("gint*" "start_pos")
6843     '("gint*" "end_pos")
6844   )
6845 )
6846
6847 (define-method fetch_all
6848   (of-object "GMatchInfo")
6849   (c-name "g_match_info_fetch_all")
6850   (return-type "gchar**")
6851 )
6852
6853
6854
6855 ;; From grel.h
6856
6857 (define-function g_relation_new
6858   (c-name "g_relation_new")
6859   (is-constructor-of "GRelation")
6860   (return-type "GRelation*")
6861   (parameters
6862     '("gint" "fields")
6863   )
6864 )
6865
6866 (define-method destroy
6867   (of-object "GRelation")
6868   (c-name "g_relation_destroy")
6869   (return-type "none")
6870 )
6871
6872 (define-method index
6873   (of-object "GRelation")
6874   (c-name "g_relation_index")
6875   (return-type "none")
6876   (parameters
6877     '("gint" "field")
6878     '("GHashFunc" "hash_func")
6879     '("GEqualFunc" "key_equal_func")
6880   )
6881 )
6882
6883 (define-method insert
6884   (of-object "GRelation")
6885   (c-name "g_relation_insert")
6886   (return-type "none")
6887   (parameters
6888   )
6889   (varargs #t)
6890 )
6891
6892 (define-method delete
6893   (of-object "GRelation")
6894   (c-name "g_relation_delete")
6895   (return-type "gint")
6896   (parameters
6897     '("gconstpointer" "key")
6898     '("gint" "field")
6899   )
6900 )
6901
6902 (define-method select
6903   (of-object "GRelation")
6904   (c-name "g_relation_select")
6905   (return-type "GTuples*")
6906   (parameters
6907     '("gconstpointer" "key")
6908     '("gint" "field")
6909   )
6910 )
6911
6912 (define-method count
6913   (of-object "GRelation")
6914   (c-name "g_relation_count")
6915   (return-type "gint")
6916   (parameters
6917     '("gconstpointer" "key")
6918     '("gint" "field")
6919   )
6920 )
6921
6922 (define-method exists
6923   (of-object "GRelation")
6924   (c-name "g_relation_exists")
6925   (return-type "gboolean")
6926   (parameters
6927   )
6928   (varargs #t)
6929 )
6930
6931 (define-method print
6932   (of-object "GRelation")
6933   (c-name "g_relation_print")
6934   (return-type "none")
6935 )
6936
6937 (define-method destroy
6938   (of-object "GTuples")
6939   (c-name "g_tuples_destroy")
6940   (return-type "none")
6941 )
6942
6943 (define-method index
6944   (of-object "GTuples")
6945   (c-name "g_tuples_index")
6946   (return-type "gpointer")
6947   (parameters
6948     '("gint" "index_")
6949     '("gint" "field")
6950   )
6951 )
6952
6953
6954
6955 ;; From gscanner.h
6956
6957 (define-function g_scanner_new
6958   (c-name "g_scanner_new")
6959   (is-constructor-of "GScanner")
6960   (return-type "GScanner*")
6961   (parameters
6962     '("const-GScannerConfig*" "config_templ")
6963   )
6964 )
6965
6966 (define-method destroy
6967   (of-object "GScanner")
6968   (c-name "g_scanner_destroy")
6969   (return-type "none")
6970 )
6971
6972 (define-method input_file
6973   (of-object "GScanner")
6974   (c-name "g_scanner_input_file")
6975   (return-type "none")
6976   (parameters
6977     '("gint" "input_fd")
6978   )
6979 )
6980
6981 (define-method sync_file_offset
6982   (of-object "GScanner")
6983   (c-name "g_scanner_sync_file_offset")
6984   (return-type "none")
6985 )
6986
6987 (define-method input_text
6988   (of-object "GScanner")
6989   (c-name "g_scanner_input_text")
6990   (return-type "none")
6991   (parameters
6992     '("const-gchar*" "text")
6993     '("guint" "text_len")
6994   )
6995 )
6996
6997 (define-method get_next_token
6998   (of-object "GScanner")
6999   (c-name "g_scanner_get_next_token")
7000   (return-type "GTokenType")
7001 )
7002
7003 (define-method peek_next_token
7004   (of-object "GScanner")
7005   (c-name "g_scanner_peek_next_token")
7006   (return-type "GTokenType")
7007 )
7008
7009 (define-method cur_token
7010   (of-object "GScanner")
7011   (c-name "g_scanner_cur_token")
7012   (return-type "GTokenType")
7013 )
7014
7015 (define-method cur_value
7016   (of-object "GScanner")
7017   (c-name "g_scanner_cur_value")
7018   (return-type "GTokenValue")
7019 )
7020
7021 (define-method cur_line
7022   (of-object "GScanner")
7023   (c-name "g_scanner_cur_line")
7024   (return-type "guint")
7025 )
7026
7027 (define-method cur_position
7028   (of-object "GScanner")
7029   (c-name "g_scanner_cur_position")
7030   (return-type "guint")
7031 )
7032
7033 (define-method eof
7034   (of-object "GScanner")
7035   (c-name "g_scanner_eof")
7036   (return-type "gboolean")
7037 )
7038
7039 (define-method set_scope
7040   (of-object "GScanner")
7041   (c-name "g_scanner_set_scope")
7042   (return-type "guint")
7043   (parameters
7044     '("guint" "scope_id")
7045   )
7046 )
7047
7048 (define-method scope_add_symbol
7049   (of-object "GScanner")
7050   (c-name "g_scanner_scope_add_symbol")
7051   (return-type "none")
7052   (parameters
7053     '("guint" "scope_id")
7054     '("const-gchar*" "symbol")
7055     '("gpointer" "value")
7056   )
7057 )
7058
7059 (define-method scope_remove_symbol
7060   (of-object "GScanner")
7061   (c-name "g_scanner_scope_remove_symbol")
7062   (return-type "none")
7063   (parameters
7064     '("guint" "scope_id")
7065     '("const-gchar*" "symbol")
7066   )
7067 )
7068
7069 (define-method scope_lookup_symbol
7070   (of-object "GScanner")
7071   (c-name "g_scanner_scope_lookup_symbol")
7072   (return-type "gpointer")
7073   (parameters
7074     '("guint" "scope_id")
7075     '("const-gchar*" "symbol")
7076   )
7077 )
7078
7079 (define-method scope_foreach_symbol
7080   (of-object "GScanner")
7081   (c-name "g_scanner_scope_foreach_symbol")
7082   (return-type "none")
7083   (parameters
7084     '("guint" "scope_id")
7085     '("GHFunc" "func")
7086     '("gpointer" "user_data")
7087   )
7088 )
7089
7090 (define-method lookup_symbol
7091   (of-object "GScanner")
7092   (c-name "g_scanner_lookup_symbol")
7093   (return-type "gpointer")
7094   (parameters
7095     '("const-gchar*" "symbol")
7096   )
7097 )
7098
7099 (define-method unexp_token
7100   (of-object "GScanner")
7101   (c-name "g_scanner_unexp_token")
7102   (return-type "none")
7103   (parameters
7104     '("GTokenType" "expected_token")
7105     '("const-gchar*" "identifier_spec")
7106     '("const-gchar*" "symbol_spec")
7107     '("const-gchar*" "symbol_name")
7108     '("const-gchar*" "message")
7109     '("gint" "is_error")
7110   )
7111 )
7112
7113 (define-method error
7114   (of-object "GScanner")
7115   (c-name "g_scanner_error")
7116   (return-type "none")
7117   (parameters
7118     '("const-gchar*" "format")
7119   )
7120   (varargs #t)
7121 )
7122
7123 (define-method warn
7124   (of-object "GScanner")
7125   (c-name "g_scanner_warn")
7126   (return-type "none")
7127   (parameters
7128     '("const-gchar*" "format")
7129   )
7130   (varargs #t)
7131 )
7132
7133
7134
7135 ;; From gscripttable.h
7136
7137
7138
7139 ;; From gsequence.h
7140
7141 (define-function g_sequence_new
7142   (c-name "g_sequence_new")
7143   (is-constructor-of "GSequence")
7144   (return-type "GSequence*")
7145   (parameters
7146     '("GDestroyNotify" "data_destroy")
7147   )
7148 )
7149
7150 (define-method free
7151   (of-object "GSequence")
7152   (c-name "g_sequence_free")
7153   (return-type "none")
7154 )
7155
7156 (define-method get_length
7157   (of-object "GSequence")
7158   (c-name "g_sequence_get_length")
7159   (return-type "gint")
7160 )
7161
7162 (define-method foreach
7163   (of-object "GSequence")
7164   (c-name "g_sequence_foreach")
7165   (return-type "none")
7166   (parameters
7167     '("GFunc" "func")
7168     '("gpointer" "user_data")
7169   )
7170 )
7171
7172 (define-function g_sequence_foreach_range
7173   (c-name "g_sequence_foreach_range")
7174   (return-type "none")
7175   (parameters
7176     '("GSequenceIter*" "begin")
7177     '("GSequenceIter*" "end")
7178     '("GFunc" "func")
7179     '("gpointer" "user_data")
7180   )
7181 )
7182
7183 (define-method sort
7184   (of-object "GSequence")
7185   (c-name "g_sequence_sort")
7186   (return-type "none")
7187   (parameters
7188     '("GCompareDataFunc" "cmp_func")
7189     '("gpointer" "cmp_data")
7190   )
7191 )
7192
7193 (define-method sort_iter
7194   (of-object "GSequence")
7195   (c-name "g_sequence_sort_iter")
7196   (return-type "none")
7197   (parameters
7198     '("GSequenceIterCompareFunc" "cmp_func")
7199     '("gpointer" "cmp_data")
7200   )
7201 )
7202
7203 (define-method get_begin_iter
7204   (of-object "GSequence")
7205   (c-name "g_sequence_get_begin_iter")
7206   (return-type "GSequenceIter*")
7207 )
7208
7209 (define-method get_end_iter
7210   (of-object "GSequence")
7211   (c-name "g_sequence_get_end_iter")
7212   (return-type "GSequenceIter*")
7213 )
7214
7215 (define-method get_iter_at_pos
7216   (of-object "GSequence")
7217   (c-name "g_sequence_get_iter_at_pos")
7218   (return-type "GSequenceIter*")
7219   (parameters
7220     '("gint" "pos")
7221   )
7222 )
7223
7224 (define-method append
7225   (of-object "GSequence")
7226   (c-name "g_sequence_append")
7227   (return-type "GSequenceIter*")
7228   (parameters
7229     '("gpointer" "data")
7230   )
7231 )
7232
7233 (define-method prepend
7234   (of-object "GSequence")
7235   (c-name "g_sequence_prepend")
7236   (return-type "GSequenceIter*")
7237   (parameters
7238     '("gpointer" "data")
7239   )
7240 )
7241
7242 (define-function g_sequence_insert_before
7243   (c-name "g_sequence_insert_before")
7244   (return-type "GSequenceIter*")
7245   (parameters
7246     '("GSequenceIter*" "iter")
7247     '("gpointer" "data")
7248   )
7249 )
7250
7251 (define-function g_sequence_move
7252   (c-name "g_sequence_move")
7253   (return-type "none")
7254   (parameters
7255     '("GSequenceIter*" "src")
7256     '("GSequenceIter*" "dest")
7257   )
7258 )
7259
7260 (define-function g_sequence_swap
7261   (c-name "g_sequence_swap")
7262   (return-type "none")
7263   (parameters
7264     '("GSequenceIter*" "a")
7265     '("GSequenceIter*" "b")
7266   )
7267 )
7268
7269 (define-method insert_sorted
7270   (of-object "GSequence")
7271   (c-name "g_sequence_insert_sorted")
7272   (return-type "GSequenceIter*")
7273   (parameters
7274     '("gpointer" "data")
7275     '("GCompareDataFunc" "cmp_func")
7276     '("gpointer" "cmp_data")
7277   )
7278 )
7279
7280 (define-method insert_sorted_iter
7281   (of-object "GSequence")
7282   (c-name "g_sequence_insert_sorted_iter")
7283   (return-type "GSequenceIter*")
7284   (parameters
7285     '("gpointer" "data")
7286     '("GSequenceIterCompareFunc" "iter_cmp")
7287     '("gpointer" "cmp_data")
7288   )
7289 )
7290
7291 (define-function g_sequence_sort_changed
7292   (c-name "g_sequence_sort_changed")
7293   (return-type "none")
7294   (parameters
7295     '("GSequenceIter*" "iter")
7296     '("GCompareDataFunc" "cmp_func")
7297     '("gpointer" "cmp_data")
7298   )
7299 )
7300
7301 (define-function g_sequence_sort_changed_iter
7302   (c-name "g_sequence_sort_changed_iter")
7303   (return-type "none")
7304   (parameters
7305     '("GSequenceIter*" "iter")
7306     '("GSequenceIterCompareFunc" "iter_cmp")
7307     '("gpointer" "cmp_data")
7308   )
7309 )
7310
7311 (define-function g_sequence_remove
7312   (c-name "g_sequence_remove")
7313   (return-type "none")
7314   (parameters
7315     '("GSequenceIter*" "iter")
7316   )
7317 )
7318
7319 (define-function g_sequence_remove_range
7320   (c-name "g_sequence_remove_range")
7321   (return-type "none")
7322   (parameters
7323     '("GSequenceIter*" "begin")
7324     '("GSequenceIter*" "end")
7325   )
7326 )
7327
7328 (define-function g_sequence_move_range
7329   (c-name "g_sequence_move_range")
7330   (return-type "none")
7331   (parameters
7332     '("GSequenceIter*" "dest")
7333     '("GSequenceIter*" "begin")
7334     '("GSequenceIter*" "end")
7335   )
7336 )
7337
7338 (define-method search
7339   (of-object "GSequence")
7340   (c-name "g_sequence_search")
7341   (return-type "GSequenceIter*")
7342   (parameters
7343     '("gpointer" "data")
7344     '("GCompareDataFunc" "cmp_func")
7345     '("gpointer" "cmp_data")
7346   )
7347 )
7348
7349 (define-method search_iter
7350   (of-object "GSequence")
7351   (c-name "g_sequence_search_iter")
7352   (return-type "GSequenceIter*")
7353   (parameters
7354     '("gpointer" "data")
7355     '("GSequenceIterCompareFunc" "iter_cmp")
7356     '("gpointer" "cmp_data")
7357   )
7358 )
7359
7360 (define-function g_sequence_get
7361   (c-name "g_sequence_get")
7362   (return-type "gpointer")
7363   (parameters
7364     '("GSequenceIter*" "iter")
7365   )
7366 )
7367
7368 (define-function g_sequence_set
7369   (c-name "g_sequence_set")
7370   (return-type "none")
7371   (parameters
7372     '("GSequenceIter*" "iter")
7373     '("gpointer" "data")
7374   )
7375 )
7376
7377 (define-method is_begin
7378   (of-object "GSequenceIter")
7379   (c-name "g_sequence_iter_is_begin")
7380   (return-type "gboolean")
7381 )
7382
7383 (define-method is_end
7384   (of-object "GSequenceIter")
7385   (c-name "g_sequence_iter_is_end")
7386   (return-type "gboolean")
7387 )
7388
7389 (define-method next
7390   (of-object "GSequenceIter")
7391   (c-name "g_sequence_iter_next")
7392   (return-type "GSequenceIter*")
7393 )
7394
7395 (define-method prev
7396   (of-object "GSequenceIter")
7397   (c-name "g_sequence_iter_prev")
7398   (return-type "GSequenceIter*")
7399 )
7400
7401 (define-method get_position
7402   (of-object "GSequenceIter")
7403   (c-name "g_sequence_iter_get_position")
7404   (return-type "gint")
7405 )
7406
7407 (define-method move
7408   (of-object "GSequenceIter")
7409   (c-name "g_sequence_iter_move")
7410   (return-type "GSequenceIter*")
7411   (parameters
7412     '("gint" "delta")
7413   )
7414 )
7415
7416 (define-method get_sequence
7417   (of-object "GSequenceIter")
7418   (c-name "g_sequence_iter_get_sequence")
7419   (return-type "GSequence*")
7420 )
7421
7422 (define-method compare
7423   (of-object "GSequenceIter")
7424   (c-name "g_sequence_iter_compare")
7425   (return-type "gint")
7426   (parameters
7427     '("GSequenceIter*" "b")
7428   )
7429 )
7430
7431 (define-function g_sequence_range_get_midpoint
7432   (c-name "g_sequence_range_get_midpoint")
7433   (return-type "GSequenceIter*")
7434   (parameters
7435     '("GSequenceIter*" "begin")
7436     '("GSequenceIter*" "end")
7437   )
7438 )
7439
7440
7441
7442 ;; From gshell.h
7443
7444 (define-function g_shell_error_quark
7445   (c-name "g_shell_error_quark")
7446   (return-type "GQuark")
7447 )
7448
7449 (define-function g_shell_quote
7450   (c-name "g_shell_quote")
7451   (return-type "gchar*")
7452   (parameters
7453     '("const-gchar*" "unquoted_string")
7454   )
7455 )
7456
7457 (define-function g_shell_unquote
7458   (c-name "g_shell_unquote")
7459   (return-type "gchar*")
7460   (parameters
7461     '("const-gchar*" "quoted_string")
7462     '("GError**" "error")
7463   )
7464 )
7465
7466 (define-function g_shell_parse_argv
7467   (c-name "g_shell_parse_argv")
7468   (return-type "gboolean")
7469   (parameters
7470     '("const-gchar*" "command_line")
7471     '("gint*" "argcp")
7472     '("gchar***" "argvp")
7473     '("GError**" "error")
7474   )
7475 )
7476
7477
7478
7479 ;; From gslice.h
7480
7481 (define-function g_slice_alloc
7482   (c-name "g_slice_alloc")
7483   (return-type "gpointer")
7484   (parameters
7485     '("gsize" "block_size")
7486   )
7487 )
7488
7489 (define-function g_slice_alloc0
7490   (c-name "g_slice_alloc0")
7491   (return-type "gpointer")
7492   (parameters
7493     '("gsize" "block_size")
7494   )
7495 )
7496
7497 (define-function g_slice_free1
7498   (c-name "g_slice_free1")
7499   (return-type "none")
7500   (parameters
7501     '("gsize" "block_size")
7502     '("gpointer" "mem_block")
7503   )
7504 )
7505
7506 (define-function g_slice_free_chain_with_offset
7507   (c-name "g_slice_free_chain_with_offset")
7508   (return-type "none")
7509   (parameters
7510     '("gsize" "block_size")
7511     '("gpointer" "mem_chain")
7512     '("gsize" "next_offset")
7513   )
7514 )
7515
7516 (define-function g_slice_set_config
7517   (c-name "g_slice_set_config")
7518   (return-type "none")
7519   (parameters
7520     '("GSliceConfig" "ckey")
7521     '("gint64" "value")
7522   )
7523 )
7524
7525 (define-function g_slice_get_config
7526   (c-name "g_slice_get_config")
7527   (return-type "gint64")
7528   (parameters
7529     '("GSliceConfig" "ckey")
7530   )
7531 )
7532
7533 (define-function g_slice_get_config_state
7534   (c-name "g_slice_get_config_state")
7535   (return-type "gint64*")
7536   (parameters
7537     '("GSliceConfig" "ckey")
7538     '("gint64" "address")
7539     '("guint*" "n_values")
7540   )
7541 )
7542
7543
7544
7545 ;; From gslist.h
7546
7547 (define-function g_slist_alloc
7548   (c-name "g_slist_alloc")
7549   (return-type "GSList*")
7550 )
7551
7552 (define-method free
7553   (of-object "GSList")
7554   (c-name "g_slist_free")
7555   (return-type "none")
7556 )
7557
7558 (define-method free_1
7559   (of-object "GSList")
7560   (c-name "g_slist_free_1")
7561   (return-type "none")
7562 )
7563
7564 (define-method append
7565   (of-object "GSList")
7566   (c-name "g_slist_append")
7567   (return-type "GSList*")
7568   (parameters
7569     '("gpointer" "data")
7570   )
7571 )
7572
7573 (define-method prepend
7574   (of-object "GSList")
7575   (c-name "g_slist_prepend")
7576   (return-type "GSList*")
7577   (parameters
7578     '("gpointer" "data")
7579   )
7580 )
7581
7582 (define-method insert
7583   (of-object "GSList")
7584   (c-name "g_slist_insert")
7585   (return-type "GSList*")
7586   (parameters
7587     '("gpointer" "data")
7588     '("gint" "position")
7589   )
7590 )
7591
7592 (define-method insert_sorted
7593   (of-object "GSList")
7594   (c-name "g_slist_insert_sorted")
7595   (return-type "GSList*")
7596   (parameters
7597     '("gpointer" "data")
7598     '("GCompareFunc" "func")
7599   )
7600 )
7601
7602 (define-method insert_sorted_with_data
7603   (of-object "GSList")
7604   (c-name "g_slist_insert_sorted_with_data")
7605   (return-type "GSList*")
7606   (parameters
7607     '("gpointer" "data")
7608     '("GCompareDataFunc" "func")
7609     '("gpointer" "user_data")
7610   )
7611 )
7612
7613 (define-method insert_before
7614   (of-object "GSList")
7615   (c-name "g_slist_insert_before")
7616   (return-type "GSList*")
7617   (parameters
7618     '("GSList*" "sibling")
7619     '("gpointer" "data")
7620   )
7621 )
7622
7623 (define-method concat
7624   (of-object "GSList")
7625   (c-name "g_slist_concat")
7626   (return-type "GSList*")
7627   (parameters
7628     '("GSList*" "list2")
7629   )
7630 )
7631
7632 (define-method remove
7633   (of-object "GSList")
7634   (c-name "g_slist_remove")
7635   (return-type "GSList*")
7636   (parameters
7637     '("gconstpointer" "data")
7638   )
7639 )
7640
7641 (define-method remove_all
7642   (of-object "GSList")
7643   (c-name "g_slist_remove_all")
7644   (return-type "GSList*")
7645   (parameters
7646     '("gconstpointer" "data")
7647   )
7648 )
7649
7650 (define-method remove_link
7651   (of-object "GSList")
7652   (c-name "g_slist_remove_link")
7653   (return-type "GSList*")
7654   (parameters
7655     '("GSList*" "link_")
7656   )
7657 )
7658
7659 (define-method delete_link
7660   (of-object "GSList")
7661   (c-name "g_slist_delete_link")
7662   (return-type "GSList*")
7663   (parameters
7664     '("GSList*" "link_")
7665   )
7666 )
7667
7668 (define-method reverse
7669   (of-object "GSList")
7670   (c-name "g_slist_reverse")
7671   (return-type "GSList*")
7672 )
7673
7674 (define-method copy
7675   (of-object "GSList")
7676   (c-name "g_slist_copy")
7677   (return-type "GSList*")
7678 )
7679
7680 (define-method nth
7681   (of-object "GSList")
7682   (c-name "g_slist_nth")
7683   (return-type "GSList*")
7684   (parameters
7685     '("guint" "n")
7686   )
7687 )
7688
7689 (define-method find
7690   (of-object "GSList")
7691   (c-name "g_slist_find")
7692   (return-type "GSList*")
7693   (parameters
7694     '("gconstpointer" "data")
7695   )
7696 )
7697
7698 (define-method find_custom
7699   (of-object "GSList")
7700   (c-name "g_slist_find_custom")
7701   (return-type "GSList*")
7702   (parameters
7703     '("gconstpointer" "data")
7704     '("GCompareFunc" "func")
7705   )
7706 )
7707
7708 (define-method position
7709   (of-object "GSList")
7710   (c-name "g_slist_position")
7711   (return-type "gint")
7712   (parameters
7713     '("GSList*" "llink")
7714   )
7715 )
7716
7717 (define-method index
7718   (of-object "GSList")
7719   (c-name "g_slist_index")
7720   (return-type "gint")
7721   (parameters
7722     '("gconstpointer" "data")
7723   )
7724 )
7725
7726 (define-method last
7727   (of-object "GSList")
7728   (c-name "g_slist_last")
7729   (return-type "GSList*")
7730 )
7731
7732 (define-method length
7733   (of-object "GSList")
7734   (c-name "g_slist_length")
7735   (return-type "guint")
7736 )
7737
7738 (define-method foreach
7739   (of-object "GSList")
7740   (c-name "g_slist_foreach")
7741   (return-type "none")
7742   (parameters
7743     '("GFunc" "func")
7744     '("gpointer" "user_data")
7745   )
7746 )
7747
7748 (define-method sort
7749   (of-object "GSList")
7750   (c-name "g_slist_sort")
7751   (return-type "GSList*")
7752   (parameters
7753     '("GCompareFunc" "compare_func")
7754   )
7755 )
7756
7757 (define-method sort_with_data
7758   (of-object "GSList")
7759   (c-name "g_slist_sort_with_data")
7760   (return-type "GSList*")
7761   (parameters
7762     '("GCompareDataFunc" "compare_func")
7763     '("gpointer" "user_data")
7764   )
7765 )
7766
7767 (define-method nth_data
7768   (of-object "GSList")
7769   (c-name "g_slist_nth_data")
7770   (return-type "gpointer")
7771   (parameters
7772     '("guint" "n")
7773   )
7774 )
7775
7776 (define-function g_slist_push_allocator
7777   (c-name "g_slist_push_allocator")
7778   (return-type "none")
7779   (parameters
7780     '("gpointer" "dummy")
7781   )
7782 )
7783
7784 (define-function g_slist_pop_allocator
7785   (c-name "g_slist_pop_allocator")
7786   (return-type "none")
7787 )
7788
7789
7790
7791 ;; From gspawn.h
7792
7793 (define-function g_spawn_error_quark
7794   (c-name "g_spawn_error_quark")
7795   (return-type "GQuark")
7796 )
7797
7798 (define-function g_spawn_async
7799   (c-name "g_spawn_async")
7800   (return-type "gboolean")
7801   (parameters
7802     '("const-gchar*" "working_directory")
7803     '("gchar**" "argv")
7804     '("gchar**" "envp")
7805     '("GSpawnFlags" "flags")
7806     '("GSpawnChildSetupFunc" "child_setup")
7807     '("gpointer" "user_data")
7808     '("GPid*" "child_pid")
7809     '("GError**" "error")
7810   )
7811 )
7812
7813 (define-function g_spawn_async_with_pipes
7814   (c-name "g_spawn_async_with_pipes")
7815   (return-type "gboolean")
7816   (parameters
7817     '("const-gchar*" "working_directory")
7818     '("gchar**" "argv")
7819     '("gchar**" "envp")
7820     '("GSpawnFlags" "flags")
7821     '("GSpawnChildSetupFunc" "child_setup")
7822     '("gpointer" "user_data")
7823     '("GPid*" "child_pid")
7824     '("gint*" "standard_input")
7825     '("gint*" "standard_output")
7826     '("gint*" "standard_error")
7827     '("GError**" "error")
7828   )
7829 )
7830
7831 (define-function g_spawn_sync
7832   (c-name "g_spawn_sync")
7833   (return-type "gboolean")
7834   (parameters
7835     '("const-gchar*" "working_directory")
7836     '("gchar**" "argv")
7837     '("gchar**" "envp")
7838     '("GSpawnFlags" "flags")
7839     '("GSpawnChildSetupFunc" "child_setup")
7840     '("gpointer" "user_data")
7841     '("gchar**" "standard_output")
7842     '("gchar**" "standard_error")
7843     '("gint*" "exit_status")
7844     '("GError**" "error")
7845   )
7846 )
7847
7848 (define-function g_spawn_command_line_sync
7849   (c-name "g_spawn_command_line_sync")
7850   (return-type "gboolean")
7851   (parameters
7852     '("const-gchar*" "command_line")
7853     '("gchar**" "standard_output")
7854     '("gchar**" "standard_error")
7855     '("gint*" "exit_status")
7856     '("GError**" "error")
7857   )
7858 )
7859
7860 (define-function g_spawn_command_line_async
7861   (c-name "g_spawn_command_line_async")
7862   (return-type "gboolean")
7863   (parameters
7864     '("const-gchar*" "command_line")
7865     '("GError**" "error")
7866   )
7867 )
7868
7869 (define-function g_spawn_close_pid
7870   (c-name "g_spawn_close_pid")
7871   (return-type "none")
7872   (parameters
7873     '("GPid" "pid")
7874   )
7875 )
7876
7877
7878
7879 ;; From gstdio.h
7880
7881 (define-function g_access
7882   (c-name "g_access")
7883   (return-type "int")
7884   (parameters
7885     '("const-gchar*" "filename")
7886     '("int" "mode")
7887   )
7888 )
7889
7890 (define-function g_chdir
7891   (c-name "g_chdir")
7892   (return-type "int")
7893   (parameters
7894     '("const-gchar*" "path")
7895   )
7896 )
7897
7898 (define-function g_unlink
7899   (c-name "g_unlink")
7900   (return-type "int")
7901   (parameters
7902     '("const-gchar*" "filename")
7903   )
7904 )
7905
7906 (define-function g_rmdir
7907   (c-name "g_rmdir")
7908   (return-type "int")
7909   (parameters
7910     '("const-gchar*" "filename")
7911   )
7912 )
7913
7914 (define-function g_access
7915   (c-name "g_access")
7916   (return-type "int")
7917   (parameters
7918     '("const-gchar*" "filename")
7919     '("int" "mode")
7920   )
7921 )
7922
7923 (define-function g_chmod
7924   (c-name "g_chmod")
7925   (return-type "int")
7926   (parameters
7927     '("const-gchar*" "filename")
7928     '("int" "mode")
7929   )
7930 )
7931
7932 (define-function g_open
7933   (c-name "g_open")
7934   (return-type "int")
7935   (parameters
7936     '("const-gchar*" "filename")
7937     '("int" "flags")
7938     '("int" "mode")
7939   )
7940 )
7941
7942 (define-function g_creat
7943   (c-name "g_creat")
7944   (return-type "int")
7945   (parameters
7946     '("const-gchar*" "filename")
7947     '("int" "mode")
7948   )
7949 )
7950
7951 (define-function g_rename
7952   (c-name "g_rename")
7953   (return-type "int")
7954   (parameters
7955     '("const-gchar*" "oldfilename")
7956     '("const-gchar*" "newfilename")
7957   )
7958 )
7959
7960 (define-function g_mkdir
7961   (c-name "g_mkdir")
7962   (return-type "int")
7963   (parameters
7964     '("const-gchar*" "filename")
7965     '("int" "mode")
7966   )
7967 )
7968
7969 (define-function g_chdir
7970   (c-name "g_chdir")
7971   (return-type "int")
7972   (parameters
7973     '("const-gchar*" "path")
7974   )
7975 )
7976
7977 (define-function g_stat
7978   (c-name "g_stat")
7979   (return-type "int")
7980   (parameters
7981     '("const-gchar*" "filename")
7982     '("struct-stat*" "buf")
7983   )
7984 )
7985
7986 (define-function g_lstat
7987   (c-name "g_lstat")
7988   (return-type "int")
7989   (parameters
7990     '("const-gchar*" "filename")
7991     '("struct-stat*" "buf")
7992   )
7993 )
7994
7995 (define-function g_unlink
7996   (c-name "g_unlink")
7997   (return-type "int")
7998   (parameters
7999     '("const-gchar*" "filename")
8000   )
8001 )
8002
8003 (define-function g_remove
8004   (c-name "g_remove")
8005   (return-type "int")
8006   (parameters
8007     '("const-gchar*" "filename")
8008   )
8009 )
8010
8011 (define-function g_rmdir
8012   (c-name "g_rmdir")
8013   (return-type "int")
8014   (parameters
8015     '("const-gchar*" "filename")
8016   )
8017 )
8018
8019 (define-function g_fopen
8020   (c-name "g_fopen")
8021   (return-type "FILE*")
8022   (parameters
8023     '("const-gchar*" "filename")
8024     '("const-gchar*" "mode")
8025   )
8026 )
8027
8028 (define-function g_freopen
8029   (c-name "g_freopen")
8030   (return-type "FILE*")
8031   (parameters
8032     '("const-gchar*" "filename")
8033     '("const-gchar*" "mode")
8034     '("FILE*" "stream")
8035   )
8036 )
8037
8038
8039
8040 ;; From gstrfuncs.h
8041
8042 (define-function g_ascii_tolower
8043   (c-name "g_ascii_tolower")
8044   (return-type "gchar")
8045   (parameters
8046     '("gchar" "c")
8047   )
8048 )
8049
8050 (define-function g_ascii_toupper
8051   (c-name "g_ascii_toupper")
8052   (return-type "gchar")
8053   (parameters
8054     '("gchar" "c")
8055   )
8056 )
8057
8058 (define-function g_ascii_digit_value
8059   (c-name "g_ascii_digit_value")
8060   (return-type "gint")
8061   (parameters
8062     '("gchar" "c")
8063   )
8064 )
8065
8066 (define-function g_ascii_xdigit_value
8067   (c-name "g_ascii_xdigit_value")
8068   (return-type "gint")
8069   (parameters
8070     '("gchar" "c")
8071   )
8072 )
8073
8074 (define-function g_strdelimit
8075   (c-name "g_strdelimit")
8076   (return-type "gchar*")
8077   (parameters
8078     '("gchar*" "string")
8079     '("const-gchar*" "delimiters")
8080     '("gchar" "new_delimiter")
8081   )
8082 )
8083
8084 (define-function g_strcanon
8085   (c-name "g_strcanon")
8086   (return-type "gchar*")
8087   (parameters
8088     '("gchar*" "string")
8089     '("const-gchar*" "valid_chars")
8090     '("gchar" "substitutor")
8091   )
8092 )
8093
8094 (define-function g_strerror
8095   (c-name "g_strerror")
8096   (return-type "const-gchar*")
8097   (parameters
8098     '("gint" "errnum")
8099   )
8100 )
8101
8102 (define-function g_strsignal
8103   (c-name "g_strsignal")
8104   (return-type "const-gchar*")
8105   (parameters
8106     '("gint" "signum")
8107   )
8108 )
8109
8110 (define-function g_strreverse
8111   (c-name "g_strreverse")
8112   (return-type "gchar*")
8113   (parameters
8114     '("gchar*" "string")
8115   )
8116 )
8117
8118 (define-function g_strlcpy
8119   (c-name "g_strlcpy")
8120   (return-type "gsize")
8121   (parameters
8122     '("gchar*" "dest")
8123     '("const-gchar*" "src")
8124     '("gsize" "dest_size")
8125   )
8126 )
8127
8128 (define-function g_strlcat
8129   (c-name "g_strlcat")
8130   (return-type "gsize")
8131   (parameters
8132     '("gchar*" "dest")
8133     '("const-gchar*" "src")
8134     '("gsize" "dest_size")
8135   )
8136 )
8137
8138 (define-function g_strstr_len
8139   (c-name "g_strstr_len")
8140   (return-type "gchar*")
8141   (parameters
8142     '("const-gchar*" "haystack")
8143     '("gssize" "haystack_len")
8144     '("const-gchar*" "needle")
8145   )
8146 )
8147
8148 (define-function g_strrstr
8149   (c-name "g_strrstr")
8150   (return-type "gchar*")
8151   (parameters
8152     '("const-gchar*" "haystack")
8153     '("const-gchar*" "needle")
8154   )
8155 )
8156
8157 (define-function g_strrstr_len
8158   (c-name "g_strrstr_len")
8159   (return-type "gchar*")
8160   (parameters
8161     '("const-gchar*" "haystack")
8162     '("gssize" "haystack_len")
8163     '("const-gchar*" "needle")
8164   )
8165 )
8166
8167 (define-function g_str_has_suffix
8168   (c-name "g_str_has_suffix")
8169   (return-type "gboolean")
8170   (parameters
8171     '("const-gchar*" "str")
8172     '("const-gchar*" "suffix")
8173   )
8174 )
8175
8176 (define-function g_str_has_prefix
8177   (c-name "g_str_has_prefix")
8178   (return-type "gboolean")
8179   (parameters
8180     '("const-gchar*" "str")
8181     '("const-gchar*" "prefix")
8182   )
8183 )
8184
8185 (define-function g_strtod
8186   (c-name "g_strtod")
8187   (return-type "gdouble")
8188   (parameters
8189     '("const-gchar*" "nptr")
8190     '("gchar**" "endptr")
8191   )
8192 )
8193
8194 (define-function g_ascii_strtod
8195   (c-name "g_ascii_strtod")
8196   (return-type "gdouble")
8197   (parameters
8198     '("const-gchar*" "nptr")
8199     '("gchar**" "endptr")
8200   )
8201 )
8202
8203 (define-function g_ascii_strtoull
8204   (c-name "g_ascii_strtoull")
8205   (return-type "guint64")
8206   (parameters
8207     '("const-gchar*" "nptr")
8208     '("gchar**" "endptr")
8209     '("guint" "base")
8210   )
8211 )
8212
8213 (define-function g_ascii_strtoll
8214   (c-name "g_ascii_strtoll")
8215   (return-type "gint64")
8216   (parameters
8217     '("const-gchar*" "nptr")
8218     '("gchar**" "endptr")
8219     '("guint" "base")
8220   )
8221 )
8222
8223 (define-function g_ascii_dtostr
8224   (c-name "g_ascii_dtostr")
8225   (return-type "gchar*")
8226   (parameters
8227     '("gchar*" "buffer")
8228     '("gint" "buf_len")
8229     '("gdouble" "d")
8230   )
8231 )
8232
8233 (define-function g_ascii_formatd
8234   (c-name "g_ascii_formatd")
8235   (return-type "gchar*")
8236   (parameters
8237     '("gchar*" "buffer")
8238     '("gint" "buf_len")
8239     '("const-gchar*" "format")
8240     '("gdouble" "d")
8241   )
8242 )
8243
8244 (define-function g_strchug
8245   (c-name "g_strchug")
8246   (return-type "gchar*")
8247   (parameters
8248     '("gchar*" "string")
8249   )
8250 )
8251
8252 (define-function g_strchomp
8253   (c-name "g_strchomp")
8254   (return-type "gchar*")
8255   (parameters
8256     '("gchar*" "string")
8257   )
8258 )
8259
8260 (define-function g_ascii_strcasecmp
8261   (c-name "g_ascii_strcasecmp")
8262   (return-type "gint")
8263   (parameters
8264     '("const-gchar*" "s1")
8265     '("const-gchar*" "s2")
8266   )
8267 )
8268
8269 (define-function g_ascii_strncasecmp
8270   (c-name "g_ascii_strncasecmp")
8271   (return-type "gint")
8272   (parameters
8273     '("const-gchar*" "s1")
8274     '("const-gchar*" "s2")
8275     '("gsize" "n")
8276   )
8277 )
8278
8279 (define-function g_ascii_strdown
8280   (c-name "g_ascii_strdown")
8281   (return-type "gchar*")
8282   (parameters
8283     '("const-gchar*" "str")
8284     '("gssize" "len")
8285   )
8286 )
8287
8288 (define-function g_ascii_strup
8289   (c-name "g_ascii_strup")
8290   (return-type "gchar*")
8291   (parameters
8292     '("const-gchar*" "str")
8293     '("gssize" "len")
8294   )
8295 )
8296
8297 (define-function g_strcasecmp
8298   (c-name "g_strcasecmp")
8299   (return-type "gint")
8300   (parameters
8301     '("const-gchar*" "s1")
8302     '("const-gchar*" "s2")
8303   )
8304 )
8305
8306 (define-function g_strncasecmp
8307   (c-name "g_strncasecmp")
8308   (return-type "gint")
8309   (parameters
8310     '("const-gchar*" "s1")
8311     '("const-gchar*" "s2")
8312     '("guint" "n")
8313   )
8314 )
8315
8316 (define-function g_strdown
8317   (c-name "g_strdown")
8318   (return-type "gchar*")
8319   (parameters
8320     '("gchar*" "string")
8321   )
8322 )
8323
8324 (define-function g_strup
8325   (c-name "g_strup")
8326   (return-type "gchar*")
8327   (parameters
8328     '("gchar*" "string")
8329   )
8330 )
8331
8332 (define-function g_strdup
8333   (c-name "g_strdup")
8334   (return-type "gchar*")
8335   (parameters
8336     '("const-gchar*" "str")
8337   )
8338 )
8339
8340 (define-function g_strdup_printf
8341   (c-name "g_strdup_printf")
8342   (return-type "gchar*")
8343   (parameters
8344     '("const-gchar*" "format")
8345   )
8346   (varargs #t)
8347 )
8348
8349 (define-function g_strdup_vprintf
8350   (c-name "g_strdup_vprintf")
8351   (return-type "gchar*")
8352   (parameters
8353     '("const-gchar*" "format")
8354     '("va_list" "args")
8355   )
8356 )
8357
8358 (define-function g_strndup
8359   (c-name "g_strndup")
8360   (return-type "gchar*")
8361   (parameters
8362     '("const-gchar*" "str")
8363     '("gsize" "n")
8364   )
8365 )
8366
8367 (define-function g_strnfill
8368   (c-name "g_strnfill")
8369   (return-type "gchar*")
8370   (parameters
8371     '("gsize" "length")
8372     '("gchar" "fill_char")
8373   )
8374 )
8375
8376 (define-function g_strconcat
8377   (c-name "g_strconcat")
8378   (return-type "gchar*")
8379   (parameters
8380     '("const-gchar*" "string1")
8381   )
8382   (varargs #t)
8383 )
8384
8385 (define-function g_strjoin
8386   (c-name "g_strjoin")
8387   (return-type "gchar*")
8388   (parameters
8389     '("const-gchar*" "separator")
8390   )
8391   (varargs #t)
8392 )
8393
8394 (define-function g_strcompress
8395   (c-name "g_strcompress")
8396   (return-type "gchar*")
8397   (parameters
8398     '("const-gchar*" "source")
8399   )
8400 )
8401
8402 (define-function g_strescape
8403   (c-name "g_strescape")
8404   (return-type "gchar*")
8405   (parameters
8406     '("const-gchar*" "source")
8407     '("const-gchar*" "exceptions")
8408   )
8409 )
8410
8411 (define-function g_memdup
8412   (c-name "g_memdup")
8413   (return-type "gpointer")
8414   (parameters
8415     '("gconstpointer" "mem")
8416     '("guint" "byte_size")
8417   )
8418 )
8419
8420 (define-function g_strsplit
8421   (c-name "g_strsplit")
8422   (return-type "gchar**")
8423   (parameters
8424     '("const-gchar*" "string")
8425     '("const-gchar*" "delimiter")
8426     '("gint" "max_tokens")
8427   )
8428 )
8429
8430 (define-function g_strsplit_set
8431   (c-name "g_strsplit_set")
8432   (return-type "gchar**")
8433   (parameters
8434     '("const-gchar*" "string")
8435     '("const-gchar*" "delimiters")
8436     '("gint" "max_tokens")
8437   )
8438 )
8439
8440 (define-function g_strjoinv
8441   (c-name "g_strjoinv")
8442   (return-type "gchar*")
8443   (parameters
8444     '("const-gchar*" "separator")
8445     '("gchar**" "str_array")
8446   )
8447 )
8448
8449 (define-function g_strfreev
8450   (c-name "g_strfreev")
8451   (return-type "none")
8452   (parameters
8453     '("gchar**" "str_array")
8454   )
8455 )
8456
8457 (define-function g_strdupv
8458   (c-name "g_strdupv")
8459   (return-type "gchar**")
8460   (parameters
8461     '("gchar**" "str_array")
8462   )
8463 )
8464
8465 (define-function g_strv_length
8466   (c-name "g_strv_length")
8467   (return-type "guint")
8468   (parameters
8469     '("gchar**" "str_array")
8470   )
8471 )
8472
8473 (define-function g_stpcpy
8474   (c-name "g_stpcpy")
8475   (return-type "gchar*")
8476   (parameters
8477     '("gchar*" "dest")
8478     '("const-char*" "src")
8479   )
8480 )
8481
8482 (define-function g_strip_context
8483   (c-name "g_strip_context")
8484   (return-type "const-gchar*")
8485   (parameters
8486     '("const-gchar*" "msgid")
8487     '("const-gchar*" "msgval")
8488   )
8489 )
8490
8491
8492
8493 ;; From gstring.h
8494
8495 (define-function g_string_chunk_new
8496   (c-name "g_string_chunk_new")
8497   (is-constructor-of "GStringChunk")
8498   (return-type "GStringChunk*")
8499   (parameters
8500     '("gsize" "size")
8501   )
8502 )
8503
8504 (define-method free
8505   (of-object "GStringChunk")
8506   (c-name "g_string_chunk_free")
8507   (return-type "none")
8508 )
8509
8510 (define-method clear
8511   (of-object "GStringChunk")
8512   (c-name "g_string_chunk_clear")
8513   (return-type "none")
8514 )
8515
8516 (define-method insert
8517   (of-object "GStringChunk")
8518   (c-name "g_string_chunk_insert")
8519   (return-type "gchar*")
8520   (parameters
8521     '("const-gchar*" "string")
8522   )
8523 )
8524
8525 (define-method insert_len
8526   (of-object "GStringChunk")
8527   (c-name "g_string_chunk_insert_len")
8528   (return-type "gchar*")
8529   (parameters
8530     '("const-gchar*" "string")
8531     '("gssize" "len")
8532   )
8533 )
8534
8535 (define-function g_string_new
8536   (c-name "g_string_new")
8537   (is-constructor-of "GString")
8538   (return-type "GString*")
8539   (parameters
8540     '("const-gchar*" "init")
8541   )
8542 )
8543
8544 (define-function g_string_new_len
8545   (c-name "g_string_new_len")
8546   (return-type "GString*")
8547   (parameters
8548     '("const-gchar*" "init")
8549     '("gssize" "len")
8550   )
8551 )
8552
8553 (define-function g_string_sized_new
8554   (c-name "g_string_sized_new")
8555   (is-constructor-of "GStringSized")
8556   (return-type "GString*")
8557   (parameters
8558     '("gsize" "dfl_size")
8559   )
8560 )
8561
8562 (define-method free
8563   (of-object "GString")
8564   (c-name "g_string_free")
8565   (return-type "gchar*")
8566   (parameters
8567     '("gboolean" "free_segment")
8568   )
8569 )
8570
8571 (define-method equal
8572   (of-object "GString")
8573   (c-name "g_string_equal")
8574   (return-type "gboolean")
8575   (parameters
8576     '("const-GString*" "v2")
8577   )
8578 )
8579
8580 (define-method hash
8581   (of-object "GString")
8582   (c-name "g_string_hash")
8583   (return-type "guint")
8584 )
8585
8586 (define-method assign
8587   (of-object "GString")
8588   (c-name "g_string_assign")
8589   (return-type "GString*")
8590   (parameters
8591     '("const-gchar*" "rval")
8592   )
8593 )
8594
8595 (define-method truncate
8596   (of-object "GString")
8597   (c-name "g_string_truncate")
8598   (return-type "GString*")
8599   (parameters
8600     '("gsize" "len")
8601   )
8602 )
8603
8604 (define-method set_size
8605   (of-object "GString")
8606   (c-name "g_string_set_size")
8607   (return-type "GString*")
8608   (parameters
8609     '("gsize" "len")
8610   )
8611 )
8612
8613 (define-method insert_len
8614   (of-object "GString")
8615   (c-name "g_string_insert_len")
8616   (return-type "GString*")
8617   (parameters
8618     '("gssize" "pos")
8619     '("const-gchar*" "val")
8620     '("gssize" "len")
8621   )
8622 )
8623
8624 (define-method append
8625   (of-object "GString")
8626   (c-name "g_string_append")
8627   (return-type "GString*")
8628   (parameters
8629     '("const-gchar*" "val")
8630   )
8631 )
8632
8633 (define-method append_len
8634   (of-object "GString")
8635   (c-name "g_string_append_len")
8636   (return-type "GString*")
8637   (parameters
8638     '("const-gchar*" "val")
8639     '("gssize" "len")
8640   )
8641 )
8642
8643 (define-method append_c
8644   (of-object "GString")
8645   (c-name "g_string_append_c")
8646   (return-type "GString*")
8647   (parameters
8648     '("gchar" "c")
8649   )
8650 )
8651
8652 (define-method append_unichar
8653   (of-object "GString")
8654   (c-name "g_string_append_unichar")
8655   (return-type "GString*")
8656   (parameters
8657     '("gunichar" "wc")
8658   )
8659 )
8660
8661 (define-method prepend
8662   (of-object "GString")
8663   (c-name "g_string_prepend")
8664   (return-type "GString*")
8665   (parameters
8666     '("const-gchar*" "val")
8667   )
8668 )
8669
8670 (define-method prepend_c
8671   (of-object "GString")
8672   (c-name "g_string_prepend_c")
8673   (return-type "GString*")
8674   (parameters
8675     '("gchar" "c")
8676   )
8677 )
8678
8679 (define-method prepend_unichar
8680   (of-object "GString")
8681   (c-name "g_string_prepend_unichar")
8682   (return-type "GString*")
8683   (parameters
8684     '("gunichar" "wc")
8685   )
8686 )
8687
8688 (define-method prepend_len
8689   (of-object "GString")
8690   (c-name "g_string_prepend_len")
8691   (return-type "GString*")
8692   (parameters
8693     '("const-gchar*" "val")
8694     '("gssize" "len")
8695   )
8696 )
8697
8698 (define-method insert
8699   (of-object "GString")
8700   (c-name "g_string_insert")
8701   (return-type "GString*")
8702   (parameters
8703     '("gssize" "pos")
8704     '("const-gchar*" "val")
8705   )
8706 )
8707
8708 (define-method insert_c
8709   (of-object "GString")
8710   (c-name "g_string_insert_c")
8711   (return-type "GString*")
8712   (parameters
8713     '("gssize" "pos")
8714     '("gchar" "c")
8715   )
8716 )
8717
8718 (define-method insert_unichar
8719   (of-object "GString")
8720   (c-name "g_string_insert_unichar")
8721   (return-type "GString*")
8722   (parameters
8723     '("gssize" "pos")
8724     '("gunichar" "wc")
8725   )
8726 )
8727
8728 (define-method erase
8729   (of-object "GString")
8730   (c-name "g_string_erase")
8731   (return-type "GString*")
8732   (parameters
8733     '("gssize" "pos")
8734     '("gssize" "len")
8735   )
8736 )
8737
8738 (define-method ascii_down
8739   (of-object "GString")
8740   (c-name "g_string_ascii_down")
8741   (return-type "GString*")
8742 )
8743
8744 (define-method ascii_up
8745   (of-object "GString")
8746   (c-name "g_string_ascii_up")
8747   (return-type "GString*")
8748 )
8749
8750 (define-method printf
8751   (of-object "GString")
8752   (c-name "g_string_printf")
8753   (return-type "none")
8754   (parameters
8755     '("const-gchar*" "format")
8756   )
8757   (varargs #t)
8758 )
8759
8760 (define-method append_printf
8761   (of-object "GString")
8762   (c-name "g_string_append_printf")
8763   (return-type "none")
8764   (parameters
8765     '("const-gchar*" "format")
8766   )
8767   (varargs #t)
8768 )
8769
8770 (define-method up
8771   (of-object "GString")
8772   (c-name "g_string_up")
8773   (return-type "GString*")
8774 )
8775
8776
8777
8778 ;; From gthread.h
8779
8780 (define-function guint64
8781   (c-name "guint64")
8782   (return-type "GLIB_VAR")
8783   (parameters
8784     '("*" "g_thread_gettime")
8785   )
8786 )
8787
8788 (define-function g_thread_init
8789   (c-name "g_thread_init")
8790   (return-type "none")
8791   (parameters
8792     '("GThreadFunctions*" "vtable")
8793   )
8794 )
8795
8796 (define-function g_thread_init_with_errorcheck_mutexes
8797   (c-name "g_thread_init_with_errorcheck_mutexes")
8798   (return-type "none")
8799   (parameters
8800     '("GThreadFunctions*" "vtable")
8801   )
8802 )
8803
8804 (define-function g_static_mutex_get_mutex_impl
8805   (c-name "g_static_mutex_get_mutex_impl")
8806   (return-type "GMutex*")
8807   (parameters
8808     '("GMutex**" "mutex")
8809   )
8810 )
8811
8812 (define-function g_thread_create_full
8813   (c-name "g_thread_create_full")
8814   (return-type "GThread*")
8815   (parameters
8816     '("GThreadFunc" "func")
8817     '("gpointer" "data")
8818     '("gulong" "stack_size")
8819     '("gboolean" "joinable")
8820     '("gboolean" "bound")
8821     '("GThreadPriority" "priority")
8822     '("GError**" "error")
8823   )
8824 )
8825
8826 (define-function g_thread_self
8827   (c-name "g_thread_self")
8828   (return-type "GThread*")
8829 )
8830
8831 (define-function g_thread_exit
8832   (c-name "g_thread_exit")
8833   (return-type "none")
8834   (parameters
8835     '("gpointer" "retval")
8836   )
8837 )
8838
8839 (define-method join
8840   (of-object "GThread")
8841   (c-name "g_thread_join")
8842   (return-type "gpointer")
8843 )
8844
8845 (define-method set_priority
8846   (of-object "GThread")
8847   (c-name "g_thread_set_priority")
8848   (return-type "none")
8849   (parameters
8850     '("GThreadPriority" "priority")
8851   )
8852 )
8853
8854 (define-method init
8855   (of-object "GStaticMutex")
8856   (c-name "g_static_mutex_init")
8857   (return-type "none")
8858 )
8859
8860 (define-method free
8861   (of-object "GStaticMutex")
8862   (c-name "g_static_mutex_free")
8863   (return-type "none")
8864 )
8865
8866 (define-method init
8867   (of-object "GStaticPrivate")
8868   (c-name "g_static_private_init")
8869   (return-type "none")
8870 )
8871
8872 (define-method get
8873   (of-object "GStaticPrivate")
8874   (c-name "g_static_private_get")
8875   (return-type "gpointer")
8876 )
8877
8878 (define-method set
8879   (of-object "GStaticPrivate")
8880   (c-name "g_static_private_set")
8881   (return-type "none")
8882   (parameters
8883     '("gpointer" "data")
8884     '("GDestroyNotify" "notify")
8885   )
8886 )
8887
8888 (define-method free
8889   (of-object "GStaticPrivate")
8890   (c-name "g_static_private_free")
8891   (return-type "none")
8892 )
8893
8894 (define-method init
8895   (of-object "GStaticRecMutex")
8896   (c-name "g_static_rec_mutex_init")
8897   (return-type "none")
8898 )
8899
8900 (define-method lock
8901   (of-object "GStaticRecMutex")
8902   (c-name "g_static_rec_mutex_lock")
8903   (return-type "none")
8904 )
8905
8906 (define-method trylock
8907   (of-object "GStaticRecMutex")
8908   (c-name "g_static_rec_mutex_trylock")
8909   (return-type "gboolean")
8910 )
8911
8912 (define-method unlock
8913   (of-object "GStaticRecMutex")
8914   (c-name "g_static_rec_mutex_unlock")
8915   (return-type "none")
8916 )
8917
8918 (define-method lock_full
8919   (of-object "GStaticRecMutex")
8920   (c-name "g_static_rec_mutex_lock_full")
8921   (return-type "none")
8922   (parameters
8923     '("guint" "depth")
8924   )
8925 )
8926
8927 (define-method unlock_full
8928   (of-object "GStaticRecMutex")
8929   (c-name "g_static_rec_mutex_unlock_full")
8930   (return-type "guint")
8931 )
8932
8933 (define-method free
8934   (of-object "GStaticRecMutex")
8935   (c-name "g_static_rec_mutex_free")
8936   (return-type "none")
8937 )
8938
8939 (define-method init
8940   (of-object "GStaticRWLock")
8941   (c-name "g_static_rw_lock_init")
8942   (return-type "none")
8943 )
8944
8945 (define-method reader_lock
8946   (of-object "GStaticRWLock")
8947   (c-name "g_static_rw_lock_reader_lock")
8948   (return-type "none")
8949 )
8950
8951 (define-method reader_trylock
8952   (of-object "GStaticRWLock")
8953   (c-name "g_static_rw_lock_reader_trylock")
8954   (return-type "gboolean")
8955 )
8956
8957 (define-method reader_unlock
8958   (of-object "GStaticRWLock")
8959   (c-name "g_static_rw_lock_reader_unlock")
8960   (return-type "none")
8961 )
8962
8963 (define-method writer_lock
8964   (of-object "GStaticRWLock")
8965   (c-name "g_static_rw_lock_writer_lock")
8966   (return-type "none")
8967 )
8968
8969 (define-method writer_trylock
8970   (of-object "GStaticRWLock")
8971   (c-name "g_static_rw_lock_writer_trylock")
8972   (return-type "gboolean")
8973 )
8974
8975 (define-method writer_unlock
8976   (of-object "GStaticRWLock")
8977   (c-name "g_static_rw_lock_writer_unlock")
8978   (return-type "none")
8979 )
8980
8981 (define-method free
8982   (of-object "GStaticRWLock")
8983   (c-name "g_static_rw_lock_free")
8984   (return-type "none")
8985 )
8986
8987 (define-function g_thread_foreach
8988   (c-name "g_thread_foreach")
8989   (return-type "none")
8990   (parameters
8991     '("GFunc" "thread_func")
8992     '("gpointer" "user_data")
8993   )
8994 )
8995
8996 (define-method impl
8997   (of-object "GOnce")
8998   (c-name "g_once_impl")
8999   (return-type "gpointer")
9000   (parameters
9001     '("GThreadFunc" "func")
9002     '("gpointer" "arg")
9003   )
9004 )
9005
9006
9007
9008 ;; From gthreadpool.h
9009
9010 (define-function g_thread_pool_new
9011   (c-name "g_thread_pool_new")
9012   (is-constructor-of "GThreadPool")
9013   (return-type "GThreadPool*")
9014   (parameters
9015     '("GFunc" "func")
9016     '("gpointer" "user_data")
9017     '("gint" "max_threads")
9018     '("gboolean" "exclusive")
9019     '("GError**" "error")
9020   )
9021 )
9022
9023 (define-method push
9024   (of-object "GThreadPool")
9025   (c-name "g_thread_pool_push")
9026   (return-type "none")
9027   (parameters
9028     '("gpointer" "data")
9029     '("GError**" "error")
9030   )
9031 )
9032
9033 (define-method set_max_threads
9034   (of-object "GThreadPool")
9035   (c-name "g_thread_pool_set_max_threads")
9036   (return-type "none")
9037   (parameters
9038     '("gint" "max_threads")
9039     '("GError**" "error")
9040   )
9041 )
9042
9043 (define-method get_max_threads
9044   (of-object "GThreadPool")
9045   (c-name "g_thread_pool_get_max_threads")
9046   (return-type "gint")
9047 )
9048
9049 (define-method get_num_threads
9050   (of-object "GThreadPool")
9051   (c-name "g_thread_pool_get_num_threads")
9052   (return-type "guint")
9053 )
9054
9055 (define-method unprocessed
9056   (of-object "GThreadPool")
9057   (c-name "g_thread_pool_unprocessed")
9058   (return-type "guint")
9059 )
9060
9061 (define-method free
9062   (of-object "GThreadPool")
9063   (c-name "g_thread_pool_free")
9064   (return-type "none")
9065   (parameters
9066     '("gboolean" "immediate")
9067     '("gboolean" "wait_")
9068   )
9069 )
9070
9071 (define-function g_thread_pool_set_max_unused_threads
9072   (c-name "g_thread_pool_set_max_unused_threads")
9073   (return-type "none")
9074   (parameters
9075     '("gint" "max_threads")
9076   )
9077 )
9078
9079 (define-function g_thread_pool_get_max_unused_threads
9080   (c-name "g_thread_pool_get_max_unused_threads")
9081   (return-type "gint")
9082 )
9083
9084 (define-function g_thread_pool_get_num_unused_threads
9085   (c-name "g_thread_pool_get_num_unused_threads")
9086   (return-type "guint")
9087 )
9088
9089 (define-function g_thread_pool_stop_unused_threads
9090   (c-name "g_thread_pool_stop_unused_threads")
9091   (return-type "none")
9092 )
9093
9094 (define-method set_sort_function
9095   (of-object "GThreadPool")
9096   (c-name "g_thread_pool_set_sort_function")
9097   (return-type "none")
9098   (parameters
9099     '("GCompareDataFunc" "func")
9100     '("gpointer" "user_data")
9101   )
9102 )
9103
9104 (define-function g_thread_pool_set_max_idle_time
9105   (c-name "g_thread_pool_set_max_idle_time")
9106   (return-type "none")
9107   (parameters
9108     '("guint" "interval")
9109   )
9110 )
9111
9112 (define-function g_thread_pool_get_max_idle_time
9113   (c-name "g_thread_pool_get_max_idle_time")
9114   (return-type "guint")
9115 )
9116
9117
9118
9119 ;; From gthreadprivate.h
9120
9121 (define-function g_thread_init_glib
9122   (c-name "g_thread_init_glib")
9123   (return-type "none")
9124 )
9125
9126
9127
9128 ;; From gtimer.h
9129
9130 (define-function g_timer_new
9131   (c-name "g_timer_new")
9132   (is-constructor-of "GTimer")
9133   (return-type "GTimer*")
9134 )
9135
9136 (define-method destroy
9137   (of-object "GTimer")
9138   (c-name "g_timer_destroy")
9139   (return-type "none")
9140 )
9141
9142 (define-method start
9143   (of-object "GTimer")
9144   (c-name "g_timer_start")
9145   (return-type "none")
9146 )
9147
9148 (define-method stop
9149   (of-object "GTimer")
9150   (c-name "g_timer_stop")
9151   (return-type "none")
9152 )
9153
9154 (define-method reset
9155   (of-object "GTimer")
9156   (c-name "g_timer_reset")
9157   (return-type "none")
9158 )
9159
9160 (define-method continue
9161   (of-object "GTimer")
9162   (c-name "g_timer_continue")
9163   (return-type "none")
9164 )
9165
9166 (define-method elapsed
9167   (of-object "GTimer")
9168   (c-name "g_timer_elapsed")
9169   (return-type "gdouble")
9170   (parameters
9171     '("gulong*" "microseconds")
9172   )
9173 )
9174
9175 (define-function g_usleep
9176   (c-name "g_usleep")
9177   (return-type "none")
9178   (parameters
9179     '("gulong" "microseconds")
9180   )
9181 )
9182
9183 (define-method add
9184   (of-object "GTimeVal")
9185   (c-name "g_time_val_add")
9186   (return-type "none")
9187   (parameters
9188     '("glong" "microseconds")
9189   )
9190 )
9191
9192 (define-function g_time_val_from_iso8601
9193   (c-name "g_time_val_from_iso8601")
9194   (return-type "gboolean")
9195   (parameters
9196     '("const-gchar*" "iso_date")
9197     '("GTimeVal*" "time_")
9198   )
9199 )
9200
9201 (define-method to_iso8601
9202   (of-object "GTimeVal")
9203   (c-name "g_time_val_to_iso8601")
9204   (return-type "gchar*")
9205 )
9206
9207
9208
9209 ;; From gtree.h
9210
9211 (define-function g_tree_new
9212   (c-name "g_tree_new")
9213   (is-constructor-of "GTree")
9214   (return-type "GTree*")
9215   (parameters
9216     '("GCompareFunc" "key_compare_func")
9217   )
9218 )
9219
9220 (define-function g_tree_new_with_data
9221   (c-name "g_tree_new_with_data")
9222   (return-type "GTree*")
9223   (parameters
9224     '("GCompareDataFunc" "key_compare_func")
9225     '("gpointer" "key_compare_data")
9226   )
9227 )
9228
9229 (define-function g_tree_new_full
9230   (c-name "g_tree_new_full")
9231   (return-type "GTree*")
9232   (parameters
9233     '("GCompareDataFunc" "key_compare_func")
9234     '("gpointer" "key_compare_data")
9235     '("GDestroyNotify" "key_destroy_func")
9236     '("GDestroyNotify" "value_destroy_func")
9237   )
9238 )
9239
9240 (define-method destroy
9241   (of-object "GTree")
9242   (c-name "g_tree_destroy")
9243   (return-type "none")
9244 )
9245
9246 (define-method insert
9247   (of-object "GTree")
9248   (c-name "g_tree_insert")
9249   (return-type "none")
9250   (parameters
9251     '("gpointer" "key")
9252     '("gpointer" "value")
9253   )
9254 )
9255
9256 (define-method replace
9257   (of-object "GTree")
9258   (c-name "g_tree_replace")
9259   (return-type "none")
9260   (parameters
9261     '("gpointer" "key")
9262     '("gpointer" "value")
9263   )
9264 )
9265
9266 (define-method remove
9267   (of-object "GTree")
9268   (c-name "g_tree_remove")
9269   (return-type "gboolean")
9270   (parameters
9271     '("gconstpointer" "key")
9272   )
9273 )
9274
9275 (define-method steal
9276   (of-object "GTree")
9277   (c-name "g_tree_steal")
9278   (return-type "gboolean")
9279   (parameters
9280     '("gconstpointer" "key")
9281   )
9282 )
9283
9284 (define-method lookup
9285   (of-object "GTree")
9286   (c-name "g_tree_lookup")
9287   (return-type "gpointer")
9288   (parameters
9289     '("gconstpointer" "key")
9290   )
9291 )
9292
9293 (define-method lookup_extended
9294   (of-object "GTree")
9295   (c-name "g_tree_lookup_extended")
9296   (return-type "gboolean")
9297   (parameters
9298     '("gconstpointer" "lookup_key")
9299     '("gpointer*" "orig_key")
9300     '("gpointer*" "value")
9301   )
9302 )
9303
9304 (define-method foreach
9305   (of-object "GTree")
9306   (c-name "g_tree_foreach")
9307   (return-type "none")
9308   (parameters
9309     '("GTraverseFunc" "func")
9310     '("gpointer" "user_data")
9311   )
9312 )
9313
9314 (define-method traverse
9315   (of-object "GTree")
9316   (c-name "g_tree_traverse")
9317   (return-type "none")
9318   (parameters
9319     '("GTraverseFunc" "traverse_func")
9320     '("GTraverseType" "traverse_type")
9321     '("gpointer" "user_data")
9322   )
9323 )
9324
9325 (define-method search
9326   (of-object "GTree")
9327   (c-name "g_tree_search")
9328   (return-type "gpointer")
9329   (parameters
9330     '("GCompareFunc" "search_func")
9331     '("gconstpointer" "user_data")
9332   )
9333 )
9334
9335 (define-method height
9336   (of-object "GTree")
9337   (c-name "g_tree_height")
9338   (return-type "gint")
9339 )
9340
9341 (define-method nnodes
9342   (of-object "GTree")
9343   (c-name "g_tree_nnodes")
9344   (return-type "gint")
9345 )
9346
9347
9348
9349 ;; From gtypes.h
9350
9351
9352
9353 ;; From gunibreak.h
9354
9355
9356
9357 ;; From gunichartables.h
9358
9359
9360
9361 ;; From gunicode.h
9362
9363 (define-function g_get_charset
9364   (c-name "g_get_charset")
9365   (return-type "gboolean")
9366   (parameters
9367     '("const-char**" "charset")
9368   )
9369 )
9370
9371 (define-method isalnum
9372   (of-object "gunichar")
9373   (c-name "g_unichar_isalnum")
9374   (return-type "gboolean")
9375 )
9376
9377 (define-method isalpha
9378   (of-object "gunichar")
9379   (c-name "g_unichar_isalpha")
9380   (return-type "gboolean")
9381 )
9382
9383 (define-method iscntrl
9384   (of-object "gunichar")
9385   (c-name "g_unichar_iscntrl")
9386   (return-type "gboolean")
9387 )
9388
9389 (define-method isdigit
9390   (of-object "gunichar")
9391   (c-name "g_unichar_isdigit")
9392   (return-type "gboolean")
9393 )
9394
9395 (define-method isgraph
9396   (of-object "gunichar")
9397   (c-name "g_unichar_isgraph")
9398   (return-type "gboolean")
9399 )
9400
9401 (define-method islower
9402   (of-object "gunichar")
9403   (c-name "g_unichar_islower")
9404   (return-type "gboolean")
9405 )
9406
9407 (define-method isprint
9408   (of-object "gunichar")
9409   (c-name "g_unichar_isprint")
9410   (return-type "gboolean")
9411 )
9412
9413 (define-method ispunct
9414   (of-object "gunichar")
9415   (c-name "g_unichar_ispunct")
9416   (return-type "gboolean")
9417 )
9418
9419 (define-method isspace
9420   (of-object "gunichar")
9421   (c-name "g_unichar_isspace")
9422   (return-type "gboolean")
9423 )
9424
9425 (define-method isupper
9426   (of-object "gunichar")
9427   (c-name "g_unichar_isupper")
9428   (return-type "gboolean")
9429 )
9430
9431 (define-method isxdigit
9432   (of-object "gunichar")
9433   (c-name "g_unichar_isxdigit")
9434   (return-type "gboolean")
9435 )
9436
9437 (define-method istitle
9438   (of-object "gunichar")
9439   (c-name "g_unichar_istitle")
9440   (return-type "gboolean")
9441 )
9442
9443 (define-method isdefined
9444   (of-object "gunichar")
9445   (c-name "g_unichar_isdefined")
9446   (return-type "gboolean")
9447 )
9448
9449 (define-method iswide
9450   (of-object "gunichar")
9451   (c-name "g_unichar_iswide")
9452   (return-type "gboolean")
9453 )
9454
9455 (define-method iswide_cjk
9456   (of-object "gunichar")
9457   (c-name "g_unichar_iswide_cjk")
9458   (return-type "gboolean")
9459 )
9460
9461 (define-method iszerowidth
9462   (of-object "gunichar")
9463   (c-name "g_unichar_iszerowidth")
9464   (return-type "gboolean")
9465 )
9466
9467 (define-method ismark
9468   (of-object "gunichar")
9469   (c-name "g_unichar_ismark")
9470   (return-type "gboolean")
9471 )
9472
9473 (define-method toupper
9474   (of-object "gunichar")
9475   (c-name "g_unichar_toupper")
9476   (return-type "gunichar")
9477 )
9478
9479 (define-method tolower
9480   (of-object "gunichar")
9481   (c-name "g_unichar_tolower")
9482   (return-type "gunichar")
9483 )
9484
9485 (define-method totitle
9486   (of-object "gunichar")
9487   (c-name "g_unichar_totitle")
9488   (return-type "gunichar")
9489 )
9490
9491 (define-method digit_value
9492   (of-object "gunichar")
9493   (c-name "g_unichar_digit_value")
9494   (return-type "gint")
9495 )
9496
9497 (define-method xdigit_value
9498   (of-object "gunichar")
9499   (c-name "g_unichar_xdigit_value")
9500   (return-type "gint")
9501 )
9502
9503 (define-method type
9504   (of-object "gunichar")
9505   (c-name "g_unichar_type")
9506   (return-type "GUnicodeType")
9507 )
9508
9509 (define-method break_type
9510   (of-object "gunichar")
9511   (c-name "g_unichar_break_type")
9512   (return-type "GUnicodeBreakType")
9513 )
9514
9515 (define-function g_unicode_canonical_ordering
9516   (c-name "g_unicode_canonical_ordering")
9517   (return-type "none")
9518   (parameters
9519     '("gunichar*" "string")
9520     '("gsize" "len")
9521   )
9522 )
9523
9524 (define-function g_unicode_canonical_decomposition
9525   (c-name "g_unicode_canonical_decomposition")
9526   (return-type "gunichar*")
9527   (parameters
9528     '("gunichar" "ch")
9529     '("gsize*" "result_len")
9530   )
9531 )
9532
9533 (define-function g_utf8_get_char
9534   (c-name "g_utf8_get_char")
9535   (return-type "gunichar")
9536   (parameters
9537     '("const-gchar*" "p")
9538   )
9539 )
9540
9541 (define-function g_utf8_get_char_validated
9542   (c-name "g_utf8_get_char_validated")
9543   (return-type "gunichar")
9544   (parameters
9545     '("const-gchar*" "p")
9546     '("gssize" "max_len")
9547   )
9548 )
9549
9550 (define-function g_utf8_offset_to_pointer
9551   (c-name "g_utf8_offset_to_pointer")
9552   (return-type "gchar*")
9553   (parameters
9554     '("const-gchar*" "str")
9555     '("glong" "offset")
9556   )
9557 )
9558
9559 (define-function g_utf8_pointer_to_offset
9560   (c-name "g_utf8_pointer_to_offset")
9561   (return-type "glong")
9562   (parameters
9563     '("const-gchar*" "str")
9564     '("const-gchar*" "pos")
9565   )
9566 )
9567
9568 (define-function g_utf8_prev_char
9569   (c-name "g_utf8_prev_char")
9570   (return-type "gchar*")
9571   (parameters
9572     '("const-gchar*" "p")
9573   )
9574 )
9575
9576 (define-function g_utf8_find_next_char
9577   (c-name "g_utf8_find_next_char")
9578   (return-type "gchar*")
9579   (parameters
9580     '("const-gchar*" "p")
9581     '("const-gchar*" "end")
9582   )
9583 )
9584
9585 (define-function g_utf8_find_prev_char
9586   (c-name "g_utf8_find_prev_char")
9587   (return-type "gchar*")
9588   (parameters
9589     '("const-gchar*" "str")
9590     '("const-gchar*" "p")
9591   )
9592 )
9593
9594 (define-function g_utf8_strlen
9595   (c-name "g_utf8_strlen")
9596   (return-type "glong")
9597   (parameters
9598     '("const-gchar*" "p")
9599     '("gssize" "max")
9600   )
9601 )
9602
9603 (define-function g_utf8_strncpy
9604   (c-name "g_utf8_strncpy")
9605   (return-type "gchar*")
9606   (parameters
9607     '("gchar*" "dest")
9608     '("const-gchar*" "src")
9609     '("gsize" "n")
9610   )
9611 )
9612
9613 (define-function g_utf8_strchr
9614   (c-name "g_utf8_strchr")
9615   (return-type "gchar*")
9616   (parameters
9617     '("const-gchar*" "p")
9618     '("gssize" "len")
9619     '("gunichar" "c")
9620   )
9621 )
9622
9623 (define-function g_utf8_strrchr
9624   (c-name "g_utf8_strrchr")
9625   (return-type "gchar*")
9626   (parameters
9627     '("const-gchar*" "p")
9628     '("gssize" "len")
9629     '("gunichar" "c")
9630   )
9631 )
9632
9633 (define-function g_utf8_strreverse
9634   (c-name "g_utf8_strreverse")
9635   (return-type "gchar*")
9636   (parameters
9637     '("const-gchar*" "str")
9638     '("gssize" "len")
9639   )
9640 )
9641
9642 (define-function g_utf8_to_utf16
9643   (c-name "g_utf8_to_utf16")
9644   (return-type "gunichar2*")
9645   (parameters
9646     '("const-gchar*" "str")
9647     '("glong" "len")
9648     '("glong*" "items_read")
9649     '("glong*" "items_written")
9650     '("GError**" "error")
9651   )
9652 )
9653
9654 (define-function g_utf8_to_ucs4
9655   (c-name "g_utf8_to_ucs4")
9656   (return-type "gunichar*")
9657   (parameters
9658     '("const-gchar*" "str")
9659     '("glong" "len")
9660     '("glong*" "items_read")
9661     '("glong*" "items_written")
9662     '("GError**" "error")
9663   )
9664 )
9665
9666 (define-function g_utf8_to_ucs4_fast
9667   (c-name "g_utf8_to_ucs4_fast")
9668   (return-type "gunichar*")
9669   (parameters
9670     '("const-gchar*" "str")
9671     '("glong" "len")
9672     '("glong*" "items_written")
9673   )
9674 )
9675
9676 (define-function g_utf16_to_ucs4
9677   (c-name "g_utf16_to_ucs4")
9678   (return-type "gunichar*")
9679   (parameters
9680     '("const-gunichar2*" "str")
9681     '("glong" "len")
9682     '("glong*" "items_read")
9683     '("glong*" "items_written")
9684     '("GError**" "error")
9685   )
9686 )
9687
9688 (define-function g_utf16_to_utf8
9689   (c-name "g_utf16_to_utf8")
9690   (return-type "gchar*")
9691   (parameters
9692     '("const-gunichar2*" "str")
9693     '("glong" "len")
9694     '("glong*" "items_read")
9695     '("glong*" "items_written")
9696     '("GError**" "error")
9697   )
9698 )
9699
9700 (define-function g_ucs4_to_utf16
9701   (c-name "g_ucs4_to_utf16")
9702   (return-type "gunichar2*")
9703   (parameters
9704     '("const-gunichar*" "str")
9705     '("glong" "len")
9706     '("glong*" "items_read")
9707     '("glong*" "items_written")
9708     '("GError**" "error")
9709   )
9710 )
9711
9712 (define-function g_ucs4_to_utf8
9713   (c-name "g_ucs4_to_utf8")
9714   (return-type "gchar*")
9715   (parameters
9716     '("const-gunichar*" "str")
9717     '("glong" "len")
9718     '("glong*" "items_read")
9719     '("glong*" "items_written")
9720     '("GError**" "error")
9721   )
9722 )
9723
9724 (define-method to_utf8
9725   (of-object "gunichar")
9726   (c-name "g_unichar_to_utf8")
9727   (return-type "gint")
9728   (parameters
9729     '("gchar*" "outbuf")
9730   )
9731 )
9732
9733 (define-function g_utf8_validate
9734   (c-name "g_utf8_validate")
9735   (return-type "gboolean")
9736   (parameters
9737     '("const-gchar*" "str")
9738     '("gssize" "max_len")
9739     '("const-gchar**" "end")
9740   )
9741 )
9742
9743 (define-method validate
9744   (of-object "gunichar")
9745   (c-name "g_unichar_validate")
9746   (return-type "gboolean")
9747 )
9748
9749 (define-function g_utf8_strup
9750   (c-name "g_utf8_strup")
9751   (return-type "gchar*")
9752   (parameters
9753     '("const-gchar*" "str")
9754     '("gssize" "len")
9755   )
9756 )
9757
9758 (define-function g_utf8_strdown
9759   (c-name "g_utf8_strdown")
9760   (return-type "gchar*")
9761   (parameters
9762     '("const-gchar*" "str")
9763     '("gssize" "len")
9764   )
9765 )
9766
9767 (define-function g_utf8_casefold
9768   (c-name "g_utf8_casefold")
9769   (return-type "gchar*")
9770   (parameters
9771     '("const-gchar*" "str")
9772     '("gssize" "len")
9773   )
9774 )
9775
9776 (define-function g_utf8_normalize
9777   (c-name "g_utf8_normalize")
9778   (return-type "gchar*")
9779   (parameters
9780     '("const-gchar*" "str")
9781     '("gssize" "len")
9782     '("GNormalizeMode" "mode")
9783   )
9784 )
9785
9786 (define-function g_utf8_collate
9787   (c-name "g_utf8_collate")
9788   (return-type "gint")
9789   (parameters
9790     '("const-gchar*" "str1")
9791     '("const-gchar*" "str2")
9792   )
9793 )
9794
9795 (define-function g_utf8_collate_key
9796   (c-name "g_utf8_collate_key")
9797   (return-type "gchar*")
9798   (parameters
9799     '("const-gchar*" "str")
9800     '("gssize" "len")
9801   )
9802 )
9803
9804 (define-function g_utf8_collate_key_for_filename
9805   (c-name "g_utf8_collate_key_for_filename")
9806   (return-type "gchar*")
9807   (parameters
9808     '("const-gchar*" "str")
9809     '("gssize" "len")
9810   )
9811 )
9812
9813 (define-method get_mirror_char
9814   (of-object "gunichar")
9815   (c-name "g_unichar_get_mirror_char")
9816   (return-type "gboolean")
9817   (parameters
9818     '("gunichar*" "mirrored_ch")
9819   )
9820 )
9821
9822 (define-method get_script
9823   (of-object "gunichar")
9824   (c-name "g_unichar_get_script")
9825   (return-type "GUnicodeScript")
9826 )
9827
9828
9829
9830 ;; From gunicodeprivate.h
9831
9832
9833
9834 ;; From gunicomp.h
9835
9836
9837
9838 ;; From gunidecomp.h
9839
9840
9841
9842 ;; From gutils.h
9843
9844 (define-function g_get_user_name
9845   (c-name "g_get_user_name")
9846   (return-type "const-gchar*")
9847 )
9848
9849 (define-function g_get_real_name
9850   (c-name "g_get_real_name")
9851   (return-type "const-gchar*")
9852 )
9853
9854 (define-function g_get_home_dir
9855   (c-name "g_get_home_dir")
9856   (return-type "const-gchar*")
9857 )
9858
9859 (define-function g_get_tmp_dir
9860   (c-name "g_get_tmp_dir")
9861   (return-type "const-gchar*")
9862 )
9863
9864 (define-function g_get_host_name
9865   (c-name "g_get_host_name")
9866   (return-type "const-gchar*")
9867 )
9868
9869 (define-function g_get_prgname
9870   (c-name "g_get_prgname")
9871   (return-type "gchar*")
9872 )
9873
9874 (define-function g_set_prgname
9875   (c-name "g_set_prgname")
9876   (return-type "none")
9877   (parameters
9878     '("const-gchar*" "prgname")
9879   )
9880 )
9881
9882 (define-function g_get_application_name
9883   (c-name "g_get_application_name")
9884   (return-type "const-gchar*")
9885 )
9886
9887 (define-function g_set_application_name
9888   (c-name "g_set_application_name")
9889   (return-type "none")
9890   (parameters
9891     '("const-gchar*" "application_name")
9892   )
9893 )
9894
9895 (define-function g_get_user_data_dir
9896   (c-name "g_get_user_data_dir")
9897   (return-type "const-gchar*")
9898 )
9899
9900 (define-function g_get_user_config_dir
9901   (c-name "g_get_user_config_dir")
9902   (return-type "const-gchar*")
9903 )
9904
9905 (define-function g_get_user_cache_dir
9906   (c-name "g_get_user_cache_dir")
9907   (return-type "const-gchar*")
9908 )
9909
9910 (define-function g_get_user_special_dir
9911   (c-name "g_get_user_special_dir")
9912   (return-type "const-gchar*")
9913   (parameters
9914     '("GUserDirectory" "directory")
9915   )
9916 )
9917
9918 (define-function g_parse_debug_string
9919   (c-name "g_parse_debug_string")
9920   (return-type "guint")
9921   (parameters
9922     '("const-gchar*" "string")
9923     '("const-GDebugKey*" "keys")
9924     '("guint" "nkeys")
9925   )
9926 )
9927
9928 (define-function g_snprintf
9929   (c-name "g_snprintf")
9930   (return-type "gint")
9931   (parameters
9932     '("gchar*" "string")
9933     '("gulong" "n")
9934     '("gchar-const*" "format")
9935   )
9936   (varargs #t)
9937 )
9938
9939 (define-function g_vsnprintf
9940   (c-name "g_vsnprintf")
9941   (return-type "gint")
9942   (parameters
9943     '("gchar*" "string")
9944     '("gulong" "n")
9945     '("gchar-const*" "format")
9946     '("va_list" "args")
9947   )
9948 )
9949
9950 (define-function g_path_is_absolute
9951   (c-name "g_path_is_absolute")
9952   (return-type "gboolean")
9953   (parameters
9954     '("const-gchar*" "file_name")
9955   )
9956 )
9957
9958 (define-function g_path_skip_root
9959   (c-name "g_path_skip_root")
9960   (return-type "const-gchar*")
9961   (parameters
9962     '("const-gchar*" "file_name")
9963   )
9964 )
9965
9966 (define-function g_basename
9967   (c-name "g_basename")
9968   (return-type "const-gchar*")
9969   (parameters
9970     '("const-gchar*" "file_name")
9971   )
9972 )
9973
9974 (define-function g_get_current_dir
9975   (c-name "g_get_current_dir")
9976   (return-type "gchar*")
9977 )
9978
9979 (define-function g_path_get_basename
9980   (c-name "g_path_get_basename")
9981   (return-type "gchar*")
9982   (parameters
9983     '("const-gchar*" "file_name")
9984   )
9985 )
9986
9987 (define-function g_path_get_dirname
9988   (c-name "g_path_get_dirname")
9989   (return-type "gchar*")
9990   (parameters
9991     '("const-gchar*" "file_name")
9992   )
9993 )
9994
9995 (define-function g_nullify_pointer
9996   (c-name "g_nullify_pointer")
9997   (return-type "none")
9998   (parameters
9999     '("gpointer*" "nullify_location")
10000   )
10001 )
10002
10003 (define-function g_getenv
10004   (c-name "g_getenv")
10005   (return-type "const-gchar*")
10006   (parameters
10007     '("const-gchar*" "variable")
10008   )
10009 )
10010
10011 (define-function g_setenv
10012   (c-name "g_setenv")
10013   (return-type "gboolean")
10014   (parameters
10015     '("const-gchar*" "variable")
10016     '("const-gchar*" "value")
10017     '("gboolean" "overwrite")
10018   )
10019 )
10020
10021 (define-function g_unsetenv
10022   (c-name "g_unsetenv")
10023   (return-type "none")
10024   (parameters
10025     '("const-gchar*" "variable")
10026   )
10027 )
10028
10029 (define-function g_listenv
10030   (c-name "g_listenv")
10031   (return-type "gchar**")
10032 )
10033
10034 (define-function g_atexit
10035   (c-name "g_atexit")
10036   (return-type "none")
10037   (parameters
10038     '("GVoidFunc" "func")
10039   )
10040 )
10041
10042 (define-function g_find_program_in_path
10043   (c-name "g_find_program_in_path")
10044   (return-type "gchar*")
10045   (parameters
10046     '("const-gchar*" "program")
10047   )
10048 )
10049
10050 (define-function glib_check_version
10051   (c-name "glib_check_version")
10052   (return-type "const-gchar*")
10053   (parameters
10054     '("guint" "required_major")
10055     '("guint" "required_minor")
10056     '("guint" "required_micro")
10057   )
10058 )
10059
10060
10061
10062 ;; From gwin32.h
10063
10064 (define-function g_win32_ftruncate
10065   (c-name "g_win32_ftruncate")
10066   (return-type "gint")
10067   (parameters
10068     '("gint" "f")
10069     '("guint" "size")
10070   )
10071 )
10072
10073 (define-function g_win32_getlocale
10074   (c-name "g_win32_getlocale")
10075   (return-type "gchar*")
10076 )
10077
10078 (define-function g_win32_error_message
10079   (c-name "g_win32_error_message")
10080   (return-type "gchar*")
10081   (parameters
10082     '("gint" "error")
10083   )
10084 )
10085
10086 (define-function g_win32_get_package_installation_directory
10087   (c-name "g_win32_get_package_installation_directory")
10088   (return-type "gchar*")
10089   (parameters
10090     '("const-gchar*" "package")
10091     '("const-gchar*" "dll_name")
10092   )
10093 )
10094
10095 (define-function g_win32_get_package_installation_subdirectory
10096   (c-name "g_win32_get_package_installation_subdirectory")
10097   (return-type "gchar*")
10098   (parameters
10099     '("const-gchar*" "package")
10100     '("const-gchar*" "dll_name")
10101     '("const-gchar*" "subdir")
10102   )
10103 )
10104
10105 (define-function g_win32_get_windows_version
10106   (c-name "g_win32_get_windows_version")
10107   (return-type "guint")
10108 )
10109
10110 (define-function g_win32_locale_filename_from_utf8
10111   (c-name "g_win32_locale_filename_from_utf8")
10112   (return-type "gchar*")
10113   (parameters
10114     '("const-gchar*" "utf8filename")
10115   )
10116 )
10117
10118