summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorliuwentan <[email protected]>2023-05-09 17:45:43 +0800
committerliuwentan <[email protected]>2023-05-09 17:45:43 +0800
commite97adb8b976cd9d8a773b5afd047e059ee7c184e (patch)
tree9a6913c3b27b54fdb0516ec9d07bd439fadfb092 /include
parent4540321998168cfb73327e670b8f35bf8d40cddc (diff)
[feature]verify regex expressionv4.0.16
Diffstat (limited to 'include')
-rw-r--r--include/maat.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/maat.h b/include/maat.h
index e689b1b..3182f54 100644
--- a/include/maat.h
+++ b/include/maat.h
@@ -123,6 +123,13 @@ void maat_free(struct maat *instance);
/* maat helper API */
int maat_helper_read_column(const char *table_line, int Nth_column,
size_t *column_offset, size_t *column_len);
+/**
+ * verify if regex expression is legal
+ *
+ * @param The NULL-terminated expression to parse.
+ * @retval 0(legal) -1(illegal)
+ **/
+int maat_helper_verify_regex_expression(const char *expression);
/* maat table API */
int maat_get_table_id(struct maat *instance, const char *table_name);