73
* @event: event being emitted,
73
* @entry: list header,
74
74
* @id: unique id assigned to each emission,
75
* @info: information about event,
75
76
* @progress: progress of emission,
76
77
* @jobs: number of jobs holding this event,
77
78
* @failed: whether this event has failed.
177
unsigned int emission_id;
178
int emission_id_wrapped;
182
void event_init (void);
184
EventInfo * event_info_new (const void *parent, const char *name,
185
char **args, char **env)
186
__attribute__ ((warn_unused_result, malloc));
187
EventInfo * event_info_copy (const void *parent,
188
const EventInfo *old_event)
189
__attribute__ ((warn_unused_result, malloc));
191
int event_match (EventInfo *event1, EventInfo *event2);
193
EventEmission *event_emit (const char *name,
194
char **args, char **env)
180
unsigned int event_id;
181
int emission_id_wrapped;
185
void event_init (void);
187
EventInfo *event_info_new (const void *parent, const char *name,
188
char **args, char **env)
189
__attribute__ ((warn_unused_result, malloc));
190
EventInfo *event_info_copy (const void *parent, const EventInfo *old_event)
191
__attribute__ ((warn_unused_result, malloc));
193
int event_match (EventInfo *event1, EventInfo *event2);
195
Event *event_new (const void *parent, const char *name,
196
char **args, char **env)
195
197
__attribute__ ((malloc));
196
EventEmission *event_emit_find_by_id (unsigned int id);
197
void event_emit_finished (EventEmission *emission);
199
void event_poll (void);
199
Event *event_find_by_id (unsigned int id);
200
void event_emit_finished (Event *event);
202
void event_poll (void);