Add support for scheduled jobs

This commit is contained in:
Matthias Schiffer 2013-03-18 18:06:24 +01:00
parent 7d4283f8f5
commit 56ccdb40ab
8 changed files with 104 additions and 8 deletions

View file

@ -59,6 +59,10 @@ size_t gmrf_iface_get_mtu(gmrf_t *gmrf, gmrf_iface_t *iface);
bool gmrf_iface_send(gmrf_t *gmrf, gmrf_iface_t *iface, const void *data, size_t len, const gmrf_addr_t *dest);
bool gmrf_iface_send_bc(gmrf_t *gmrf, gmrf_iface_t *iface, const void *data, size_t len);
typedef void (*gmrf_scheduled_func)(gmrf_t *gmrf, gmrf_context_t *ctx, void *arg);
void gmrf_schedule(gmrf_t *gmrf, gmrf_scheduled_func f, void *arg, unsigned delay);
/* implemented by protocol */
extern const char *gmrf_protocol_name;
extern const char *gmrf_protocol_version;