glibcompat.h 1.3 KB

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