File: missionio.h

package info (click to toggle)
searchandrescue 0.8.2-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,656 kB
  • ctags: 6,111
  • sloc: ansic: 89,072; cpp: 7,691; sh: 90; makefile: 80
file content (50 lines) | stat: -rw-r--r-- 1,381 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
			 SAR Mission File IO
 */

#ifndef MISSIONIO_H
#define MISSIONIO_H


#include <sys/types.h>
#include "menu.h"
#include "mission.h"
#include "sar.h"


extern char *SARMissionLoadDescription(const char *filename);
extern void SARMissionLoadSceneToMenuMap(
	sar_core_struct *core_ptr,
	sar_menu_struct *m,
	const char *filename            /* Mission file name. */
);
extern void SARMissionLoadMissionLogToMenuMap(
	sar_core_struct *core_ptr,
	sar_menu_struct *m,
	const char *filename            /* Mission log file name. */
);

extern sar_mission_struct *SARMissionLoadFromFile(
	sar_core_struct *core_ptr,
	const char *filename,
	void *client_data,
	int (*progress_func)(void *, long, long)
);

extern void SARMissionLogReset(
	sar_core_struct *core_ptr, sar_mission_struct *mission,
	const char *filename            /* Mission log file name. */
);
extern void SARMissionLogEvent(
	sar_core_struct *core_ptr, sar_mission_struct *mission,
	int event_type,                 /* One of SAR_LOG_EVENT_*. */
	float tod,			/* Time of day in seconds since midnight. */
	sar_position_struct *pos,	/* Position of event. */
	const float *value,		/* Additional values. */
	int total_values,               /* Total number of additional values. */
	const char *message,            /* The message. */
	const char *filename            /* Mission log file name. */
);


#endif	/* MISSIONIO_H */