aboutsummaryrefslogtreecommitdiff
path: root/src/pms_match.h
blob: 89dec53d68f4264c25494a9936a7ddd61afe06c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */