RTEMS CPU Kit with SuperCore  4.11.3
rap.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT (c) 2013 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_t) (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
bool(* rtems_rap_iterator_t)(void *handle)
The module iterator handle.
Definition: rap.h:45
void * rtems_rap_find(const char *name)
Find the application handle given a file name.
Definition: rap.c:413
int rtems_rap_get_error(char *message, size_t max_message)
Get the last error message clearing it.
Definition: rap.c:478
const char * rtems_rap_name(void *handle)
Return the name of the module given a handle.
Definition: rap.c:460
bool rtems_rap_load(const char *name, int mode, int argc, const char *argv[])
Load an application.
Definition: rap.c:284
Chain API.
bool rtems_rap_unload(const char *name)
Unload an application.
Definition: rap.c:370
void * rtems_rap_dl_handle(void *handle)
Return the DL handle used to load the module given the RAP handle.
Definition: rap.c:469
bool rtems_rap_iterate(rtems_rap_iterator_t iterator)
Run an iterator over the modules calling the iterator function.
Definition: rap.c:437