X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/242fde5e8077f8193db4df5f262a9672085c8d8a..4fb3673da5b0ac154b2f70e40ccd11cf8993da32:/include/simgrid/link.h diff --git a/include/simgrid/link.h b/include/simgrid/link.h index 8a81bb903b..39b6f316e2 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,14 +9,7 @@ #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() @@ -26,7 +20,7 @@ XBT_PUBLIC(double) sg_link_bandwidth(Link *link); XBT_PUBLIC(double) sg_link_latency(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_amount(void); +XBT_PUBLIC(int) sg_link_count(void); XBT_PUBLIC(Link**) sg_link_list(void); XBT_PUBLIC(void) sg_link_exit(void); SG_END_DECL()