X-Git-Url: https://www.flypig.org.uk/git/?p=libcontrac.git;a=blobdiff_plain;f=include%2Fcontrac%2Fmatch.h;fp=include%2Fcontrac%2Fmatch.h;h=fe38c746d4f060f5e874ee022a77459f75a2089c;hp=0000000000000000000000000000000000000000;hb=8515bbba069347de07a452586d7e49a2e8bdf151;hpb=79942abab927241b65a29a8a30d71b8efe6b6d94 diff --git a/include/contrac/match.h b/include/contrac/match.h new file mode 100644 index 0000000..fe38c74 --- /dev/null +++ b/include/contrac/match.h @@ -0,0 +1,52 @@ +/** \ingroup contrac + * @file + * @author David Llewellyn-Jones + * @version $(VERSION) + * + * @section LICENSE + * + * + * + * @brief + * @section DESCRIPTION + * + * + * + */ + +#ifndef __MATCH_H +#define __MATCH_H + +// Includes + +#include "contrac/contrac.h" +#include "contrac/dtk.h" + +// Defines + +// Structures + +typedef struct _MatchList MatchList; +typedef struct _MatchListItem MatchListItem; + +// Function prototypes + +MatchList * match_list_new(); +void match_list_delete(MatchList * data); + +void match_list_clear(MatchList * data); +size_t match_list_count(MatchList * data); + +uint32_t match_list_get_day_number(MatchListItem const * data); +uint8_t match_list_get_time_interval_number(MatchListItem const * data); + +MatchListItem const * match_list_first(MatchList const * data); +MatchListItem const * match_list_next(MatchListItem const * data); + +void match_list_find_matches(MatchList * data, RpiList * beacons, DtkList * diagnosis_keys); + +// Function definitions + +#endif // __MATCH_H + +