Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[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 "simgrid/forward.h"
10 #include "xbt/sysdep.h"
11
12 /* Generic functions common to all models */
13
14 XBT_PRIVATE FILE* surf_fopen(const char* name, const char* mode);
15 XBT_PRIVATE std::ifstream* surf_ifsopen(std::string name);
16
17 /* The __surf_is_absolute_file_path() returns 1 if
18  * file_path is a absolute file path, in the other
19  * case the function returns 0.
20  */
21 XBT_PRIVATE int __surf_is_absolute_file_path(const char* file_path);
22
23 XBT_PUBLIC void storage_register_callbacks();
24
25 XBT_PRIVATE void parse_after_config();
26
27 /********** Tracing **********/
28 /* from surf_instr.c */
29 void TRACE_surf_host_set_speed(double date, const char* resource, double power);
30 void TRACE_surf_link_set_bandwidth(double date, const char* resource, double bandwidth);
31
32 #endif