diff options
author | Chris Johns <chrisj@rtems.org> | 2018-04-12 17:46:49 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-04-12 17:57:40 +1000 |
commit | f59d435d16261b04f97e293ab075e79624caf11d (patch) | |
tree | d37bc351bc95541388740069541f605af71203ff /cpukit/include/rtems/rtl/rtl-obj-cache.h | |
parent | testsuites/dl06: Add a test for RAP format. (diff) | |
download | rtems-f59d435d16261b04f97e293ab075e79624caf11d.tar.bz2 |
libdl: Remove _t from all structures as this is reserved for the standards
Diffstat (limited to 'cpukit/include/rtems/rtl/rtl-obj-cache.h')
-rw-r--r-- | cpukit/include/rtems/rtl/rtl-obj-cache.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/cpukit/include/rtems/rtl/rtl-obj-cache.h b/cpukit/include/rtems/rtl/rtl-obj-cache.h index 8eacdd316b..3613e88246 100644 --- a/cpukit/include/rtems/rtl/rtl-obj-cache.h +++ b/cpukit/include/rtems/rtl/rtl-obj-cache.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 @@ -50,7 +50,7 @@ extern "C" { /** * The buffer cache. */ -typedef struct rtems_rtl_obj_cache_s +typedef struct rtems_rtl_obj_cache { int fd; /**< The file descriptor of the data in the cache. */ size_t file_size; /**< The size of the file. */ @@ -59,7 +59,7 @@ typedef struct rtems_rtl_obj_cache_s size_t level; /**< The amount of data in the cache. A file can be * smaller than the cache file. */ uint8_t* buffer; /**< The buffer */ -} rtems_rtl_obj_cache_t; +} rtems_rtl_obj_cache; /** * Open a cache allocating a single buffer of the size passed. The default @@ -70,21 +70,21 @@ typedef struct rtems_rtl_obj_cache_s * @retval true The cache is open. * @retval false The cache is not open. The RTL error is set. */ -bool rtems_rtl_obj_cache_open (rtems_rtl_obj_cache_t* cache, size_t size); +bool rtems_rtl_obj_cache_open (rtems_rtl_obj_cache* cache, size_t size); /** * Close a cache. * * @param cache The cache to close. */ -void rtems_rtl_obj_cache_close (rtems_rtl_obj_cache_t* cache); +void rtems_rtl_obj_cache_close (rtems_rtl_obj_cache* cache); /** * Flush the cache. Any further read will read the data from the file. * * @param cache The cache to flush. */ -void rtems_rtl_obj_cache_flush (rtems_rtl_obj_cache_t* cache); +void rtems_rtl_obj_cache_flush (rtems_rtl_obj_cache* cache); /** * Read data by reference. The length contains the amount of data that should @@ -102,11 +102,11 @@ void rtems_rtl_obj_cache_flush (rtems_rtl_obj_cache_t* cache); * @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_cache_read (rtems_rtl_obj_cache_t* cache, - int fd, - off_t offset, - void** buffer, - size_t* length); +bool rtems_rtl_obj_cache_read (rtems_rtl_obj_cache* cache, + int fd, + off_t offset, + void** buffer, + size_t* length); /** * Read data by value. The data is copied to the user supplied buffer. @@ -119,11 +119,11 @@ bool rtems_rtl_obj_cache_read (rtems_rtl_obj_cache_t* cache, * @retval true The data has been read from the cache. * @retval false The read failed and the RTL error has been set. */ -bool rtems_rtl_obj_cache_read_byval (rtems_rtl_obj_cache_t* cache, - int fd, - off_t offset, - void* buffer, - size_t length); +bool rtems_rtl_obj_cache_read_byval (rtems_rtl_obj_cache* cache, + int fd, + off_t offset, + void* buffer, + size_t length); #ifdef __cplusplus } |