EM-ODP  3.7.0
Event Machine on ODP
em_include.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015, Nokia Solutions and Networks
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  * * Neither the name of the copyright holder nor the names of its
15  * contributors may be used to endorse or promote products derived
16  * from this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29  */
30 
31 #ifndef EM_INCLUDE_H_
32 #define EM_INCLUDE_H_
33 
34 /**
35  * @file
36  * EM internal include file
37  *
38  */
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43 
44 #ifndef _GNU_SOURCE
45 #define _GNU_SOURCE /* for strnlen() */
46 #endif
47 #include <stdbool.h>
48 #include <stdio.h>
49 #include <string.h>
50 #include <libconfig.h>
51 
52 #include <event_machine.h>
55 
56 /* ODP API */
57 #include <odp_api.h>
58 #include <odp/helper/odph_api.h>
59 
60 /**
61  * @def EM_CHECK_INIT_CALLED
62  *
63  * Magic number used detect whether an initialization function has been called
64  * prior to a create-function.
65  *
66  * An error will be reported and the creation will fail if the call to _init()
67  * has been omitted.
68  */
69 #define EM_CHECK_INIT_CALLED ((uint32_t)0xACDCBEEF)
70 
71 #include "misc/list.h"
72 #include "misc/objpool.h"
73 
74 #include "em_init.h"
75 
76 #include "em_atomic.h"
77 #include "em_chaining_types.h"
78 #include "em_core_types.h"
79 #include "em_error_types.h"
80 #include "em_pool_types.h"
81 #include "em_eo_types.h"
82 #include "em_event_group_types.h"
83 #include "em_queue_types.h"
84 #include "em_event_types.h"
85 #include "em_queue_group_types.h"
86 #include "em_atomic_group_types.h"
88 #include "em_dispatcher_types.h"
89 #include "em_sync_api_types.h"
90 #include "em_hook_types.h"
91 #include "em_libconfig_types.h"
92 #include "em_timer_types.h"
93 #include "em_cli_types.h"
94 
95 #include "em_mem.h"
96 
97 #include "em_error.h"
98 #include "em_event_state.h"
99 #include "em_event_inline.h"
100 #include "em_queue_inline.h"
101 
102 #include "em_core.h"
103 #include "em_eo.h"
104 #include "em_internal_event.h"
105 #include "em_info.h"
106 #include "em_pool.h"
107 #include "em_event.h"
108 #include "em_queue.h"
109 #include "em_queue_group.h"
110 #include "em_event_group.h"
111 #include "em_atomic_group.h"
112 #include "em_hooks.h"
113 #include "em_dispatcher.h"
114 #include "em_libconfig.h"
115 #include "em_chaining.h"
116 #include "em_cli.h"
117 #include "em_timer.h"
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif /* EM_INCLUDE_H_ */
em_atomic_group_types.h
em_queue.h
em_core.h
em_init.h
em_sync_api_types.h
em_queue_types.h
em_pool.h
objpool.h
em_dispatcher.h
em_queue_group_types.h
em_chaining_types.h
event_machine.h
em_info.h
em_mem.h
em_event_state.h
em_event_types.h
em_pool_types.h
em_chaining.h
em_cli.h
em_cli_types.h
em_queue_group.h
event_machine_helper.h
em_error.h
em_hooks.h
em_event.h
em_event_group_types.h
em_hook_types.h
em_event_group.h
environment.h
em_internal_event_types.h
em_event_inline.h
em_internal_event.h
em_dispatcher_types.h
em_error_types.h
em_atomic_group.h
em_eo_types.h
em_queue_inline.h
em_core_types.h
em_eo.h