X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..172a73b13fe909117c7fbf3d69d4ce5e87efdbc6:/src/include/smpi/smpi_utils.hpp diff --git a/src/include/smpi/smpi_utils.hpp b/src/include/smpi/smpi_utils.hpp index 8eaaa0c74d..9b991fd779 100644 --- a/src/include/smpi/smpi_utils.hpp +++ b/src/include/smpi/smpi_utils.hpp @@ -1,25 +1,23 @@ -/* Copyright (c) 2016. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2016-2017. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _SMPI_UTILS_HPP -#define _SMPI_UTILS_HPP +#ifndef SMPI_UTILS_HPP +#define SMPI_UTILS_HPP #include "xbt/base.h" #include #include -SG_BEGIN_DECL() +extern "C" { // Methods used to parse and store the values for timing injections in smpi -typedef struct s_smpi_factor *smpi_os_factor_t; -typedef struct s_smpi_factor{ +struct s_smpi_factor_t { size_t factor=0; std::vector values; -} s_smpi_factor_t; - -SG_END_DECL() +}; +typedef s_smpi_factor_t* smpi_os_factor_t; +} XBT_PUBLIC(std::vector) parse_factor(const char *smpi_coef_string);