mirror of
https://github.com/djhackersdev/saltytools.git
synced 2026-03-21 17:54:11 -05:00
feat(573file): add prop_search_child_const
This commit is contained in:
parent
7951951106
commit
fe99fce9a3
|
|
@ -300,6 +300,11 @@ const char *prop_get_value_str(const struct prop *p) {
|
|||
}
|
||||
|
||||
struct prop *prop_search_child(struct prop *p, const char *name) {
|
||||
return (struct prop *)prop_search_child_const(p, name);
|
||||
}
|
||||
|
||||
const struct prop *prop_search_child_const(const struct prop *p,
|
||||
const char *name) {
|
||||
struct list_node *pos;
|
||||
struct prop *child;
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@ struct prop *prop_get_parent(struct prop *p);
|
|||
enum prop_type prop_get_type(const struct prop *p);
|
||||
const char *prop_get_value_str(const struct prop *p);
|
||||
struct prop *prop_search_child(struct prop *p, const char *name);
|
||||
const struct prop *prop_search_child_const(const struct prop *p,
|
||||
const char *name);
|
||||
int prop_set_attr(struct prop *p, const char *key, const char *val);
|
||||
|
||||
const struct attr *attr_get_next_sibling(const struct attr *a);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user