FireBirdLib - Topfield TMS PVR TAP Programming Library
cronUnregisterEvent.c
Go to the documentation of this file.
1
#include "
FBLib_time.h
"
2
3
extern
int
cronItemCount
;
4
extern
TYPE_CRONTAB
cronTable
[
MAX_CRON_EVENTS
];
5
extern
bool
cronInit
;
6
7
bool
cronUnregisterEvent
(
int
Index)
8
{
9
TRACEENTER
();
10
11
bool
ret = FALSE;
12
13
if
(!
cronInit
)
cronUnregisterAllEvents
();
14
15
if
((
cronItemCount
> 0) && (Index >= 0) && (Index <
MAX_CRON_EVENTS
))
16
{
17
if
(
cronTable
[Index].active)
18
{
19
cronTable
[Index].
active
= FALSE;
20
cronItemCount
--;
21
ret = TRUE;
22
}
23
}
24
25
TRACEEXIT
();
26
return
ret;
27
}
FBLib_time.h
MAX_CRON_EVENTS
#define MAX_CRON_EVENTS
Definition:
FBLib_time.h:25
cronTable
TYPE_CRONTAB cronTable[MAX_CRON_EVENTS]
Definition:
cronEventHandler.c:4
cronInit
bool cronInit
Definition:
cronEventHandler.c:5
cronItemCount
int cronItemCount
Definition:
cronEventHandler.c:3
cronUnregisterEvent
bool cronUnregisterEvent(int Index)
Definition:
cronUnregisterEvent.c:7
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
cronUnregisterAllEvents
void cronUnregisterAllEvents(void)
Definition:
cronUnregisterAllEvents.c:7
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TYPE_CRONTAB
Definition:
FBLib_time.h:18
TYPE_CRONTAB::active
bool active
Definition:
FBLib_time.h:19
time
cronUnregisterEvent.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3