Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added one.
[simgrid.git] / src / surf / gtnets / gtnets_interface.h
1 // Interface for GTNetS.
2 // Kayo Fujiwara 1/8/2007
3
4 #ifndef _GTNETS_INTERFACE_H
5 #define _GTNETS_INTERFACE_H
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10   
11   int gtnets_initialize();
12   int gtnets_add_link(int id, double bandwidth, double latency);
13   int gtnets_add_route(int src, int dst, int* links, int nlink);
14   int gtnets_create_flow(int src, int dst, long datasize, void* metadata);
15   double gtnets_get_time_to_next_flow_completion();
16   int gtnets_run_until_next_flow_completion(void*** metadata, int* number_of_flows);
17   int gtnets_run(double delta);
18   int gtnets_finalize();
19
20 #ifdef __cplusplus
21 }
22 #endif
23
24 #endif
25
26