mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 16:00:07 +01:00
nmtst: add nmtst_main_loop_quit_on_notify function
This commit is contained in:
parent
3a09a7e991
commit
0cee9ef7b5
1 changed files with 12 additions and 0 deletions
|
|
@ -853,6 +853,18 @@ nmtst_main_loop_run (GMainLoop *loop, int timeout_ms)
|
|||
return loopx != NULL;
|
||||
}
|
||||
|
||||
inline static void
|
||||
_nmtst_main_loop_quit_on_notify (GObject *object, GParamSpec *pspec, gpointer user_data)
|
||||
{
|
||||
GMainLoop *loop = user_data;
|
||||
|
||||
g_assert (G_IS_OBJECT (object));
|
||||
g_assert (loop);
|
||||
|
||||
g_main_loop_quit (loop);
|
||||
}
|
||||
#define nmtst_main_loop_quit_on_notify ((GCallback) _nmtst_main_loop_quit_on_notify)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
inline static const char *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue