Gamin (File Alteration Monitor) - Python 3 migration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
2.3 KiB

4 years ago
  1. Description: Don't use deprecated G_CONST_RETURN. Fixes building with newer glib versions.
  2. Author: Matthias Klose <doko@ubuntu.com>
  3. Bug-Ubuntu: https://launchpad.net/bugs/829504
  4. Index: gamin/server/gam_node.c
  5. ===================================================================
  6. --- gamin.orig/server/gam_node.c 2011-10-18 16:09:04.873780685 +0200
  7. +++ gamin/server/gam_node.c 2011-10-18 16:09:01.965780543 +0200
  8. @@ -122,7 +122,7 @@
  9. * it has finished with the string. If it must keep it longer, it
  10. * should makes its own copy. The returned string must not be freed.
  11. */
  12. -G_CONST_RETURN char *
  13. +const char *
  14. gam_node_get_path(GamNode * node)
  15. {
  16. g_assert(node);
  17. Index: gamin/server/gam_node.h
  18. ===================================================================
  19. --- gamin.orig/server/gam_node.h 2011-10-18 16:09:04.729780677 +0200
  20. +++ gamin/server/gam_node.h 2011-10-18 16:09:01.961780544 +0200
  21. @@ -58,7 +58,7 @@
  22. void gam_node_set_is_dir (GamNode *node,
  23. gboolean is_dir);
  24. -G_CONST_RETURN char *gam_node_get_path (GamNode *node);
  25. +const char *gam_node_get_path (GamNode *node);
  26. GList *gam_node_get_subscriptions (GamNode *node);
  27. Index: gamin/server/gam_subscription.c
  28. ===================================================================
  29. --- gamin.orig/server/gam_subscription.c 2011-10-18 16:09:04.817780682 +0200
  30. +++ gamin/server/gam_subscription.c 2011-10-18 16:09:01.965780543 +0200
  31. @@ -141,7 +141,7 @@
  32. * @param sub the GamSubscription
  33. * @returns The path being monitored. It should not be freed.
  34. */
  35. -G_CONST_RETURN char *
  36. +const char *
  37. gam_subscription_get_path(GamSubscription * sub)
  38. {
  39. if (sub == NULL)
  40. Index: gamin/server/gam_subscription.h
  41. ===================================================================
  42. --- gamin.orig/server/gam_subscription.h 2011-10-18 16:09:04.929780687 +0200
  43. +++ gamin/server/gam_subscription.h 2011-10-18 16:09:01.965780543 +0200
  44. @@ -21,7 +21,7 @@
  45. int gam_subscription_get_reqno (GamSubscription *sub);
  46. -G_CONST_RETURN char *gam_subscription_get_path (GamSubscription *sub);
  47. +const char *gam_subscription_get_path (GamSubscription *sub);
  48. GamListener *gam_subscription_get_listener (GamSubscription *sub);