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

Function icmap_iter_next

exec/icmap.c:1099–1118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1097
1098
1099const char *icmap_iter_next(icmap_iter_t iter, size_t *value_len, icmap_value_types_t *type)
1100{
1101 struct icmap_item *item;
1102 const char *res;
1103
1104 res = qb_map_iter_next(iter, (void **)&item);
1105 if (res == NULL) {
1106 return (res);
1107 }
1108
1109 if (value_len != NULL) {
1110 *value_len = item->value_len;
1111 }
1112
1113 if (type != NULL) {
1114 *type = item->type;
1115 }
1116
1117 return (res);
1118}
1119
1120void icmap_iter_finalize(icmap_iter_t iter)
1121{

Calls

no outgoing calls

Tested by

no test coverage detected