Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
yes, why?
[simgrid.git] / src / simdag / sd_link.cpp
1 /* Copyright (c) 2006-2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #include "src/simdag/simdag_private.h"
8 #include "simgrid/simdag.h"
9 #include "xbt/dict.h"
10 #include "xbt/sysdep.h"
11 #include "surf/surf.h"
12 #include "simgrid/link.h"
13
14 /**
15  * \brief Returns the link list
16  *
17  * Use SD_link_get_number() to know the array size.
18  *
19  * \return an array of \ref SD_link_t containing all links
20  * \see SD_link_get_number()
21  */
22 const SD_link_t *SD_link_get_list(void)
23 {
24   if (sd_global->link_list == NULL)    /* this is the first time the function is called */
25     sd_global->link_list = sg_link_list();
26
27   return sd_global->link_list;
28 }
29
30
31
32