Contiki 2.5
discovery_static.c
Go to the documentation of this file.
1 /**
2  * \addtogroup discovery
3  * @{
4  */
5 
6 /**
7  * \defgroup discovery_static Static discovery module
8  *
9  * @{
10  */
11 
12 /**
13  * \file
14  * \brief Static discovery Module
15  *
16  * \author Georg von Zengen <vonzeng@ibr.cs.tu-bs.de>
17  * \author Wolf-Bastian Poettner <poettner@ibr.cs.tu-bs.de>
18  */
19 
20 #include "net/rime/rimeaddr.h"
21 
22 #include "discovery.h"
23 
24 void discovery_static_init()
25 {
26 
27 }
28 
29 uint8_t discovery_static_is_neighbour(rimeaddr_t * dest)
30 {
31  return 1;
32 }
33 
34 void discovery_static_enable()
35 {
36 
37 }
38 
39 void discovery_static_disable()
40 {
41 
42 }
43 
44 void discovery_static_receive(rimeaddr_t * source, uint8_t * payload, uint8_t length)
45 {
46 
47 }
48 
49 void discovery_static_alive(rimeaddr_t * source)
50 {
51 
52 }
53 
54 uint8_t discovery_static_discover(rimeaddr_t * dest)
55 {
56  return 1;
57 }
58 
59 struct discovery_neighbour_list_entry * discovery_static_list_neighbours()
60 {
61  return NULL;
62 }
63 
64 void discovery_static_stop_pending()
65 {
66 
67 }
68 
69 const struct discovery_driver discovery_static ={
70  .name = "S_DISCOVERY",
71  .init = discovery_static_init,
72  .is_neighbour = discovery_static_is_neighbour,
73  .enable = discovery_static_enable,
74  .disable = discovery_static_disable,
75  .receive = discovery_static_receive,
76  .alive = discovery_static_alive,
77  .dead = NULL,
78  .discover = discovery_static_discover,
79  .neighbours = discovery_static_list_neighbours,
80  .stop_pending = discovery_static_stop_pending,
81 };
82