summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/map.h
diff options
context:
space:
mode:
authorkrangelov <kr.angelov@gmail.com>2019-08-30 08:12:15 +0200
committerkrangelov <kr.angelov@gmail.com>2019-08-30 08:12:15 +0200
commit72cfc1f48a2cbae9e51102f78868cf6c1efa4550 (patch)
tree89754f34fd97531b7e6b9d9b738eb860cd7afc2d /src/runtime/c/gu/map.h
parent394d033d194df8c63eea7a0eca444168ae74844e (diff)
a more reasonable API to iterate over a map
Diffstat (limited to 'src/runtime/c/gu/map.h')
-rw-r--r--src/runtime/c/gu/map.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/runtime/c/gu/map.h b/src/runtime/c/gu/map.h
index aaea06a08..b0fc17303 100644
--- a/src/runtime/c/gu/map.h
+++ b/src/runtime/c/gu/map.h
@@ -74,13 +74,8 @@ gu_map_delete(GuMap* ht, const void* key);
GU_API_DECL void
gu_map_iter(GuMap* ht, GuMapItor* itor, GuExn* err);
-typedef struct {
- const void* key;
- void* value;
-} GuMapKeyValue;
-
-GU_API_DECL GuEnum*
-gu_map_enum(GuMap* ht, GuPool* pool);
+GU_API bool
+gu_map_next(GuMap* ht, size_t i, const void** pkey, void** pvalue);
typedef GuMap GuIntMap;