Add g_object_add/remove_toggle_ref() functions to get notification when a
[platform/upstream/glib.git] / docs / reference / glib / tmpl / main.sgml
1 <!-- ##### SECTION Title ##### -->
2 The Main Event Loop
3
4 <!-- ##### SECTION Short_Description ##### -->
5 manages all available sources of events.
6
7 <!-- ##### SECTION Long_Description ##### -->
8   <para>
9     The main event loop manages all the available sources of events for
10     GLib and GTK+ applications. These events can come from any number of
11     different types of sources such as file descriptors (plain files,
12     pipes or sockets) and timeouts.  New types of event sources can also
13     be added using g_source_attach().
14   </para>
15   <para>
16     To allow multiple independent sets of sources to be handled in
17     different threads, each source is associated with a #GMainContext.
18     A #GMainContext can only be running in a single thread, but
19     sources can be added to it and removed from it from other threads.
20   </para>
21   <para>
22     Each event source is assigned a priority.  The default priority,
23     #G_PRIORITY_DEFAULT, is 0.  Values less than 0 denote higher
24     priorities.  Values greater than 0 denote lower priorities.  Events
25     from high priority sources are always processed before events from
26     lower priority sources.
27   </para>
28   <para>
29     Idle functions can also be added, and assigned a priority. These will
30     be run whenever no events with a higher priority are ready to be
31     processed.
32   </para>
33   <para>
34     The #GMainLoop data type represents a main event loop.  A #GMainLoop
35     is created with g_main_loop_new(). After adding the initial event sources,
36     g_main_loop_run() is called. This continuously checks for new events from
37     each of the event sources and dispatches them.  Finally, the
38     processing of an event from one of the sources leads to a call to
39     g_main_loop_quit() to exit the main loop, and g_main_loop_run() returns.
40   </para>
41   <para>
42     It is possible to create new instances of #GMainLoop recursively.
43     This is often used in GTK+ applications when showing modal dialog
44     boxes. Note that event sources are associated with a particular
45     #GMainContext, and will be checked and dispatched for all main
46     loops associated with that #GMainContext.
47   </para>
48   <para>
49     GTK+ contains wrappers of some of these functions, e.g. gtk_main(),
50     gtk_main_quit() and gtk_events_pending(). 
51   </para>
52   <refsect2>
53     <title>Creating new sources types</title>
54     <para>
55       One of the unusual features of the GTK+ main loop functionality
56       is that new types of event source can be created and used in
57       addition to the builtin type of event source. A new event source
58       type is used for handling GDK events. A new source type is
59       created by <firstterm>deriving</firstterm> from the #GSource
60       structure. The derived type of source is represented by a
61       structure that has the #GSource structure as a first element,
62       and other elements specific to the new source type. To create
63       an instance of the new source type, call g_source_new() passing
64       in the size of the derived structure and a table of functions.
65       These #GSourceFuncs determine the behavior of the new source
66       types.
67     </para>
68     <para>
69       New source types basically interact with with the main context
70       in two ways. Their prepare function in #GSourceFuncs can set
71       a timeout to determine the maximum amount of time that the
72       main loop will sleep before checking the source again.  In
73       addition, or as well, the source can add file descriptors to
74       the set that the main context checks using g_source_add_poll().
75     </para>
76   </refsect2>
77   <refsect2>
78     <title>Customizing the main loop iteration</title>
79     <para>
80       Single iterations of a #GMainContext can be run with
81       g_main_context_iteration(). In some cases, more detailed control
82       of exactly how the details of the main loop work is desired,
83       for instance, when integrating the #GMainLoop with an external
84       main loop. In such cases, you can call the component functions
85       of g_main_context_iteration() directly. These functions
86       are g_main_context_prepare(), g_main_context_query(),
87       g_main_context_check() and g_main_context_dispatch().
88     </para>
89     <para>
90       The operation of these functions can best be seen in terms
91       of a state diagram, as shown in <xref linkend="mainloop-states"/>.
92     </para>
93     <figure id="mainloop-states">
94       <title>States of a Main Context</title>
95       <graphic fileref="mainloop-states.gif" format="GIF"></graphic>
96     </figure>
97   </refsect2>
98
99 <!-- ##### SECTION See_Also ##### -->
100 <para>
101
102 </para>
103
104 <!-- ##### SECTION Stability_Level ##### -->
105
106
107 <!-- ##### STRUCT GMainLoop ##### -->
108 <para>
109 The <structname>GMainLoop</structname> struct is an opaque data type 
110 representing the main event loop of a GLib or GTK+ application.
111 </para>
112
113
114 <!-- ##### FUNCTION g_main_loop_new ##### -->
115 <para>
116
117 </para>
118
119 @context: 
120 @is_running: 
121 @Returns: 
122
123
124 <!-- ##### FUNCTION g_main_loop_ref ##### -->
125 <para>
126
127 </para>
128
129 @loop: 
130 @Returns: 
131
132
133 <!-- ##### FUNCTION g_main_loop_unref ##### -->
134 <para>
135
136 </para>
137
138 @loop: 
139
140
141 <!-- ##### FUNCTION g_main_loop_run ##### -->
142 <para>
143
144 </para>
145
146 @loop: 
147
148
149 <!-- ##### FUNCTION g_main_loop_quit ##### -->
150 <para>
151
152 </para>
153
154 @loop: 
155
156
157 <!-- ##### FUNCTION g_main_loop_is_running ##### -->
158 <para>
159
160 </para>
161
162 @loop: 
163 @Returns: 
164
165
166 <!-- ##### FUNCTION g_main_loop_get_context ##### -->
167 <para>
168
169 </para>
170
171 @loop: 
172 @Returns: 
173
174
175 <!-- ##### MACRO g_main_new ##### -->
176 <para>
177 Creates a new #GMainLoop for the default main loop. 
178 </para>
179
180 @is_running: set to %TRUE to indicate that the loop is running. This is not
181 very important since calling g_main_run() will set this to %TRUE anyway.
182 @Returns: a new #GMainLoop.
183 @Deprecated: Use g_main_loop_new() instead.
184
185
186 <!-- ##### MACRO g_main_destroy ##### -->
187 <para>
188 Frees the memory allocated for the #GMainLoop. 
189 </para>
190
191 @loop: a #GMainLoop.
192 @Deprecated: Use g_main_loop_unref() instead.
193
194
195 <!-- ##### MACRO g_main_run ##### -->
196 <para>
197 Runs a main loop until it stops running. 
198 </para>
199
200 @loop: a #GMainLoop.
201 @Deprecated: Use g_main_loop_run() instead.
202
203
204 <!-- ##### MACRO g_main_quit ##### -->
205 <para>
206 Stops the #GMainLoop. If g_main_run() was called to run the #GMainLoop,
207 it will now return. 
208 </para>
209
210 @loop: a #GMainLoop.
211 @Deprecated: Use g_main_loop_quit() instead.
212
213
214 <!-- ##### MACRO g_main_is_running ##### -->
215 <para>
216 Checks if the main loop is running. 
217 </para>
218
219 @loop: a #GMainLoop.
220 @Returns: %TRUE if the main loop is running.
221 @Deprecated: USe g_main_loop_is_running() instead.
222
223
224 <!-- ##### MACRO G_PRIORITY_HIGH ##### -->
225 <para>
226 Use this for high priority event sources.
227 It is not used within GLib or GTK+.
228 </para>
229
230
231
232 <!-- ##### MACRO G_PRIORITY_DEFAULT ##### -->
233 <para>
234 Use this for default priority event sources.
235 In GLib this priority is used when adding timeout functions with
236 g_timeout_add().
237 In GDK this priority is used for events from the X server.
238 </para>
239
240
241
242 <!-- ##### MACRO G_PRIORITY_HIGH_IDLE ##### -->
243 <para>
244 Use this for high priority idle functions.
245 GTK+ uses #G_PRIORITY_HIGH_IDLE + 10 for resizing operations, and
246 #G_PRIORITY_HIGH_IDLE + 20 for redrawing operations. (This is done to
247 ensure that any pending resizes are processed before any pending redraws,
248 so that widgets are not redrawn twice unnecessarily.)
249 </para>
250
251
252
253 <!-- ##### MACRO G_PRIORITY_DEFAULT_IDLE ##### -->
254 <para>
255 Use this for default priority idle functions.
256 In GLib this priority is used when adding idle functions with g_idle_add().
257 </para>
258
259
260
261 <!-- ##### MACRO G_PRIORITY_LOW ##### -->
262 <para>
263 Use this for very low priority background tasks.
264 It is not used within GLib or GTK+.
265 </para>
266
267
268
269 <!-- ##### STRUCT GMainContext ##### -->
270 <para>
271 The <structname>GMainContext</structname> struct is an opaque data type 
272 representing a set of sources to be handled in a main loop. 
273 </para>
274
275
276 <!-- ##### FUNCTION g_main_context_new ##### -->
277 <para>
278
279 </para>
280
281 @Returns: 
282
283
284 <!-- ##### FUNCTION g_main_context_ref ##### -->
285 <para>
286
287 </para>
288
289 @context: 
290 @Returns: 
291
292
293 <!-- ##### FUNCTION g_main_context_unref ##### -->
294 <para>
295
296 </para>
297
298 @context: 
299
300
301 <!-- ##### FUNCTION g_main_context_default ##### -->
302 <para>
303
304 </para>
305
306 @Returns: 
307
308
309 <!-- ##### FUNCTION g_main_context_iteration ##### -->
310 <para>
311
312 </para>
313
314 @context: 
315 @may_block: 
316 @Returns: 
317
318
319 <!-- ##### MACRO g_main_iteration ##### -->
320 <para>
321 Runs a single iteration for the default #GMainContext.
322 </para>
323
324 @may_block: set to %TRUE if it should block (i.e. wait) until an event source
325 becomes ready. It will return after an event source has been processed.
326 If set to %FALSE it will return immediately if no event source is ready to be
327 processed.
328 @Returns: %TRUE if more events are pending.
329 @Deprecated: Use g_main_context_iteration() instead.
330
331
332 <!-- ##### FUNCTION g_main_context_pending ##### -->
333 <para>
334
335 </para>
336
337 @context: 
338 @Returns: 
339
340
341 <!-- ##### MACRO g_main_pending ##### -->
342 <para>
343 Checks if any events are pending for the default #GMainContext
344 (i.e. ready to be processed).  
345 </para>
346
347 @Returns: %TRUE if any events are pending.
348 @Deprecated: Use g_main_context_pending() instead.
349
350
351 <!-- ##### FUNCTION g_main_context_find_source_by_id ##### -->
352 <para>
353
354 </para>
355
356 @context: 
357 @source_id: 
358 @Returns: 
359 <!-- # Unused Parameters # -->
360 @id: 
361
362
363 <!-- ##### FUNCTION g_main_context_find_source_by_user_data ##### -->
364 <para>
365
366 </para>
367
368 @context: 
369 @user_data: 
370 @Returns: 
371
372
373 <!-- ##### FUNCTION g_main_context_find_source_by_funcs_user_data ##### -->
374 <para>
375
376 </para>
377
378 @context: 
379 @funcs: 
380 @user_data: 
381 @Returns: 
382
383
384 <!-- ##### FUNCTION g_main_context_wakeup ##### -->
385 <para>
386
387 </para>
388
389 @context: 
390
391
392 <!-- ##### FUNCTION g_main_context_acquire ##### -->
393 <para>
394
395 </para>
396
397 @context: 
398 @Returns: 
399
400
401 <!-- ##### FUNCTION g_main_context_release ##### -->
402 <para>
403
404 </para>
405
406 @context: 
407
408
409 <!-- ##### FUNCTION g_main_context_wait ##### -->
410 <para>
411
412 </para>
413
414 @context: 
415 @cond: 
416 @mutex: 
417 @Returns: 
418
419
420 <!-- ##### FUNCTION g_main_context_prepare ##### -->
421 <para>
422
423 </para>
424
425 @context: 
426 @priority: 
427 @Returns: 
428
429
430 <!-- ##### FUNCTION g_main_context_query ##### -->
431 <para>
432
433 </para>
434
435 @context: 
436 @max_priority: 
437 @timeout_: 
438 @fds: 
439 @n_fds: 
440 @Returns: 
441
442
443 <!-- ##### FUNCTION g_main_context_check ##### -->
444 <para>
445
446 </para>
447
448 @context: 
449 @max_priority: 
450 @fds: 
451 @n_fds: 
452 @Returns: 
453
454
455 <!-- ##### FUNCTION g_main_context_dispatch ##### -->
456 <para>
457
458 </para>
459
460 @context: 
461
462
463 <!-- ##### FUNCTION g_main_context_set_poll_func ##### -->
464 <para>
465
466 </para>
467
468 @context: 
469 @func: 
470
471
472 <!-- ##### FUNCTION g_main_context_get_poll_func ##### -->
473 <para>
474
475 </para>
476
477 @context: 
478 @Returns: 
479
480
481 <!-- ##### USER_FUNCTION GPollFunc ##### -->
482 <para>
483 Specifies the type of function passed to g_main_context_set_poll_func().
484 The semantics of the function should match those of the
485 <function>poll()</function> system call.
486 </para>
487
488 @ufds: an array of #GPollFD elements.
489 @nfsd: the number of elements in @ufds.
490 @timeout_: the maximum time to wait for an event of the file descriptors.
491           A negative value indicates an infinite timeout.
492 @Returns: the number of #GPollFD elements which have events or errors reported,
493 or -1 if an error occurred.
494
495
496 <!-- ##### FUNCTION g_main_context_add_poll ##### -->
497 <para>
498
499 </para>
500
501 @context: 
502 @fd: 
503 @priority: 
504
505
506 <!-- ##### FUNCTION g_main_context_remove_poll ##### -->
507 <para>
508
509 </para>
510
511 @context: 
512 @fd: 
513
514
515 <!-- ##### FUNCTION g_main_depth ##### -->
516 <para>
517
518 </para>
519
520 @Returns: 
521
522
523 <!-- ##### MACRO g_main_set_poll_func ##### -->
524 <para>
525 Sets the function to use for the handle polling of file descriptors
526 for the default main context. 
527 </para>
528
529 @func: the function to call to poll all file descriptors.
530 @Deprecated: Use g_main_context_set_poll_func() instead.
531
532
533 <!-- ##### FUNCTION g_timeout_source_new ##### -->
534 <para>
535
536 </para>
537
538 @interval: 
539 @Returns: 
540
541
542 <!-- ##### FUNCTION g_timeout_add ##### -->
543 <para>
544 </para>
545
546 @interval: 
547 @function: 
548 @data: 
549 @Returns: 
550
551
552 <!-- ##### FUNCTION g_timeout_add_full ##### -->
553 <para>
554 </para>
555
556 @priority: 
557 @interval: 
558 @function: 
559 @data: 
560 @notify: 
561 @Returns: 
562
563
564 <!-- ##### FUNCTION g_idle_source_new ##### -->
565 <para>
566
567 </para>
568
569 @Returns: 
570
571
572 <!-- ##### FUNCTION g_idle_add ##### -->
573 <para>
574 </para>
575
576 @function: 
577 @data: 
578 @Returns: 
579
580
581 <!-- ##### FUNCTION g_idle_add_full ##### -->
582 <para>
583 </para>
584
585 @priority: 
586 @function: 
587 @data: 
588 @notify: 
589 @Returns: 
590
591
592 <!-- ##### FUNCTION g_idle_remove_by_data ##### -->
593 <para>
594 </para>
595
596 @data: 
597 @Returns: 
598
599
600 <!-- ##### TYPEDEF GPid ##### -->
601 <para>
602 A type which is used to hold a process identification. 
603 On Unix, processes are identified by a process id (an 
604 integer), while Windows uses process handles (which are 
605 pointers).
606 </para>
607
608
609 <!-- ##### USER_FUNCTION GChildWatchFunc ##### -->
610 <para>
611 The type of functions to be called when a child exists.
612 </para>
613
614 @pid: the process id of the child process
615 @status: Status information about the child process,
616   see waitpid(2) for more information about this field
617 @data: user data passed to g_child_watch_add()
618
619
620 <!-- ##### FUNCTION g_child_watch_source_new ##### -->
621 <para>
622
623 </para>
624
625 @pid: 
626 @Returns: 
627
628
629 <!-- ##### FUNCTION g_child_watch_add ##### -->
630 <para>
631
632 </para>
633
634 @pid: 
635 @function: 
636 @data: 
637 @Returns: 
638
639
640 <!-- ##### FUNCTION g_child_watch_add_full ##### -->
641 <para>
642
643 </para>
644
645 @priority: 
646 @pid: 
647 @function: 
648 @data: 
649 @notify: 
650 @Returns: 
651
652
653 <!-- ##### STRUCT GPollFD ##### -->
654 <para>
655
656 <informaltable pgwide="1" frame="none" role="struct">
657 <tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
658 <tbody>
659
660 <row>
661 <entry>#gint fd;</entry>
662 <entry>the file descriptor to poll (or a <type>HANDLE</type> on Win32 platforms).</entry>
663 </row>
664
665 <row>
666 <entry>#gushort events;</entry>
667 <entry>a bitwise combination of flags from #GIOCondition, specifying which
668 events should be polled for. Typically for reading from a file descriptor
669 you would use %G_IO_IN | %G_IO_HUP | %G_IO_ERR, and for writing you would use
670 %G_IO_OUT | %G_IO_ERR.
671 </entry>
672 </row>
673
674 <row>
675 <entry>#gushort revents;</entry>
676 <entry>a bitwise combination of flags from #GIOCondition, returned from the
677 <function>poll()</function> function to indicate which events occurred.
678 </entry>
679 </row>
680 </tbody></tgroup></informaltable>
681
682 </para>
683
684 @fd: 
685 @events: 
686 @revents: 
687
688 <!-- ##### STRUCT GSource ##### -->
689 <para>
690 The <structname>GSource</structname> struct is an opaque data type representing
691 an event source.
692 </para>
693
694
695 <!-- ##### USER_FUNCTION GSourceDummyMarshal ##### -->
696 <para>
697 This is just a placeholder for #GClosureMarshal, which cannot be used here
698 for dependency reasons.
699 </para>
700
701
702
703 <!-- ##### STRUCT GSourceFuncs ##### -->
704 <para>
705 The #GSourceFuncs struct contains a table of functions used to handle
706 event sources in a generic manner.
707
708 <informaltable pgwide="1" frame="none" role="struct">
709 <tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
710 <tbody>
711
712 <row>
713 <entry>prepare</entry>
714 <entry>
715 Called before all the file descriptors are polled.
716 If the source can determine that it is ready here (without waiting for the
717 results of the <function>poll()</function> call) it should return %TRUE.
718 It can also return a @timeout_ value which should be the maximum timeout
719 (in milliseconds) which should be passed to the <function>poll()</function> call.
720 The actual timeout used will be -1 if all sources returned -1, or it will
721 be the minimum of all the @timeout_ values returned which were >= 0.
722 </entry>
723 </row>
724
725 <row>
726 <entry>check</entry>
727 <entry>
728 Called after all the file descriptors are polled.
729 The source should return %TRUE if it is ready to be dispatched.
730 Note that some time may have passed since the previous prepare function was
731 called, so the source should be checked again here.
732 </entry>
733 </row>
734
735 <row>
736 <entry>dispatch</entry>
737 <entry>
738 Called to dispatch the event source, after it has returned %TRUE in
739 either its @prepare or its @check function. The @dispatch function is
740 passed in a callback function and data. The callback function may be
741 %NULL if the source was never connected to a callback using
742 g_source_set_callback(). The @dispatch function should call the
743 callback function with @user_data and whatever additional parameters are
744 needed for this type of event source.
745 </entry>
746 </row>
747
748 <row>
749 <entry>finalize</entry>
750 <entry>
751 Called when the source is finalized.
752 </entry>
753 </row>
754 </tbody></tgroup></informaltable>
755 </para>
756
757 <para>
758 For idle sources, the prepare and check functions always return %TRUE to
759 indicate that the source is always ready to be processed.
760 The prepare function also returns a timeout value of 0 to ensure that the
761 <function>poll()</function> call doesn't block (since that would be time 
762 wasted which could have been spent running the idle function).
763 </para>
764 <para>
765 For timeout sources, the prepare and check functions both return %TRUE if the
766 timeout interval has expired. The prepare function also returns a timeout 
767 value to ensure that the <function>poll()</function> call doesn't block too 
768 long and miss the next timeout.
769 </para>
770 <para>
771 For file descriptor sources, the prepare function typically returns %FALSE,
772 since it must wait until <function>poll()</function> has been called before 
773 it knows whether any events need to be processed. It sets the returned 
774 timeout to -1 to indicate that it doesn't mind how long the 
775 <function>poll()</function> call blocks.
776 In the check function, it tests the results of the <function>poll()</function>
777 call to see if the required condition has been met, and returns %TRUE if so.
778 </para>
779
780 @prepare: 
781 @check: 
782 @dispatch: 
783 @finalize: 
784 @closure_callback: 
785 @closure_marshal: 
786
787 <!-- ##### STRUCT GSourceCallbackFuncs ##### -->
788 <para>
789 The <structname>GSourceCallbackFuncs</structname> struct contains
790 functions for managing callback objects. 
791 </para>
792
793 @ref: Called when a reference is added to the callback object.
794 @unref: Called when a reference to the callback object is dropped.
795 @get: Called to extract the callback function and data from the callback object.
796
797 <!-- ##### FUNCTION g_source_new ##### -->
798 <para>
799
800 </para>
801
802 @source_funcs: 
803 @struct_size: 
804 @Returns: 
805
806
807 <!-- ##### FUNCTION g_source_ref ##### -->
808 <para>
809
810 </para>
811
812 @source: 
813 @Returns: 
814
815
816 <!-- ##### FUNCTION g_source_unref ##### -->
817 <para>
818
819 </para>
820
821 @source: 
822
823
824 <!-- ##### FUNCTION g_source_attach ##### -->
825 <para>
826
827 </para>
828
829 @source: 
830 @context: 
831 @Returns: 
832
833
834 <!-- ##### FUNCTION g_source_destroy ##### -->
835 <para>
836
837 </para>
838
839 @source: 
840
841
842 <!-- ##### FUNCTION g_source_set_priority ##### -->
843 <para>
844
845 </para>
846
847 @source: 
848 @priority: 
849
850
851 <!-- ##### FUNCTION g_source_get_priority ##### -->
852 <para>
853
854 </para>
855
856 @source: 
857 @Returns: 
858
859
860 <!-- ##### FUNCTION g_source_set_can_recurse ##### -->
861 <para>
862
863 </para>
864
865 @source: 
866 @can_recurse: 
867
868
869 <!-- ##### FUNCTION g_source_get_can_recurse ##### -->
870 <para>
871
872 </para>
873
874 @source: 
875 @Returns: 
876
877
878 <!-- ##### FUNCTION g_source_get_id ##### -->
879 <para>
880
881 </para>
882
883 @source: 
884 @Returns: 
885
886
887 <!-- ##### FUNCTION g_source_get_context ##### -->
888 <para>
889
890 </para>
891
892 @source: 
893 @Returns: 
894
895
896 <!-- ##### FUNCTION g_source_set_callback ##### -->
897 <para>
898
899 </para>
900
901 @source: 
902 @func: 
903 @data: 
904 @notify: 
905
906
907 <!-- ##### USER_FUNCTION GSourceFunc ##### -->
908 <para>
909 Specifies the type of function passed to g_timeout_add(), g_timeout_add_full(),
910 g_idle_add(), and g_idle_add_full().
911 </para>
912
913 @data: data passed to the function, set when the source was created with one
914 of the above functions.
915 @Returns: it should return %FALSE if the source should be removed.
916
917
918 <!-- ##### FUNCTION g_source_set_callback_indirect ##### -->
919 <para>
920
921 </para>
922
923 @source: 
924 @callback_data: 
925 @callback_funcs: 
926
927
928 <!-- ##### FUNCTION g_source_add_poll ##### -->
929 <para>
930
931 </para>
932
933 @source: 
934 @fd: 
935
936
937 <!-- ##### FUNCTION g_source_remove_poll ##### -->
938 <para>
939
940 </para>
941
942 @source: 
943 @fd: 
944
945
946 <!-- ##### FUNCTION g_source_get_current_time ##### -->
947 <para>
948
949 </para>
950
951 @source: 
952 @timeval: 
953
954
955 <!-- ##### FUNCTION g_source_remove ##### -->
956 <para>
957 </para>
958
959 @tag: 
960 @Returns: 
961
962
963 <!-- ##### FUNCTION g_source_remove_by_funcs_user_data ##### -->
964 <para>
965 </para>
966
967 @funcs: 
968 @user_data: 
969 @Returns: 
970
971
972 <!-- ##### FUNCTION g_source_remove_by_user_data ##### -->
973 <para>
974 </para>
975
976 @user_data: 
977 @Returns: 
978
979 <!--
980 Local variables:
981 mode: sgml
982 sgml-parent-document: ("../glib-docs.sgml" "book" "refsect2" "")
983 End:
984 -->
985
986