Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #307 from Jean-Emile/v3.20-expose-simgrid-jni
[simgrid.git] / include / simgrid / engine.h
1 /* Copyright (c) 2018. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef INCLUDE_SIMGRID_ENGINE_H_
7 #define INCLUDE_SIMGRID_ENGINE_H_
8
9 #include <simgrid/forward.h>
10
11 /* C interface */
12 SG_BEGIN_DECL()
13 XBT_PUBLIC void simgrid_init(int* argc, char** argv);
14 XBT_PUBLIC void simgrid_load_platform(const char* filename);
15 XBT_PUBLIC void simgrid_load_deployment(const char* filename);
16 XBT_PUBLIC void simgrid_run();
17 XBT_PUBLIC void simgrid_register_function(const char* name, int (*code)(int, char**));
18 XBT_PUBLIC void simgrid_register_default(int (*code)(int, char**));
19 XBT_PUBLIC double simgrid_get_clock();
20
21 XBT_PUBLIC void sg_config_continue_after_help();
22 SG_END_DECL()
23
24 #endif /* INCLUDE_SIMGRID_ENGINE_H_ */