root/lib/glibcompat.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 #ifndef MC_GLIBCOMPAT_H
   2 #define MC_GLIBCOMPAT_H
   3 
   4 /*** typedefs(not structures) and defined constants **********************************************/
   5 
   6 #ifndef G_OPTION_ENTRY_NULL
   7 #    define G_OPTION_ENTRY_NULL { NULL, '\0', 0, 0, NULL, NULL, NULL }
   8 #endif
   9 
  10 /*** enums ***************************************************************************************/
  11 
  12 /*** structures declarations (and typedefs of structures)*****************************************/
  13 
  14 /*** global variables defined in .c file *********************************************************/
  15 
  16 /*** declarations of public functions ************************************************************/
  17 
  18 #if !GLIB_CHECK_VERSION(2, 54, 0)
  19 gboolean g_ptr_array_find_with_equal_func (GPtrArray *haystack, gconstpointer needle,
  20                                            GEqualFunc equal_func, guint *index_);
  21 #endif
  22 
  23 #if !GLIB_CHECK_VERSION(2, 63, 3)
  24 void g_clear_slist (GSList **slist_ptr, GDestroyNotify destroy);
  25 void g_clear_list (GList **list_ptr, GDestroyNotify destroy);
  26 #endif
  27 
  28 #if !GLIB_CHECK_VERSION(2, 60, 0)
  29 void g_queue_clear_full (GQueue *queue, GDestroyNotify free_func);
  30 #endif
  31 
  32 #if !GLIB_CHECK_VERSION(2, 77, 0)
  33 GString *g_string_new_take (char *init);
  34 #endif
  35 
  36 /* There is no such API in GLib2 */
  37 GString *mc_g_string_copy (GString *dest, const GString *src);
  38 
  39 /* There is no such API in GLib2 */
  40 GString *mc_g_string_dup (const GString *s);
  41 
  42 /* There is no such API in GLib2 */
  43 GString *mc_g_string_append_c_len (GString *s, gchar c, guint len);
  44 
  45 /*** inline functions ****************************************************************************/
  46 
  47 #endif

/* [previous][next][first][last][top][bottom][index][help]  */