RTEMS  5.1
rap.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT (c) 2013, 2018 Chris Johns <chrisj@rtems.org>
3  *
4  * The license and distribution terms for this file may be
5  * found in the file LICENSE in this distribution or at
6  * http://www.rtems.org/license/LICENSE.
7  */
18 #if !defined (_RAP_H_)
19 #define _RAP_H_
20 
21 #include <rtems.h>
22 #include <rtems/chain.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* __cplusplus */
27 
47 typedef bool (*rtems_rap_iterator) (void* handle);
48 
55 bool rtems_rap_load (const char* name, int mode, int argc, const char* argv[]);
56 
64 bool rtems_rap_unload (const char* name);
65 
74 void* rtems_rap_find (const char* name);
75 
84 
92 const char* rtems_rap_name (void* handle);
93 
100 void* rtems_rap_dl_handle (void* handle);
101 
111 int rtems_rap_get_error (char* message, size_t max_message);
112 
113 #ifdef __cplusplus
114 }
115 #endif /* __cplusplus */
116 
117 #endif
Definition: media-server.c:33
void * rtems_rap_find(const char *name)
Definition: rap.c:353
bool rtems_rap_iterate(rtems_rap_iterator iterator)
Definition: rap.c:377
int rtems_rap_get_error(char *message, size_t max_message)
Definition: rap.c:418
bool(* rtems_rap_iterator)(void *handle)
Definition: rap.h:47
const char * rtems_rap_name(void *handle)
Definition: rap.c:400
bool rtems_rap_load(const char *name, int mode, int argc, const char *argv[])
Definition: rap.c:224
Chain API.
bool rtems_rap_unload(const char *name)
Definition: rap.c:310
void * rtems_rap_dl_handle(void *handle)
Definition: rap.c:409