Statistics
| Branch: | Tag: | Revision:

sssimulator / EventScheduler / action_event.h @ master

History | View | Annotate | Download (556 Bytes)

1
/*
2
 * this is sssim: the simple & stupid simulator
3
 *
4
 *  copyright (c) 2015 luca baldesi
5
 *
6
 *  this is free software; see gpl-3.0.txt
7
 */
8

    
9
#ifndef __ACTION_EVENT_H__
10
#define __ACTION_EVENT_H__ 1
11

    
12
#include <malloc.h>
13

    
14
struct action_event;
15

    
16
typedef int (*action_event_func_t)(struct action_event * ev);
17

    
18
typedef void (*action_event_destroy_func_t)(struct action_event ** ev);
19

    
20
struct action_event * action_event_new(action_event_func_t t);
21

    
22
void action_event_destroy(struct action_event ** ev);
23

    
24
int action_event_trigger(struct action_event * ev);
25

    
26
#endif