A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add properties to AS structure (Not work for now) and use SG_PLATF_AS_INITIALIZER
[simgrid.git]
/
examples
/
msg
/
token_ring
/
token_bypass.c
diff --git
a/examples/msg/token_ring/token_bypass.c
b/examples/msg/token_ring/token_bypass.c
index
9e1c14b
..
3902008
100644
(file)
--- a/
examples/msg/token_ring/token_bypass.c
+++ b/
examples/msg/token_ring/token_bypass.c
@@
-62,7
+62,10
@@
int host(int argc, char *argv[])
static int surf_parse_bypass_platform(void)
{
sg_platf_begin();
static int surf_parse_bypass_platform(void)
{
sg_platf_begin();
- sg_platf_new_AS_begin("AS0", A_surfxml_AS_routing_Full);
+ s_sg_platf_AS_cbarg_t AS = SG_PLATF_AS_INITIALIZER;
+ AS.id = "AS0";
+ AS.routing = A_surfxml_AS_routing_Full;
+ sg_platf_new_AS_begin(&AS);
s_sg_platf_host_cbarg_t bob = SG_PLATF_HOST_INITIALIZER;
bob.id = "bob";
s_sg_platf_host_cbarg_t bob = SG_PLATF_HOST_INITIALIZER;
bob.id = "bob";