diff options
Diffstat (limited to 'cpukit/include/rtems/rtl/rtl-obj-comp.h')
-rw-r--r-- | cpukit/include/rtems/rtl/rtl-obj-comp.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/cpukit/include/rtems/rtl/rtl-obj-comp.h b/cpukit/include/rtems/rtl/rtl-obj-comp.h index 34bfa6ffa1..963824b277 100644 --- a/cpukit/include/rtems/rtl/rtl-obj-comp.h +++ b/cpukit/include/rtems/rtl/rtl-obj-comp.h @@ -1,5 +1,5 @@ /* - * COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org> + * COPYRIGHT (c) 2012, 2018 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 @@ -43,23 +43,23 @@ extern "C" { /** * The compressed file. */ -typedef struct rtems_rtl_obj_cpmp_s +typedef struct rtems_rtl_obj_cpmp { - rtems_rtl_obj_cache_t* cache; /**< The cache provides the input + rtems_rtl_obj_cache* cache; /**< The cache provides the input * buffer. */ - int fd; /**< The file descriptor. */ - int compression; /**< The type of compression. */ - off_t offset; /**< The base offset of the buffer. */ - size_t size; /**< The size of the output buffer. */ - size_t level; /**< The amount of data in the buffer. */ - uint8_t* buffer; /**< The buffer */ - uint32_t read; /**< The amount of data read. */ -} rtems_rtl_obj_comp_t; + int fd; /**< The file descriptor. */ + int compression; /**< The type of compression. */ + off_t offset; /**< The base offset of the buffer. */ + size_t size; /**< The size of the output buffer. */ + size_t level; /**< The amount of data in the buffer. */ + uint8_t* buffer; /**< The buffer */ + uint32_t read; /**< The amount of data read. */ +} rtems_rtl_obj_comp; /** * Return the input level. */ -static inline uint32_t rtems_rtl_obj_comp_input (rtems_rtl_obj_comp_t* comp) +static inline uint32_t rtems_rtl_obj_comp_input (rtems_rtl_obj_comp* comp) { return comp->read; } @@ -72,15 +72,15 @@ static inline uint32_t rtems_rtl_obj_comp_input (rtems_rtl_obj_comp_t* comp) * @retval true The compressor is open. * @retval false The compressor is not open. The RTL error is set. */ -bool rtems_rtl_obj_comp_open (rtems_rtl_obj_comp_t* comp, - size_t size); +bool rtems_rtl_obj_comp_open (rtems_rtl_obj_comp* comp, + size_t size); /** * Close a compressor. * * @param comp The compressor to close. */ -void rtems_rtl_obj_comp_close (rtems_rtl_obj_comp_t* comp); +void rtems_rtl_obj_comp_close (rtems_rtl_obj_comp* comp); /** * Set the cache and offset in the file the compressed stream starts. @@ -91,11 +91,11 @@ void rtems_rtl_obj_comp_close (rtems_rtl_obj_comp_t* comp); * @param compression The type of compression being streamed. * @param offset The offset in the file the compressed stream starts. */ -void rtems_rtl_obj_comp_set (rtems_rtl_obj_comp_t* comp, - rtems_rtl_obj_cache_t* cache, - int fd, - int compression, - off_t offset); +void rtems_rtl_obj_comp_set (rtems_rtl_obj_comp* comp, + rtems_rtl_obj_cache* cache, + int fd, + int compression, + off_t offset); /** * Read decompressed data. The length contains the amount of data that should @@ -111,9 +111,9 @@ void rtems_rtl_obj_comp_set (rtems_rtl_obj_comp_t* comp, * @retval true The data referenced is in the cache. * @retval false The read failed and the RTL error has been set. */ -bool rtems_rtl_obj_comp_read (rtems_rtl_obj_comp_t* comp, - void* buffer, - size_t length); +bool rtems_rtl_obj_comp_read (rtems_rtl_obj_comp* comp, + void* buffer, + size_t length); #ifdef __cplusplus } |