From 235f8ed2fb85270a1b9edddbff6a1c5b10f484b9 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 20 Apr 2020 16:35:09 -0700 Subject: [PATCH] add db_field_log::mask Allow filters to distingush DBE_PROPERTY --- modules/database/src/ioc/db/dbEvent.c | 1 + modules/database/src/ioc/db/db_field_log.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/modules/database/src/ioc/db/dbEvent.c b/modules/database/src/ioc/db/dbEvent.c index ee2190c0f..6de565236 100644 --- a/modules/database/src/ioc/db/dbEvent.c +++ b/modules/database/src/ioc/db/dbEvent.c @@ -714,6 +714,7 @@ db_field_log* db_create_event_log (struct evSubscrip *pevent) { db_field_log *pLog = db_create_field_log(pevent->chan, pevent->useValque); if (pLog) { + pLog->mask = pevent->select; pLog->ctx = dbfl_context_event; } return pLog; diff --git a/modules/database/src/ioc/db/db_field_log.h b/modules/database/src/ioc/db/db_field_log.h index e517d529f..f9b7cfbd4 100644 --- a/modules/database/src/ioc/db/db_field_log.h +++ b/modules/database/src/ioc/db/db_field_log.h @@ -109,6 +109,8 @@ typedef struct db_field_log { unsigned int type:1; /* type (union) selector */ /* ctx is used for all types */ unsigned int ctx:1; /* context (operation type) */ + /* only for dbfl_context_event */ + unsigned char mask; /* DBE_* mask */ /* the following are used for value and reference types */ epicsTimeStamp time; /* Time stamp */ unsigned short stat; /* Alarm Status */