Teonet library
0.4.7
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
text-filter.h
Go to the documentation of this file.
1
10
#ifndef TEXT_FILTER_H
11
#define TEXT_FILTER_H
12
13
14
/*
15
* This function applies logic expression "match" to string "log"
16
* and return 1 on success and 0 on failed.
17
*
18
* For example:
19
* log = "[2021-04-07 11:49:18:442] DEBUG_VV net_core: ksnCoreSendto:(net_core.c:250): send 17 bytes data";
20
* match = "(net_core|net_crypt)&(!tr_udp)";
21
* result of log_string_match = 1
22
*
23
* log = "MESSAGE tcp_server: ksnTcpServerStop:(modules/net_tcp.c:246): server fd 8 was stopped";
24
* match = "(net_core|net_crypt)&(!tr_udp)";
25
* result of log_string_match = 0
26
*/
27
28
29
int
log_string_match
(
char
*log,
char
*match);
30
31
#endif
log_string_match
int log_string_match(char *log, char *match)
Definition:
grammar-filter.c:1615
src
text-filter
text-filter.h
Generated on Tue Apr 13 2021 12:51:55 for Teonet library by
1.8.6