[glib: 1/2] glib: documentation of GSourceFuncs




commit 15e3b9e219ed3551c6028a812dda7b3d34bb0802
Author: nitinosiris <nitinwartkar58 gmail com>
Date:   Mon May 10 20:03:12 2021 +0530

    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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]