shared/tests: add nmtst_g_source_nop() helper

(cherry picked from commit ca2b79d9aa)
(cherry picked from commit ddb69b211c)
(cherry picked from commit e069982492)
(cherry picked from commit 8358652425)
(cherry picked from commit 2d59d02d33)
(cherry picked from commit 7a9af7213b)
This commit is contained in:
Thomas Haller 2020-11-02 12:55:06 +01:00
parent 5373680df9
commit d0c3f868cb
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1001,6 +1001,13 @@ nmtst_g_source_set_boolean_true (gpointer user_data)
return G_SOURCE_CONTINUE;
}
static inline gboolean
nmtst_g_source_nop (gpointer user_data)
{
g_assert (!user_data);
return G_SOURCE_CONTINUE;
}
/*****************************************************************************/
static inline gboolean