The sml_main_loop is responsible for providing a mainloop using glib's mainloop. It is also possible to schedule a timer to automatically call sml_process. More...
Functions | |
| int | sml_main_loop_init (void) |
| Init the SML mainloop. More... | |
| void | sml_main_loop_quit (void) |
| Stops the SML mainloop. More... | |
| void | sml_main_loop_run (void) |
| Start the SML mainloop. More... | |
| int | sml_main_loop_schedule_sml_process (struct sml_object *sml, unsigned int timeout) |
| Schedule a timer to call sml_process automatically. More... | |
| void | sml_main_loop_shutdown (void) |
| Clean up the SML mainloop. More... | |
| bool | sml_main_loop_unschedule_sml_process (int sml_timeout_id) |
| Unschedule the SML mainloop. More... | |
The sml_main_loop is responsible for providing a mainloop using glib's mainloop. It is also possible to schedule a timer to automatically call sml_process.
| int sml_main_loop_init | ( | void | ) |
Init the SML mainloop.
0 on success. A number < 0 on failure.| void sml_main_loop_quit | ( | void | ) |
Stops the SML mainloop.
| void sml_main_loop_run | ( | void | ) |
Start the SML mainloop.
| int sml_main_loop_schedule_sml_process | ( | struct sml_object * | sml, |
| unsigned int | timeout | ||
| ) |
Schedule a timer to call sml_process automatically.
| sml | The sml_object object. |
| timeout | The interval between sml_process calls (milliseconds). |
| void sml_main_loop_shutdown | ( | void | ) |
Clean up the SML mainloop.
| bool sml_main_loop_unschedule_sml_process | ( | int | sml_timeout_id | ) |
Unschedule the SML mainloop.
This function will unschedule the sml_process calls.
| sml_timeout_id | The timeout_id returned by sml_main_loop_schedule_sml_process. |
true on success. false on failure.
1.8.6