Initial commit interface for python wrap

This commit is contained in:
Michael Tryby
2018-11-30 15:49:28 -05:00
parent 9ed3462dbf
commit b63f232884
6 changed files with 190 additions and 3 deletions

33
include/epanet_py.h Normal file
View File

@@ -0,0 +1,33 @@
#ifndef EPANET_PY_H
#define EPANET_PY_H
#include "epanet2_export.h"
#include "epanet2_enums.h"
#if defined(__cplusplus)
extern "C" {
#endif
// Opaque pointer to project
typedef void *Handle;
int DLLEXPORT create_project(Handle *ph);
int DLLEXPORT delete_project(Handle *ph);
int DLLEXPORT run_project(Handle ph, const char *input_path,
const char *report_path, const char *output_path);
#if defined(__cplusplus)
}
#endif
#endif //EPANET_PY_H