mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
Allow multiple object paths for each connection
This commit is contained in:
parent
bd121999ca
commit
4231061e4d
3 changed files with 27 additions and 2 deletions
|
|
@ -54,6 +54,17 @@ int sni_str_cmp(const void *item, const void *str);
|
|||
*/
|
||||
int sni_uniq_cmp(const void *item, const void *str);
|
||||
|
||||
|
||||
struct ObjName {
|
||||
const void *obj_path;
|
||||
const void *name;
|
||||
};
|
||||
/**
|
||||
* Returns 0 if `item` has a name of `obj_name->name` and object path of
|
||||
* `obj_name->obj_path`.
|
||||
*/
|
||||
int sni_obj_name_cmp(const void *item, const void *obj_name);
|
||||
|
||||
/**
|
||||
* Gets an icon for the given item if found.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue