1 /*
2 			 SAR Mission File IO
3  */
4 
5 #ifndef MISSIONIO_H
6 #define MISSIONIO_H
7 
8 
9 #include <sys/types.h>
10 #include "menu.h"
11 #include "mission.h"
12 #include "sar.h"
13 
14 
15 extern char *SARMissionLoadDescription(const char *filename);
16 extern void SARMissionLoadSceneToMenuMap(
17 	sar_core_struct *core_ptr,
18 	sar_menu_struct *m,
19 	const char *filename            /* Mission file name. */
20 );
21 extern void SARMissionLoadMissionLogToMenuMap(
22 	sar_core_struct *core_ptr,
23 	sar_menu_struct *m,
24 	const char *filename            /* Mission log file name. */
25 );
26 
27 extern sar_mission_struct *SARMissionLoadFromFile(
28 	sar_core_struct *core_ptr,
29 	const char *filename,
30 	void *client_data,
31 	int (*progress_func)(void *, long, long)
32 );
33 
34 extern void SARMissionLogReset(
35 	sar_core_struct *core_ptr, sar_mission_struct *mission,
36 	const char *filename            /* Mission log file name. */
37 );
38 extern void SARMissionLogEvent(
39 	sar_core_struct *core_ptr, sar_mission_struct *mission,
40 	int event_type,                 /* One of SAR_LOG_EVENT_*. */
41 	float tod,			/* Time of day in seconds since midnight. */
42 	sar_position_struct *pos,	/* Position of event. */
43 	const float *value,		/* Additional values. */
44 	int total_values,               /* Total number of additional values. */
45 	const char *message,            /* The message. */
46 	const char *filename            /* Mission log file name. */
47 );
48 
49 
50 #endif	/* MISSIONIO_H */
51