summaryrefslogtreecommitdiff
path: root/libnotify/internal.h
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-05-11 22:05:10 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-06-07 03:18:38 +0200
commite8ea0c39d04b6c127bbb4b1317f13e972850db72 (patch)
tree25fbffbeb1ac6719a46eba4355056ccbfcc278e2 /libnotify/internal.h
parent74f87250a38e92f0f9db7610f3e316a86016b6e2 (diff)
downloadlibnotify-e8ea0c39d04b6c127bbb4b1317f13e972850db72.tar.gz
notify: Use lazy snap readings and once per notify instance
An application under snap confinement won't have a way of escaping from it, so we can just initialize the snap variables at the global notify scope once and just re-use them when needed.
Diffstat (limited to 'libnotify/internal.h')
-rw-r--r--libnotify/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libnotify/internal.h b/libnotify/internal.h
index 741d002..35683d6 100644
--- a/libnotify/internal.h
+++ b/libnotify/internal.h
@@ -36,6 +36,10 @@ gint _notify_notification_get_timeout (const NotifyNotific
gboolean _notify_notification_has_nondefault_actions (const NotifyNotification *n);
gboolean _notify_check_spec_version (int major, int minor);
+const char * _notify_get_snap_name (void);
+const char * _notify_get_snap_path (void);
+const char * _notify_get_snap_app (void);
+
G_END_DECLS
#endif /* _LIBNOTIFY_INTERNAL_H_ */