summaryrefslogtreecommitdiffstats
path: root/debian/vendor-h2o/deps/klib/knhx.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 21:12:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 21:12:02 +0000
commit77e50caaf2ef81cd91075cf836fed0e75718ffb4 (patch)
tree53b7b411290b63192fc9e924a3b6b65cdf67e9d0 /debian/vendor-h2o/deps/klib/knhx.h
parentAdding upstream version 1.8.3. (diff)
downloaddnsdist-77e50caaf2ef81cd91075cf836fed0e75718ffb4.tar.xz
dnsdist-77e50caaf2ef81cd91075cf836fed0e75718ffb4.zip
Adding debian version 1.8.3-2.debian/1.8.3-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/vendor-h2o/deps/klib/knhx.h')
-rw-r--r--debian/vendor-h2o/deps/klib/knhx.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/debian/vendor-h2o/deps/klib/knhx.h b/debian/vendor-h2o/deps/klib/knhx.h
new file mode 100644
index 0000000..dbad7dd
--- /dev/null
+++ b/debian/vendor-h2o/deps/klib/knhx.h
@@ -0,0 +1,35 @@
+#ifndef KNHX_H_
+#define KNHX_H_
+
+#define KNERR_MISSING_LEFT 0x01
+#define KNERR_MISSING_RGHT 0x02
+#define KNERR_BRACKET 0x04
+#define KNERR_COLON 0x08
+
+typedef struct {
+ int parent, n;
+ int *child;
+ char *name;
+ double d;
+} knhx1_t;
+
+#ifndef KSTRING_T
+#define KSTRING_T kstring_t
+typedef struct __kstring_t {
+ size_t l, m;
+ char *s;
+} kstring_t;
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ knhx1_t *kn_parse(const char *nhx, int *_n, int *_error);
+ void kn_format(const knhx1_t *node, int root, kstring_t *s);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif