summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
Diffstat (limited to 'term.h')
-rw-r--r--term.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/term.h b/term.h
index 622c355a..59eef170 100644
--- a/term.h
+++ b/term.h
@@ -40,11 +40,27 @@ struct termp {
char *buf;
};
+struct termpair {
+ int type;
+#define TERMPAIR_FLAG (1 << 0)
+ union {
+ int flag;
+ } data;
+};
+
+#define TERMPAIR_SETFLAG(p, fl) \
+ do { \
+ (p)->data.flag = (fl); \
+ (p)->type = TERMPAIR_FLAG; \
+ } while (0)
+
struct termact {
int (*pre)(struct termp *,
+ struct termpair *,
const struct mdoc_meta *,
const struct mdoc_node *);
void (*post)(struct termp *,
+ struct termpair *,
const struct mdoc_meta *,
const struct mdoc_node *);
};