From 15e3b9e219ed3551c6028a812dda7b3d34bb0802 Mon Sep 17 00:00:00 2001 From: nitinosiris Date: Mon, 10 May 2021 20:03:12 +0530 Subject: [PATCH] glib: documentation of GSourceFuncs Only finalize has a comment to indicate that it can be NULL However, prepare and check can both be NULL too. Fixes: 1864 --- glib/gmain.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/gmain.h b/glib/gmain.h index 22ea17876..fc963e82a 100644 --- a/glib/gmain.h +++ b/glib/gmain.h @@ -264,8 +264,8 @@ typedef void (*GSourceDummyMarshal) (void); struct _GSourceFuncs { gboolean (*prepare) (GSource *source, - gint *timeout_); - gboolean (*check) (GSource *source); + gint *timeout_);/* Can be NULL */ + gboolean (*check) (GSource *source);/* Can be NULL */ gboolean (*dispatch) (GSource *source, GSourceFunc callback, gpointer user_data);