Lines Matching refs:name
50 static bool check_special_event(const char *name) in check_special_event() argument
52 assert(name); in check_special_event()
54 return strstarts(name, "@"); in check_special_event()
82 const char *name) in add_event() argument
89 name += strlen(watch->relative_path); in add_event()
90 if (*name == '/') /* Could be "" */ in add_event()
91 name++; in add_event()
94 len = strlen(name) + 1 + strlen(watch->token) + 1; in add_event()
102 strcpy(data, name); in add_event()
103 strcpy(data + strlen(name) + 1, watch->token); in add_event()
115 const char *name, struct node *node, in watch_permitted() argument
129 node = read_node(conn, ctx, name); in watch_permitted()
140 parent_name = get_parent(ctx, node->name); in watch_permitted()
160 void fire_watches(struct connection *conn, const void *ctx, const char *name, in fire_watches() argument
173 if (check_special_event(name)) { in fire_watches()
174 if (!check_perms_special(name, i)) in fire_watches()
177 if (!watch_permitted(i, ctx, name, node, perms)) in fire_watches()
183 if (streq(name, watch->node)) in fire_watches()
184 add_event(i, ctx, watch, name); in fire_watches()
186 if (is_child(name, watch->node)) in fire_watches()
187 add_event(i, ctx, watch, name); in fire_watches()