diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-22 03:45:38 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-22 03:45:38 +0100 |
commit | 13b755cd43cc022450abad9d6391ae7d2d731773 (patch) | |
tree | 1b5a823f429c112abaa32e0a545f16accb399546 /src/babel.c | |
parent | 8fe8ed1942b6d7ff029a5a02e3352009d31f2ee2 (diff) | |
download | babel-13b755cd43cc022450abad9d6391ae7d2d731773.tar babel-13b755cd43cc022450abad9d6391ae7d2d731773.zip |
Add data structures and functions for announcements
Diffstat (limited to 'src/babel.c')
-rw-r--r-- | src/babel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/babel.c b/src/babel.c index 9ae6ff7..56d3ba0 100644 --- a/src/babel.c +++ b/src/babel.c @@ -77,6 +77,11 @@ gmrf_context_t* gmrf_protocol_init(gmrf_t *gmrf) { gmrf_context_t *ctx = calloc(1, sizeof(gmrf_context_t)); gmrf_random_bytes(gmrf, &ctx->self, sizeof(gp_babel_node_id_t)); + gp_babel_announce_t *announce = gp_babel_announce_new(gmrf, ctx); + announce->node = ctx->self; + announce->type = 1; + announce->key = 1337; + return ctx; } |