projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a09a7e
)
nmtst: add nmtst_main_loop_quit_on_notify function
author
Thomas Haller
<thaller@redhat.com>
Thu, 10 Mar 2016 15:46:30 +0000
(16:46 +0100)
committer
Thomas Haller
<thaller@redhat.com>
Thu, 10 Mar 2016 15:46:50 +0000
(16:46 +0100)
shared/nm-test-utils.h
patch
|
blob
|
history
diff --git
a/shared/nm-test-utils.h
b/shared/nm-test-utils.h
index
b11b310
..
6e705dc
100644
(file)
--- a/
shared/nm-test-utils.h
+++ b/
shared/nm-test-utils.h
@@
-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 *