add hook to implement ptql re when not compiled with pcre
This commit is contained in:
1 parent
537863b3c3
commit
b615e4b90c
3 files changed
+35
-1
No files matched your search
@@ -24,6 +24,7 @@
|
||||
#endif
|
||||
|
||||
#include "sigar_log.h"
|
||||
#include "sigar_ptql.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -54,6 +55,8 @@
|
||||
int log_level; \
|
||||
void *log_data; \
|
||||
sigar_log_impl_t log_impl; \
|
||||
void *ptql_re_data; \
|
||||
sigar_ptql_re_impl_t ptql_re_impl; \
|
||||
unsigned int ncpu; \
|
||||
unsigned long version; \
|
||||
unsigned long boot_time; \
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
|
||||
typedef struct sigar_ptql_query_t sigar_ptql_query_t;
|
||||
|
||||
typedef int (*sigar_ptql_re_impl_t)(void *, char *, char *);
|
||||
|
||||
SIGAR_DECLARE(void) sigar_ptql_re_impl_set(sigar_t *sigar, void *data,
|
||||
sigar_ptql_re_impl_t impl);
|
||||
|
||||
SIGAR_DECLARE(int) sigar_ptql_query_create(sigar_ptql_query_t **query,
|
||||
char *ptql);
|
||||
|
||||
|
||||
Reference in new issue
Block a user