A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
finish the s/smurf/popping/ renaming
[simgrid.git]
/
include
/
instr
/
jedule
/
jedule_events.h
diff --git
a/include/instr/jedule/jedule_events.h
b/include/instr/jedule/jedule_events.h
index
4d5b295
..
1e88da8
100644
(file)
--- a/
include/instr/jedule/jedule_events.h
+++ b/
include/instr/jedule/jedule_events.h
@@
-1,34
+1,38
@@
-/*
- * jedule_events.h
- *
- * Created on: Nov 30, 2010
- * Author: sascha
- */
+/* Copyright (c) 2010-2012, 2014. 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. */
#ifndef JEDULE_EVENTS_H_
#define JEDULE_EVENTS_H_
#ifndef JEDULE_EVENTS_H_
#define JEDULE_EVENTS_H_
-#include "
jedule_platform
.h"
+#include "
simgrid_config
.h"
#include "xbt/dynar.h"
#include "xbt/dict.h"
#include "xbt/dynar.h"
#include "xbt/dict.h"
+#include "instr/jedule/jedule_platform.h"
+
+
+#ifdef HAVE_JEDULE
+
struct jed_event {
struct jed_event {
-
int event_id;
-
char *name;
-
double start_time;
-
double end_time;
-
char *type;
-
xbt_dynar_t resource_subsets;
-
xbt_dynar_t characteristics_list; /* just a list of names (strings) */
-
xbt_dict_t info_hash; /* key/value pairs */
+ int event_id;
+ char *name;
+ double start_time;
+ double end_time;
+ char *type;
+ xbt_dynar_t resource_subsets;
+ xbt_dynar_t characteristics_list; /* just a list of names (strings) */
+ xbt_dict_t info_hash; /* key/value pairs */
};
typedef struct jed_event s_jed_event_t, *jed_event_t;
/************************************************************/
};
typedef struct jed_event s_jed_event_t, *jed_event_t;
/************************************************************/
-void create_jed_event(jed_event_t *event, char *name, double start_time, double end_time, char *type);
+void create_jed_event(jed_event_t *event, char *name, double start_time, double end_time, c
onst c
har *type);
void jed_event_free(jed_event_t event);
void jed_event_free(jed_event_t event);
@@
-38,4
+42,6
@@
void jed_event_add_characteristic(jed_event_t event, char *characteristic);
void jed_event_add_info(jed_event_t event, char *key, char *value);
void jed_event_add_info(jed_event_t event, char *key, char *value);
+#endif
+
#endif /* JEDULE_EVENTS_H_ */
#endif /* JEDULE_EVENTS_H_ */