Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #259 from simgrid/configfix
[simgrid.git] / src / surf / surf_private.hpp
1 /* Copyright (c) 2004-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 SURF_SURF_PRIVATE_HPP
7 #define SURF_SURF_PRIVATE_HPP
8
9 #include "src/surf/trace_mgr.hpp"
10 #include "surf/surf.hpp"
11
12 extern "C" {
13
14 /* Generic functions common to all models */
15
16 XBT_PRIVATE FILE* surf_fopen(const char* name, const char* mode);
17 XBT_PRIVATE std::ifstream* surf_ifsopen(std::string name);
18
19 /* The __surf_is_absolute_file_path() returns 1 if
20  * file_path is a absolute file path, in the other
21  * case the function returns 0.
22  */
23 XBT_PRIVATE int __surf_is_absolute_file_path(const char* file_path);
24
25 extern XBT_PRIVATE simgrid::trace_mgr::future_evt_set* future_evt_set;
26
27 XBT_PUBLIC void storage_register_callbacks();
28
29 XBT_PRIVATE void parse_after_config();
30
31 /********** Tracing **********/
32 /* from surf_instr.c */
33 void TRACE_surf_host_set_speed(double date, const char* resource, double power);
34 void TRACE_surf_link_set_bandwidth(double date, const char* resource, double bandwidth);
35 }
36
37 #endif