X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3ab2d168b83c76035668c9ab051ceca8eaf27f3b..a3f2c3c47a2cdae9e34c468a0b548f085b92a188:/include/simgrid/link.h diff --git a/include/simgrid/link.h b/include/simgrid/link.h index ea0d9fa2f3..4865236afe 100644 --- a/include/simgrid/link.h +++ b/include/simgrid/link.h @@ -1,6 +1,7 @@ /* Public interface to the Link datatype */ -/* Copyright (c) 2015. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2015. 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. */ @@ -8,20 +9,20 @@ #ifndef INCLUDE_SIMGRID_LINK_H_ #define INCLUDE_SIMGRID_LINK_H_ -#ifdef __cplusplus -class Link; -#else -typedef struct Link Link; -#endif +#include /* C interface */ SG_BEGIN_DECL() +XBT_PUBLIC(const char*) sg_link_name(Link *link); +XBT_PUBLIC(Link *) sg_link_by_name(const char *name); XBT_PUBLIC(int) sg_link_is_shared(Link *link); XBT_PUBLIC(double) sg_link_bandwidth(Link *link); XBT_PUBLIC(double) sg_link_latency(Link *link); -XBT_PUBLIC(const char*) sg_link_name(Link *link); XBT_PUBLIC(void*) sg_link_data(Link *link); XBT_PUBLIC(void) sg_link_data_set(Link *link,void *data); +XBT_PUBLIC(int) sg_link_count(); +XBT_PUBLIC(Link**) sg_link_list(); +XBT_PUBLIC(void) sg_link_exit(); SG_END_DECL() #endif /* INCLUDE_SIMGRID_LINK_H_ */