Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reindent include files
[simgrid.git] / include / simgrid / jedule / jedule_events.h
1 /* Copyright (c) 2010-2012, 2014-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef JEDULE_EVENTS_H_
8 #define JEDULE_EVENTS_H_
9
10 #include "simgrid_config.h"
11 #include "xbt/dynar.h"
12 #include "xbt/dict.h"
13 #include "simgrid/jedule/jedule_platform.h"
14
15 #ifdef HAVE_JEDULE
16 SG_BEGIN_DECL()
17
18 struct jed_event {
19   int event_id;
20   char *name;
21   double start_time;
22   double end_time;
23   char *type;
24   xbt_dynar_t resource_subsets;
25   xbt_dynar_t characteristics_list; /* just a list of names (strings) */
26   xbt_dict_t info_hash;     /* key/value pairs */
27 };
28
29 typedef struct jed_event s_jed_event_t, *jed_event_t;
30
31 void create_jed_event(jed_event_t *event, char *name, double start_time, double end_time, const char *type);
32 void jed_event_free(jed_event_t event);
33 void jed_event_add_resources(jed_event_t event, xbt_dynar_t host_selection);
34 void jed_event_add_characteristic(jed_event_t event, char *characteristic);
35 void jed_event_add_info(jed_event_t event, char *key, char *value);
36
37 SG_END_DECL()
38 #endif
39
40 #endif /* JEDULE_EVENTS_H_ */