From 44d29a33df81ac07163d5146a9e43a0c4fb80af0 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 13 Sep 2020 22:06:40 -0400 Subject: new shell --- src/user/highway/vars.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/user/highway/vars.h (limited to 'src/user/highway/vars.h') diff --git a/src/user/highway/vars.h b/src/user/highway/vars.h new file mode 100644 index 0000000..fc4d197 --- /dev/null +++ b/src/user/highway/vars.h @@ -0,0 +1,17 @@ +#ifndef VARS_H +#define VARS_H + +#include + +struct no_null_sn { + const char *data; + uint32_t length; +}; + +void set_var(struct no_null_sn name, struct no_null_sn value); +const struct no_null_sn *get_var(struct no_null_sn name) __attribute__ ((pure)); +void del_var(struct no_null_sn name); + +void dump_vars(); + +#endif \ No newline at end of file -- cgit v1.2.3