Skip to content

Commit cb58881

Browse files
committed
update libk2v3
1 parent b2a629f commit cb58881

4 files changed

Lines changed: 117 additions & 108 deletions

File tree

v3/include/k2v3.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
enum K2V3_TYPE {
6161
K2V3_SCALAR,
6262
K2V3_ARRAY,
63+
K2V3_ANY,
6364
};
6465
struct K2V3_BUF {
6566
enum K2V3_TYPE type;
@@ -118,8 +119,8 @@ extern thread_local jmp_buf k2v3_jmp;
118119
#endif
119120
k2v3_cache k2v3_parse(char *const _Nonnull buf);
120121
void k2v3_free_cache(k2v3_cache *cache);
121-
char *k2v3_open_file(char *const _Nonnull path);
122-
int k2v3_have_key(k2v3_cache cache, char *const _Nonnull key, enum K2V3_TYPE type);
122+
char *k2v3_open_file(const char *_Nonnull path, off_t limit);
123+
int k2v3_have_key(k2v3_cache cache, const char *_Nonnull key, enum K2V3_TYPE type);
123124
char *k2v3_get_char(const char *_Nonnull key, k2v3_cache cache);
124125
int k2v3_get_int(const char *_Nonnull key, k2v3_cache cache);
125126
float k2v3_get_float(const char *_Nonnull key, k2v3_cache cache);

0 commit comments

Comments
 (0)