aboutsummaryrefslogtreecommitdiff
path: root/src/pms_match.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pms_match.h')
-rw-r--r--src/pms_match.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/pms_match.h b/src/pms_match.h
new file mode 100644
index 0000000..89dec53
--- /dev/null
+++ b/src/pms_match.h
@@ -0,0 +1,20 @@
+#ifndef PMS_MATCH_H
+#define PMS_MATCH_H
+
+#include "pms_config.h"
+#include "pms_ref.h"
+
+typedef struct {
+ int start;
+ int end;
+} pms_range;
+
+typedef struct {
+ int current;
+ int next_match;
+ pms_range matches[2];
+} pms_match_data;
+
+int pms_next_verse(const pms_ref *ref, const pms_config *config, pms_match_data *data);
+
+#endif /* PMS_MATCH_H */