FireBirdLib - Topfield TMS PVR TAP Programming Library
cronGetEvent.c
Go to the documentation of this file.
1
#include "
FBLib_time.h
"
2
3
extern
TYPE_CRONTAB
cronTable
[
MAX_CRON_EVENTS
];
4
extern
bool
cronInit
;
5
6
bool
cronGetEvent
(
int
Index,
int
*frequency, dword *nextExecution)
7
{
8
TRACEENTER
();
9
10
if
(!
cronInit
)
cronUnregisterAllEvents
();
11
12
if
((Index < 0) || (Index >=
MAX_CRON_EVENTS
) || !
cronTable
[Index].active)
13
{
14
TRACEEXIT
();
15
return
FALSE;
16
}
17
18
if
(frequency) *frequency =
cronTable
[Index].
frequency
;
19
if
(nextExecution) *nextExecution =
cronTable
[Index].
nextExecution
;
20
21
TRACEEXIT
();
22
return
TRUE;
23
}
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
cronGetEvent
bool cronGetEvent(int Index, int *frequency, dword *nextExecution)
Definition:
cronGetEvent.c:6
cronInit
bool cronInit
Definition:
cronEventHandler.c:5
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::frequency
int frequency
Definition:
FBLib_time.h:22
TYPE_CRONTAB::nextExecution
dword nextExecution
Definition:
FBLib_time.h:20
time
cronGetEvent.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3