diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-05-11 22:05:10 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-06-07 03:18:38 +0200 |
commit | e8ea0c39d04b6c127bbb4b1317f13e972850db72 (patch) | |
tree | 25fbffbeb1ac6719a46eba4355056ccbfcc278e2 /libnotify/internal.h | |
parent | 74f87250a38e92f0f9db7610f3e316a86016b6e2 (diff) | |
download | libnotify-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.h | 4 |
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_ */ |