1 /* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved. */
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. */
6 #ifndef SURF_SURF_PRIVATE_HPP
7 #define SURF_SURF_PRIVATE_HPP
9 #include "simgrid/forward.h"
10 #include "xbt/sysdep.h"
14 /* Generic functions common to all models */
16 XBT_PRIVATE FILE* surf_fopen(const char* name, const char* mode);
17 XBT_PRIVATE std::ifstream* surf_ifsopen(std::string name);
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.
23 XBT_PRIVATE int __surf_is_absolute_file_path(const char* file_path);
25 XBT_PUBLIC void storage_register_callbacks();
27 XBT_PRIVATE void parse_after_config();
29 /********** Tracing **********/
30 /* from surf_instr.c */
31 void TRACE_surf_host_set_speed(double date, const char* resource, double power);
32 void TRACE_surf_link_set_bandwidth(double date, const char* resource, double bandwidth);