|
|
@ -18,6 +18,8 @@ basicEventHandler(), |
|
|
basicThread() |
|
|
basicThread() |
|
|
{ |
|
|
{ |
|
|
m_pLog = basicLogCollection::getInstance(); |
|
|
m_pLog = basicLogCollection::getInstance(); |
|
|
|
|
|
// validate() compares it with the database copy: must start defined
|
|
|
|
|
|
memset(&m_sYOLOFilterData, 0, sizeof(YOLO_FILTER_DATA)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
kernelEventFilterYOLO::~kernelEventFilterYOLO() |
|
|
kernelEventFilterYOLO::~kernelEventFilterYOLO() |
|
|
@ -41,6 +43,8 @@ bool kernelEventFilterYOLO::validate() |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
bool kernelEventFilterYOLO::validateTarget(uint32_t DevID, TARGET_DATA * ptr){ |
|
|
bool kernelEventFilterYOLO::validateTarget(uint32_t DevID, TARGET_DATA * ptr){ |
|
|
|
|
|
(void) DevID; // ToDo: YOLO filtering
|
|
|
|
|
|
(void) ptr; |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
bool kernelEventFilterYOLO::initFilter(){ |
|
|
bool kernelEventFilterYOLO::initFilter(){ |
|
|
@ -50,5 +54,18 @@ bool kernelEventFilterYOLO::stopFilter(){ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
bool kernelEventFilterYOLO::dispatchEvent(EVENT_CONTAINER * Evt){ |
|
|
bool kernelEventFilterYOLO::dispatchEvent(EVENT_CONTAINER * Evt){ |
|
|
|
|
|
(void) Evt; // ToDo: YOLO event handling
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Worker thread (declared in the header but not defined: "undefined reference to vtable for
|
|
|
|
|
|
// kernelEventFilterYOLO" at link time). Placeholder loop until the YOLO processing is added.
|
|
|
|
|
|
void kernelEventFilterYOLO::m_fThreadProc(void) |
|
|
|
|
|
{ |
|
|
|
|
|
m_bThreadStatus = TH_WORKING; |
|
|
|
|
|
pthread_setname_np(pthread_self(), "filterYOLO"); |
|
|
|
|
|
while (m_bThreadStatus < TH_ENDED) |
|
|
|
|
|
{ |
|
|
|
|
|
SLEEP(DEFAULT_THREAD_SLEEP_TIME); |
|
|
|
|
|
}; |
|
|
|
|
|
} |