Typedef chPostEventFunc

Typedef Documentation

db_field_log *() chPostEventFunc (void *pvt, dbChannel *chan, db_field_log *pLog)

Event filter function type.

Prototype for channel event filter functions.

When these functions are called the scan lock for the record associated with chan may already be locked, but they must use dbfl_has_copy() to determine whether the data in pLog belongs to the record. If that returns 0 the function must call dbScanLock() before accessing the data.

A filter function owns the field log pLog when called. To discard an update it should free the field log using db_delete_field_log() and return NULL.