Function
GLibMainLoopnew
Parameters
context-
Type:
GMainContextA
GMainContext(ifNULL, the global-default main context will be used).The argument can be NULL.The data is owned by the caller of the function. is_running-
Type:
gbooleanSet to
TRUEto indicate that the loop is running. This is not very important since callingg_main_loop_run()will set this toTRUEanyway.
Return value
Type: GMainLoop
A new GMainLoop.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |