X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d6839b9c710b3b0e54743f4a700131f6105c02c8..66b0686fe441796325c3b5738b1b880d15ce1ea6:/examples/gras/replay/workload.h diff --git a/examples/gras/replay/workload.h b/examples/gras/replay/workload.h index 67f0c0c685..2d4372d7a1 100644 --- a/examples/gras/replay/workload.h +++ b/examples/gras/replay/workload.h @@ -1,4 +1,5 @@ -/* Copyright (c) 2009 Da SimGrid Team. All rights reserved. */ +/* Copyright (c) 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. */ @@ -23,19 +24,20 @@ typedef struct { /* keep it in sync with function xbt_workload_declare_datadesc() */ - char *who; /* the slave who should do it */ - char *comment; /* a comment placed at the end of the line, if any */ - int action; /* 0: compute(darg flops); 1: send darg bytes to strarg; 2: recv darg bytes from strarg */ - double date; /* when it occured when the trace was captured */ - double d_arg; /* double argument, if any */ - char * str_arg; /* string argument, if any */ + char *who; /* the slave who should do it */ + char *comment; /* a comment placed at the end of the line, if any */ + int action; /* 0: compute(darg flops); 1: send darg bytes to strarg; 2: recv darg bytes from strarg */ + double date; /* when it occured when the trace was captured */ + double d_arg; /* double argument, if any */ + char *str_arg; /* string argument, if any */ } s_xbt_workload_elm_t, *xbt_workload_elm_t; XBT_PUBLIC(xbt_workload_elm_t) xbt_workload_elm_parse(char *line); XBT_PUBLIC(void) xbt_workload_elm_free(xbt_workload_elm_t cmd); -XBT_PUBLIC(void) xbt_workload_elm_free_voidp(void*cmd); -XBT_PUBLIC(char *)xbt_workload_elm_to_string(xbt_workload_elm_t cmd); -XBT_PUBLIC(int) xbt_workload_elm_cmp_who_date(const void* _c1, const void* _c2); +XBT_PUBLIC(void) xbt_workload_elm_free_voidp(void *cmd); +XBT_PUBLIC(char *) xbt_workload_elm_to_string(xbt_workload_elm_t cmd); +XBT_PUBLIC(int) xbt_workload_elm_cmp_who_date(const void *_c1, + const void *_c2); XBT_PUBLIC(void) xbt_workload_sort_who_date(xbt_dynar_t c); XBT_PUBLIC(xbt_dynar_t) xbt_workload_parse_file(char *filename); @@ -45,8 +47,9 @@ XBT_PUBLIC(void) xbt_workload_declare_datadesc(void); typedef struct { int size; char *chunk; -} s_xbt_workload_data_chunk_t,*xbt_workload_data_chunk_t; -XBT_PUBLIC(xbt_workload_data_chunk_t) xbt_workload_data_chunk_new(int size); +} s_xbt_workload_data_chunk_t, *xbt_workload_data_chunk_t; +XBT_PUBLIC(xbt_workload_data_chunk_t) xbt_workload_data_chunk_new(int + size); XBT_PUBLIC(void) xbt_workload_data_chunk_free(xbt_workload_data_chunk_t c); -#endif /* XBT_WORKLOAD_H_ */ +#endif /* XBT_WORKLOAD_H_ */