diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-18 23:56:48 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-03-18 23:56:48 +0100 |
commit | 2b3fe33c07b17b6bbc6515f73aef5efac89fd542 (patch) | |
tree | 9b56d8de707cc72d8bd6f64b3cc73516c652bd73 /src/core.c | |
parent | 27389a5a61cfc22c0481150cfc3d6cf1afe3bc51 (diff) | |
download | babel-2b3fe33c07b17b6bbc6515f73aef5efac89fd542.tar babel-2b3fe33c07b17b6bbc6515f73aef5efac89fd542.zip |
Implement hello and IHU sending and receiving
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/core.c b/src/core.c deleted file mode 100644 index d8d089f..0000000 --- a/src/core.c +++ /dev/null @@ -1,53 +0,0 @@ -/* - Copyright (c) 2013, Matthias Schiffer <mschiffer@universe-factory.net> - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - 2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE - FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR - SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER - CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - - -#include <gmrf/gmrf.h> - - -const char *gmrf_protocol_name = "babel"; -const char *gmrf_protocol_version = "experimental"; - - -static void periodic_task(gmrf_t *gmrf, gmrf_context_t *ctx, void *arg) { - gmrf_logf(gmrf, LOG_DEBUG, "still there."); - - gmrf_schedule(gmrf, periodic_task, NULL, 1000); -} - -gmrf_context_t* gmrf_protocol_init(gmrf_t *gmrf) { - gmrf_logf(gmrf, LOG_INFO, "initalizing..."); - - gmrf_schedule(gmrf, periodic_task, NULL, 1000); - - return NULL; -} - -void gmrf_protocol_add_iface(gmrf_t *gmrf, gmrf_context_t *ctx, gmrf_iface_t *iface) { - gmrf_logf(gmrf, LOG_INFO, "interface `%s' added.", gmrf_iface_get_name(gmrf, iface)); -} - -void gmrf_protocol_handle_packet(gmrf_t *gmrf, gmrf_context_t *ctx, gmrf_iface_t *iface, const gmrf_addr_t *source, const void *data, size_t len) { -} |