X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f830403bb72f4e44f773ad87c2aa298f2393d395..967421ad9a8dcd567206f2c398a30c08c9507a81:/src/surf/gtnets/gtnets_interface.h diff --git a/src/surf/gtnets/gtnets_interface.h b/src/surf/gtnets/gtnets_interface.h index 095103a415..0e637c5095 100644 --- a/src/surf/gtnets/gtnets_interface.h +++ b/src/surf/gtnets/gtnets_interface.h @@ -1,5 +1,5 @@ -/* $Id$ */ -/* Copyright (c) 2007 Kayo Fujiwara. All rights reserved. */ +/* Copyright (c) 2007, 2008, 2009, 2010. 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. */ @@ -12,15 +12,15 @@ extern "C" { #endif - int gtnets_initialize(); + int gtnets_initialize(int wsize); int gtnets_add_link(int id, double bandwidth, double latency); int gtnets_add_route(int src, int dst, int *links, int nlink); int gtnets_add_router(int id); int gtnets_add_onehop_route(int src, int dst, int link); int gtnets_create_flow(int src, int dst, long datasize, void *metadata); double gtnets_get_time_to_next_flow_completion(); - int gtnets_run_until_next_flow_completion(void ***metadata, - int *number_of_flows); + double gtnets_run_until_next_flow_completion(void ***metadata, + int *number_of_flows); double gtnets_get_flow_rx(void *metadata); void gtnets_print_topology(void); @@ -28,6 +28,8 @@ extern "C" { int gtnets_run(double delta); int gtnets_finalize(); void gtnets_set_jitter(double); + void gtnets_set_jitter_seed(int); + #ifdef __cplusplus } #endif