19 #include "db_field_log.h" 20 #include "chfPlugin.h" 27 static void *myStructFreeList;
30 chfPluginArgDef opts[] = {
35 static void * allocPvt(
void)
41 static void freePvt(
void *pvt)
46 static int parse_ok(
void *pvt)
56 static db_field_log* filter(
void* pvt, dbChannel *chan, db_field_log *pfl) {
57 db_field_log *passfl =
NULL;
61 if (pfl->ctx == dbfl_context_read)
67 db_delete_field_log(pfl);
76 static void channelRegisterPre(dbChannel *chan,
void *pvt,
77 chPostEventFunc **cb_out,
void **arg_out, db_field_log *probe)
83 static void channel_report(dbChannel *chan,
void *pvt,
int level,
const unsigned short indent)
86 printf(
"%*sDecimate (dec): n=%d, i=%d\n", indent,
"",
90 static chfPluginIf pif = {
104 static void decInitialize(
void)
106 static int firstTime = 1;
108 if (!firstTime)
return;
111 if (!myStructFreeList)
114 chfPluginRegister(
"dec", &pif, opts);
LIBCOM_API void *epicsStdCall freeListCalloc(void *pvt)
LIBCOM_API void epicsStdCall freeListInitPvt(void **ppvt, int size, int nmalloc)
epicsExportRegistrar(decInitialize)
LIBCOM_API void epicsStdCall freeListFree(void *pvt, void *pmem)