Add some more deprecation guards to shut up gtk-doc
authorMatthias Clasen <mclasen@redhat.com>
Sun, 2 Feb 2014 01:43:01 +0000 (20:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 2 Feb 2014 01:43:01 +0000 (20:43 -0500)
glib/deprecated/gcache.h
glib/deprecated/gmain.h
glib/deprecated/gthread.h

index 1886f6b..5865978 100644 (file)
@@ -33,6 +33,8 @@
 
 G_BEGIN_DECLS
 
+#ifndef G_DISABLE_DEPRECATED
+
 typedef struct _GCache          GCache;
 
 typedef gpointer        (*GCacheNewFunc)        (gpointer       key);
@@ -66,6 +68,8 @@ void     g_cache_value_foreach (GCache            *cache,
                                 GHFunc             func,
                                 gpointer           user_data);
 
+#endif
+
 G_END_DECLS
 
 #endif /* __G_CACHE_H__ */
index c2e31ff..453699d 100644 (file)
@@ -33,6 +33,8 @@
 
 G_BEGIN_DECLS
 
+#ifndef G_DISABLE_DEPRECATED
+
 /* ============== Compat main loop stuff ================== */
 
 /**
@@ -130,6 +132,7 @@ G_BEGIN_DECLS
  */
 #define g_main_set_poll_func(func)  g_main_context_set_poll_func (NULL, func)
 
+#endif
 
 G_END_DECLS
 
index 9d1c685..dc631e6 100644 (file)
@@ -33,6 +33,8 @@
 
 G_BEGIN_DECLS
 
+#ifndef G_DISABLE_DEPRECATED
+
 typedef enum
 {
   G_THREAD_PRIORITY_LOW,
@@ -280,6 +282,8 @@ gboolean        g_cond_timed_wait       (GCond          *cond,
                                          GMutex         *mutex,
                                          GTimeVal       *timeval);
 
+#endif
+
 G_END_DECLS
 
 #endif /* __G_DEPRECATED_THREAD_H__ */