X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttv%2Flttv%2Fiattribute.c;h=fe50fb63a3617b6b5b3fa48a98b5a8f0660c4042;hb=9a9ca632e32af79f5f77894ef6e981ac0138102a;hp=0271dddb65d3836e10932c31539e1bc5a6a398b6;hpb=f6691532b67cb6911749118e3da8d74de876380c;p=lttv.git diff --git a/lttv/lttv/iattribute.c b/lttv/lttv/iattribute.c index 0271dddb..fe50fb63 100644 --- a/lttv/lttv/iattribute.c +++ b/lttv/lttv/iattribute.c @@ -146,7 +146,7 @@ gboolean lttv_iattribute_find(LttvIAttribute *self, LttvAttributeName name, /* Trees of attribute tables may be accessed using a hierarchical path with components separated by /, like in filesystems */ -gboolean lttv_iattribute_find_by_path(LttvIAttribute *self, char *path, +gboolean lttv_iattribute_find_by_path(LttvIAttribute *self, const char *path, LttvAttributeType t, LttvAttributeValue *v) { LttvIAttribute *node = self; @@ -177,7 +177,7 @@ gboolean lttv_iattribute_find_by_path(LttvIAttribute *self, char *path, if(found_type == LTTV_NONE) { node = lttv_iattribute_find_subdir(node, name); } - else if(found_type == LTTV_GOBJECT && + else if(found_type == LTTV_GOBJECT && LTTV_IS_IATTRIBUTE(*(v->v_gobject))) { node = LTTV_IATTRIBUTE(*(v->v_gobject)); }