@ -18,6 +18,8 @@ basicEventHandler(),
basicThread ( )
{
m_pLog = basicLogCollection : : getInstance ( ) ;
// validate() compares it with the database copy: must start defined
memset ( & m_sYOLOFilterData , 0 , sizeof ( YOLO_FILTER_DATA ) ) ;
}
kernelEventFilterYOLO : : ~ kernelEventFilterYOLO ( )
@ -41,6 +43,8 @@ bool kernelEventFilterYOLO::validate()
return false ;
}
bool kernelEventFilterYOLO : : validateTarget ( uint32_t DevID , TARGET_DATA * ptr ) {
( void ) DevID ; // ToDo: YOLO filtering
( void ) ptr ;
return false ;
}
bool kernelEventFilterYOLO : : initFilter ( ) {
@ -50,5 +54,18 @@ bool kernelEventFilterYOLO::stopFilter(){
return false ;
}
bool kernelEventFilterYOLO : : dispatchEvent ( EVENT_CONTAINER * Evt ) {
( void ) Evt ; // ToDo: YOLO event handling
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 ) ;
} ;
}