diff options
author | bpc2003 <wpesfriendnva@gmail.com> | 2025-03-09 20:45:30 -0400 |
---|---|---|
committer | bpc2003 <wpesfriendnva@gmail.com> | 2025-03-09 20:45:30 -0400 |
commit | 7caa00ef467acdb7b874d4283b3bc58730bf803d (patch) | |
tree | c3e2542fca0d8a12f776847b70522a10091fef70 /src/include | |
parent | 58a32dad0be010556b39f8ce4b55aa012c2762d0 (diff) |
Added keytablist struct
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/keytab.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/include/keytab.h b/src/include/keytab.h index f3b8910..40db10f 100644 --- a/src/include/keytab.h +++ b/src/include/keytab.h @@ -15,9 +15,14 @@ struct keytab { union value v; }; -int *getkeys(struct keytab *tab); -struct keytab getkey(struct keytab *tab, char *key); -void setkey(struct keytab *tab, char *pair); -void delkey(struct keytab *tab, char *key); +struct keytablist { + struct keytab tab[TABLEN]; +}; + +int *getkeys(struct keytablist *list, int id); +struct keytab getkey(struct keytablist *list, int id, char *key); +// TODO: rewrite setkey to take len as an argument +void setkey(struct keytablist *list, int id, char *pair); +void delkey(struct keytablist *list, int id, char *key); #endif |