1 /* Copyright (c) 2006-2015. The SimGrid Team.
2 * All rights reserved. */
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. */
8 #include "simgrid/simdag.h"
10 #include "xbt/sysdep.h"
11 #include "surf/surf.h"
12 #include "simgrid/link.h"
15 * \brief Returns the link list
17 * Use SD_link_get_number() to know the array size.
19 * \return an array of \ref SD_link_t containing all links
20 * \see SD_link_get_number()
22 const SD_link_t *SD_link_get_list(void)
24 if (sd_global->link_list == NULL) /* this is the first time the function is called */
25 sd_global->link_list = sg_link_list();
27 return sd_global->link_list;