diff options
author | 2017-10-25 12:49:34 -0600 | |
---|---|---|
committer | 2017-12-29 12:11:51 -0700 | |
commit | 4231061e4d80a19a6f2dde0bfb63b7a7b277bd4a (patch) | |
tree | ca5a21c04d5f30aeb156f5ef2541a2c667861652 /include/swaybar | |
parent | Allow paths to icons in iconName property (diff) | |
download | sway-4231061e4d80a19a6f2dde0bfb63b7a7b277bd4a.tar.gz sway-4231061e4d80a19a6f2dde0bfb63b7a7b277bd4a.tar.zst sway-4231061e4d80a19a6f2dde0bfb63b7a7b277bd4a.zip |
Allow multiple object paths for each connection
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/tray/sni.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/swaybar/tray/sni.h b/include/swaybar/tray/sni.h index 22991e53..95c10b9f 100644 --- a/include/swaybar/tray/sni.h +++ b/include/swaybar/tray/sni.h | |||
@@ -54,6 +54,17 @@ int sni_str_cmp(const void *item, const void *str); | |||
54 | */ | 54 | */ |
55 | int sni_uniq_cmp(const void *item, const void *str); | 55 | int sni_uniq_cmp(const void *item, const void *str); |
56 | 56 | ||
57 | |||
58 | struct ObjName { | ||
59 | const void *obj_path; | ||
60 | const void *name; | ||
61 | }; | ||
62 | /** | ||
63 | * Returns 0 if `item` has a name of `obj_name->name` and object path of | ||
64 | * `obj_name->obj_path`. | ||
65 | */ | ||
66 | int sni_obj_name_cmp(const void *item, const void *obj_name); | ||
67 | |||
57 | /** | 68 | /** |
58 | * Gets an icon for the given item if found. | 69 | * Gets an icon for the given item if found. |
59 | * | 70 | * |