X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2e0c297dea5e914ab0d7c4fe0bc4d36fdd9a16a0..69b85c9e1af02bcf07222b50ffbe83781b6027b2:/src/surf/gtnets/gtnets_interface.h?ds=sidebyside diff --git a/src/surf/gtnets/gtnets_interface.h b/src/surf/gtnets/gtnets_interface.h index 8936fa0a03..675968d6c3 100644 --- a/src/surf/gtnets/gtnets_interface.h +++ b/src/surf/gtnets/gtnets_interface.h @@ -1,26 +1,36 @@ -// Interface for GTNetS. -// Kayo Fujiwara 1/8/2007 +/* $Id$ */ +/* Copyright (c) 2007 Kayo Fujiwara. 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. */ +// Interface for GTNetS. #ifndef _GTNETS_INTERFACE_H #define _GTNETS_INTERFACE_H #ifdef __cplusplus extern "C" { #endif - + int gtnets_initialize(); int gtnets_add_link(int id, double bandwidth, double latency); - int gtnets_add_route(int src, int dst, int* links, int nlink); - int gtnets_create_flow(int src, int dst, long datasize, void* metadata); + 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); + int gtnets_run_until_next_flow_completion(void ***metadata, + int *number_of_flows); + double gtnets_get_flow_rx(void *metadata); + + void gtnets_print_topology(void); + int gtnets_run(double delta); int gtnets_finalize(); + void gtnets_set_jitter(double); + void gtnets_set_jitter_seed(int); #ifdef __cplusplus } #endif - #endif - -