Lines Matching refs:stats_event
18 struct stats_event {
19 struct stats_event *prev, *next;
29 struct stats_event *events;
30 HASH_TABLE(struct stats_event *, struct stats_event *) events_hash;
45 static unsigned int stats_event_hash(const struct stats_event *event)
50 static int stats_event_cmp(const struct stats_event *event1,
51 const struct stats_event *event2)
73 struct stats_event *event, *next;
88 static struct stats_event *
91 struct stats_event lookup_event = { .id = event_id };
105 struct stats_event *stats_parent_event =
146 struct stats_event *stats_event;
162 stats_event = i_new(struct stats_event, 1);
163 stats_event->id = event_id;
164 stats_event->event = event;
165 DLLIST_PREPEND(&client->events, stats_event);
166 hash_table_insert(client->events_hash, stats_event, stats_event);
174 struct stats_event *stats_event;
181 stats_event = writer_client_find_event(client, event_id);
182 if (stats_event == NULL) {
187 DLLIST_REMOVE(&client->events, stats_event);
188 hash_table_remove(client->events_hash, stats_event);
189 event_unref(&stats_event->event);
190 i_free(stats_event);