/*************************************************************************** * Copyright (c) 2007-2010, Broadcom Corporation * All Rights Reserved * Confidential Property of Broadcom Corporation * * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. * * $brcm_Workfile: bfile_util.h $ * $brcm_Revision: 1 $ * $brcm_Date: 6/21/10 1:33p $ * * Module Description: * * Block based cached file I/O * * Revision History: * * $brcm_Log: /BSEAV/lib/bfile/bfile_util.h $ * * 1 6/21/10 1:33p vsilyaev * SW3548-2975: File utilities * * *******************************************************************************/ #ifndef _BFILE_UTIL_H__ #define _BFILE_UTIL_H__ #include "bfile_io.h" #ifdef __cplusplus extern "C" { #endif /* Summary: This function allows to shift read point in the file Description: This function would create new bfile_io_read_t which is identical to the original except that all data access is shifted by 'offset' bytes */ bfile_io_read_t bfile_read_offset_attach(bfile_io_read_t source, off_t offset); /* Summary: This function releases resources allocated in the bfile_offset_attach */ void bfile_read_offset_detach(bfile_io_read_t file); #ifdef __cplusplus } #endif #endif /* _BFILE_UTIL_H__ */