MP-Gadget  5.0.1.dev1-76bc7d4726-dirty
hci.h
Go to the documentation of this file.
1 #ifndef _HCI_H
2 #define _HCI_H
3 
4 typedef struct HCIManager {
5  /* private: */
6  char * prefix;
7  int FOFEnabled;
13  double timer_begin;
14 
15  /* for debugging: */
17  double _now;
19 
22  HCI_STOP = 1,
27  HCI_IOCTL = 6,
28 };
29 
30 typedef struct HCIAction
31 {
32  enum HCIActionType type;
34  int write_fof;
36 
37 void
38 hci_init(HCIManager * manager, char * prefix, double TimeLimitCPU, double AutoCheckPointTime, int FOFEnabled);
39 
40 void
41 hci_action_init(HCIAction * action);
42 
43 int
45 
46 void
47 hci_override_now(HCIManager * manager, double now);
48 
49 #endif
struct HCIManager HCIManager
void hci_init(HCIManager *manager, char *prefix, double TimeLimitCPU, double AutoCheckPointTime, int FOFEnabled)
Definition: hci.c:25
struct HCIAction HCIAction
HCIActionType
Definition: hci.h:20
@ HCI_TERMINATE
Definition: hci.h:26
@ HCI_AUTO_CHECKPOINT
Definition: hci.h:24
@ HCI_IOCTL
Definition: hci.h:27
@ HCI_CHECKPOINT
Definition: hci.h:25
@ HCI_TIMEOUT
Definition: hci.h:23
@ HCI_NO_ACTION
Definition: hci.h:21
@ HCI_STOP
Definition: hci.h:22
int hci_query(HCIManager *manager, HCIAction *action)
Definition: hci.c:152
void hci_override_now(HCIManager *manager, double now)
Definition: hci.c:48
void hci_action_init(HCIAction *action)
Definition: hci.c:38
Definition: hci.h:31
enum HCIActionType type
Definition: hci.h:32
int write_snapshot
Definition: hci.h:33
int write_fof
Definition: hci.h:34
Definition: hci.h:4
double timer_query_begin
Definition: hci.h:12
char * prefix
Definition: hci.h:6
double timer_begin
Definition: hci.h:13
double AutoCheckPointTime
Definition: hci.h:9
double WallClockTimeLimit
Definition: hci.h:11
double TimeLastCheckPoint
Definition: hci.h:8
double LongestTimeBetweenQueries
Definition: hci.h:10
double _now
Definition: hci.h:17
int FOFEnabled
Definition: hci.h:7
int OVERRIDE_NOW
Definition: hci.h:16
char prefix[1024]
Definition: test_hci.c:13
HCIManager manager[1]
Definition: test_hci.c:37