diff options
Diffstat (limited to 'include/swaybar/tray')
-rw-r--r-- | include/swaybar/tray/sni.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/swaybar/tray/sni.h b/include/swaybar/tray/sni.h index c2544e2a..22991e53 100644 --- a/include/swaybar/tray/sni.h +++ b/include/swaybar/tray/sni.h | |||
@@ -9,6 +9,8 @@ struct StatusNotifierItem { | |||
9 | char *name; | 9 | char *name; |
10 | /* Unique bus name, needed for determining signal origins */ | 10 | /* Unique bus name, needed for determining signal origins */ |
11 | char *unique_name; | 11 | char *unique_name; |
12 | /* Object path, useful for items not registerd by well known name */ | ||
13 | char *object_path; | ||
12 | bool kde_special_snowflake; | 14 | bool kde_special_snowflake; |
13 | 15 | ||
14 | cairo_surface_t *image; | 16 | cairo_surface_t *image; |
@@ -31,6 +33,12 @@ void sni_icon_ref_free(struct sni_icon_ref *sni_ref); | |||
31 | * May return `NULL` if `name` is not valid. | 33 | * May return `NULL` if `name` is not valid. |
32 | */ | 34 | */ |
33 | struct StatusNotifierItem *sni_create(const char *name); | 35 | struct StatusNotifierItem *sni_create(const char *name); |
36 | /** | ||
37 | * Same as sni_create, but takes an object path and unique name instead of | ||
38 | * well-known name. | ||
39 | */ | ||
40 | struct StatusNotifierItem *sni_create_from_obj_path(const char *unique_name, | ||
41 | const char *object_path); | ||
34 | 42 | ||
35 | /** | 43 | /** |
36 | * `item` must be a struct StatusNotifierItem * | 44 | * `item` must be a struct StatusNotifierItem * |