Allow multiple object paths for each connection

This commit is contained in:
Calvin Lee 2017-10-25 12:49:34 -06:00
parent bd121999ca
commit 4231061e4d
3 changed files with 27 additions and 2 deletions

View file

@ -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.
*