The friendly Operating System for the Internet of Things
nhdp_reader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universit├Ąt Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef NHDP_READER_H
20 #define NHDP_READER_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
32 void nhdp_reader_init(void);
33 
37 void nhdp_reader_cleanup(void);
38 
51 int nhdp_reader_handle_packet(kernel_pid_t rcvg_if_pid, void *buffer, size_t length);
52 
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* NHDP_READER_H */
58 
void nhdp_reader_init(void)
Set up the NHDP reader.
int nhdp_reader_handle_packet(kernel_pid_t rcvg_if_pid, void *buffer, size_t length)
Handle a packet received from a registered interface.
int16_t kernel_pid_t
Unique process identifier.
Definition: kernel_types.h:83
void nhdp_reader_cleanup(void)
Clean up the NHDP reader.