From 7a388dad85152a203033c14fee3c64607301865a Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sat, 8 Jul 2023 15:06:33 -0300 Subject: libactivity: (tmp name) http request parse the parse works via callbacks, registered to a method and path. further work will be done to simplify extraction of path, and to make the request struct more private. missing the parsing and handling of reponses. Signed-off-by: Anna (navi) Figueiredo Gomes --- include/util.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/util.h (limited to 'include/util.h') diff --git a/include/util.h b/include/util.h new file mode 100644 index 0000000..c4856db --- /dev/null +++ b/include/util.h @@ -0,0 +1,12 @@ +#ifndef _UTIL_H_ +#define _UTIL_H_ + +#include +#include + +int vasprintf(char **dest, const char *fmt, va_list ap); +int asprintf(char **dest, const char *fmt, ...); + +size_t hash(const char *str, int max_val); + +#endif -- cgit v1.2.3