-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEventProcessing.h
More file actions
36 lines (29 loc) · 1.5 KB
/
EventProcessing.h
File metadata and controls
36 lines (29 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
*/
#ifndef EVENTPROCESSING_H
#define EVENTPROCESSING_H
#include <stdint.h>
#include "entry.h"
typedef struct ProcessingRule_t {
uint32_t MatchType;
const char *MatchString;
uint32_t Result;
uint64_t ResultArg;
} ProcessingRule_t;
#define INKYR_MATCH_END 0 //Signifies the end of processing rules
#define INKYR_MATCH_CONTAINS 1 //If MatchString is (using case insensitive compare) in event summary, description, location
#define INKYR_MATCH_DOES_NOT_CONTAIN 2 //If MatchString is (using case insensitive compare) in event summary, description, location
#define INKYR_MATCH_SUMMARY_EQUALS_STRIP 3 //If MatchString is (using case insensitive compare) equal (aside from leading trailing whitespace) to event summary
#define INKYR_RESULT_NOOP 0
#define INKYR_RESULT_DISCARD 1
#define INKYR_RESULT_SETCOLOUR 2
#define INKYR_RESULT_SETCOLOR INKYR_RESULT_SETCOLOUR
#define INKYR_RESULT_SETSORTTIE 3
uint32_t runEventMatchRules(const ProcessingRule_t *pEventRules, entry_t *entryptr,
const char *entrydesc, size_t descLen,
const char *recurRule);
#endif