diff options
author | Chris Johns <chrisj@rtems.org> | 2012-11-29 19:08:57 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-11-29 19:08:57 +1100 |
commit | fc313fda72db4b7aa774e191244bf83427b0fec1 (patch) | |
tree | 159e98d0ffaa489a4f4b3deb7ca49178df8bfa2a /rtl-rap.h | |
parent | 62b19fe866226b8fa0ce54351162dab367daa06a (diff) |
RAP file support.
This is the initial addition of support for LZ77 RTEMS applications
in the RAP format.
The change add support for different formats to the loader. Each
format type is asked to check the file being loading and if
it matches the format's loader is called to load the file.
Support has been added to stream LZ77 files via the object file
cache.
Diffstat (limited to 'rtl-rap.h')
-rw-r--r-- | rtl-rap.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/rtl-rap.h b/rtl-rap.h new file mode 100644 index 0000000..d937018 --- /dev/null +++ b/rtl-rap.h @@ -0,0 +1,47 @@ +/* + * COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ +/** + * @file + * + * @ingroup rtems_rtl + * + * @brief RTEMS Run-Time Linker ELF Headers + */ + +#if !defined (_RTEMS_RTL_RAP_H_) +#define _RTEMS_RTL_RAP_H_ + +#include <rtl-fwd.h> +#include <rtl-obj-fwd.h> +#include <rtl-sym.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** + * The RAP format check handler. + * + * @param obj The object being checked. + * @param fd The file descriptor. + */ +bool rtems_rtl_rap_file_check (rtems_rtl_obj_t* obj, int fd); + +/** + * The RAP format load handler. + * + * @param obj The object to load. + * @param fd The file descriptor. + */ +bool rtems_rtl_rap_file_load (rtems_rtl_obj_t* obj, int fd); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif |