summaryrefslogtreecommitdiff
path: root/keyword.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyword.h')
-rw-r--r--keyword.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/keyword.h b/keyword.h
index 64183aa..a45854b 100644
--- a/keyword.h
+++ b/keyword.h
@@ -4,6 +4,7 @@
#include <time.h>
typedef enum keyword_type keyword_type;
+typedef struct delimiter delimiter;
typedef struct keyword keyword;
typedef union keyword_val keyword_val;
typedef int (set_keyword_cb)(void *ctx, void *ret, const keyword *key, keyword_val val);
@@ -20,6 +21,12 @@ enum keyword_type {
TYPE_COUNT,
};
+struct delimiter {
+ char *delm; /* Delimiter. */
+ int lead_space; /* Leading whitespace. */
+ int trail_space; /* Trailing whitespace. */
+};
+
struct keyword {
const char *key; /* Keyword. */
const char *desc; /* Description of the keyword. */