source: svn/trunk/newcon3bcm2_21bu/BSEAV/lib/bfile/bfile_util.h @ 7

Last change on this file since 7 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2007-2010, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: bfile_util.h $
11 * $brcm_Revision: 1 $
12 * $brcm_Date: 6/21/10 1:33p $
13 *
14 * Module Description:
15 *
16 * Block based cached file I/O
17 *
18 * Revision History:
19 *
20 * $brcm_Log: /BSEAV/lib/bfile/bfile_util.h $
21 *
22 * 1   6/21/10 1:33p vsilyaev
23 * SW3548-2975: File utilities
24 *
25 *
26 *******************************************************************************/
27#ifndef _BFILE_UTIL_H__
28#define _BFILE_UTIL_H__
29
30#include "bfile_io.h"
31
32#ifdef __cplusplus
33extern "C"
34{
35#endif
36
37/*
38Summary:
39    This function allows to shift read point in the file
40Description:
41    This function would create new bfile_io_read_t which is identical to the
42    original except that all data access is shifted by 'offset' bytes
43*/
44bfile_io_read_t bfile_read_offset_attach(bfile_io_read_t source, off_t offset);
45
46/*
47Summary:
48    This function releases resources allocated in the bfile_offset_attach
49*/ 
50void bfile_read_offset_detach(bfile_io_read_t file);
51
52#ifdef __cplusplus
53}
54#endif
55
56
57#endif /* _BFILE_UTIL_H__ */
58
59
Note: See TracBrowser for help on using the repository browser.