2012-01-29 17:39:56 +00:00
|
|
|
#ifndef _PAYSAGES_MAIN_H_
|
|
|
|
#define _PAYSAGES_MAIN_H_
|
|
|
|
|
2012-04-28 13:36:37 +00:00
|
|
|
#define PAYSAGES_CURRENT_DATA_VERSION 1
|
|
|
|
|
2012-01-29 17:39:56 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-04-28 13:36:37 +00:00
|
|
|
typedef enum {
|
|
|
|
FILE_OPERATION_OK,
|
|
|
|
FILE_OPERATION_IOERROR,
|
|
|
|
FILE_OPERATION_APP_MISMATCH,
|
|
|
|
FILE_OPERATION_VERSION_MISMATCH
|
|
|
|
} FileOperationResult;
|
|
|
|
|
|
|
|
void paysagesInit();
|
|
|
|
void paysagesQuit();
|
|
|
|
FileOperationResult paysagesSave(char* filepath);
|
|
|
|
FileOperationResult paysagesLoad(char* filepath);
|
2012-01-29 17:39:56 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|