MCPcopy Create free account
hub / github.com/corosync/corosync / stats_add_entry

Function stats_add_entry

exec/stats.c:257–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257static void stats_add_entry(const char *key, struct cs_stats_conv *cs_conv)
258{
259 struct stats_item *item = malloc(sizeof(struct stats_item));
260
261 if (item) {
262 item->cs_conv = cs_conv;
263 item->key_name = strdup(key);
264 qb_map_put(stats_map, item->key_name, item);
265 }
266}
267static void stats_rm_entry(const char *key)
268{
269 struct stats_item *item = qb_map_get(stats_map, key);

Callers 5

stats_map_initFunction · 0.85
stats_knet_add_memberFunction · 0.85
stats_knet_add_handleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected