]> git.mxchange.org Git - flightgear.git/blob - Time/event.h
b8853c61aad8f1ff326bd9cf3a5594f1b68674ed
[flightgear.git] / Time / event.h
1 /**************************************************************************
2  * event.h -- Flight Gear periodic event scheduler
3  *
4  * Written by Curtis Olson, started December 1997.
5  *
6  * Copyright (C) 1997  Curtis L. Olson  - curt@infoplane.com
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of the
11  * License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  *
22  * $Id$
23  * (Log is kept at end of this file)
24  **************************************************************************/
25
26
27 #define FG_EVENT_SUSP 0
28 #define FG_EVENT_READY 1
29 #define FG_EVENT_QUEUED 2
30
31
32 /* Initialize the scheduling subsystem */
33 void fgEventInit();
34
35 /* Register an event with the scheduler, returns a pointer into the
36  * event table */
37 int fgEventRegister(char *desc, void (*event)(), int status, int interval);
38
39 /* Update the scheduling parameters for an event */
40 void fgEventUpdate();
41
42 /* Delete a scheduled event */
43 void fgEventDelete();
44
45 /* Temporarily suspend scheduling of an event */
46 void fgEventSuspend();
47
48 /* Resume scheduling and event */
49 void fgEventResume();
50
51 /* Dump scheduling stats */
52 void fgEventPrintStats();
53
54 /* Add pending jobs to the run queue and run the job at the front of
55  * the queue */
56 void fgEventProcess();
57
58
59 /* $Log$
60 /* Revision 1.1  1997/12/30 04:19:22  curt
61 /* Initial revision.
62 /*
63  */