glibcompat.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef MC_GLIBCOMPAT_H
  2. #define MC_GLIBCOMPAT_H
  3. /*** typedefs(not structures) and defined constants **********************************************/
  4. #ifndef G_OPTION_ENTRY_NULL
  5. #define G_OPTION_ENTRY_NULL \
  6. { NULL, '\0', 0, 0, NULL, NULL, NULL }
  7. #endif /* G_OPTION_ENTRY_NULL */
  8. /*** enums ***************************************************************************************/
  9. /*** structures declarations (and typedefs of structures)*****************************************/
  10. /*** global variables defined in .c file *********************************************************/
  11. /*** declarations of public functions ************************************************************/
  12. #if ! GLIB_CHECK_VERSION (2, 63, 3)
  13. void g_clear_slist (GSList ** slist_ptr, GDestroyNotify destroy);
  14. void g_clear_list (GList ** list_ptr, GDestroyNotify destroy);
  15. #endif /* ! GLIB_CHECK_VERSION (2, 63, 3) */
  16. #if ! GLIB_CHECK_VERSION (2, 32, 0)
  17. void g_queue_free_full (GQueue * queue, GDestroyNotify free_func);
  18. #endif /* ! GLIB_CHECK_VERSION (2, 32, 0) */
  19. #if ! GLIB_CHECK_VERSION (2, 60, 0)
  20. void g_queue_clear_full (GQueue * queue, GDestroyNotify free_func);
  21. #endif /* ! GLIB_CHECK_VERSION (2, 60, 0) */
  22. /* There is no such API in GLib2 */
  23. GString *mc_g_string_copy (GString * dest, const GString * src);
  24. /* There is no such API in GLib2 */
  25. GString *mc_g_string_dup (const GString * s);
  26. /*** inline functions ****************************************************************************/
  27. #endif /* MC_GLIBCOMPAT_H */