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

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