RTEMS  5.0.0
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 
45 typedef bool (*rtems_rap_iterator) (void* handle);
46 
53 bool rtems_rap_load (const char* name, int mode, int argc, const char* argv[]);
54 
62 bool rtems_rap_unload (const char* name);
63 
72 void* rtems_rap_find (const char* name);
73 
82 
90 const char* rtems_rap_name (void* handle);
91 
98 void* rtems_rap_dl_handle (void* handle);
99 
109 int rtems_rap_get_error (char* message, size_t max_message);
110 
111 #ifdef __cplusplus
112 }
113 #endif /* __cplusplus */
114 
115 #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:45
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