+CcInitializeCacheMap()
[captive.git] / src / libcaptive / cc / init.c
1 /* $Id$
2  * reactos readahead/writebehing emulation of libcaptive
3  * Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
4  * 
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; exactly version 2 of June 1991 is required
8  * 
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  * 
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19
20 #include "config.h"
21
22 #include "reactos/ddk/ccfuncs.h"        /* self */
23 #include <glib/gmessages.h>
24
25
26 /**
27  * CcInitializeCacheMap:
28  * @FileObject: Existing file to set callbacks for. Ignored by libcaptive.
29  * %NULL value is forbidden.
30  * @FileSizes: Some file sizes suggestions. Ignored by libcaptive.
31  * %NULL value is forbidden.
32  * @PinAccess: CcPin*() functions will be used with @FileObject? Ignored by libcaptive.
33  * @CallBacks: Provided callback functions for readahead/writebehind. Ignored by libcaptive.
34  * %NULL value is forbidden.
35  * @LazyWriterContext: Value passed to functions of @CallBacks to bind with @FileObject.
36  * %NULL value is permitted.
37  *
38  * Provides support of readahead/writebeing in W32. Function should be called
39  * by W32 filesystem to offer its functions to W32 kernel. These functions
40  * are never called by libcaptive, this call is a NOP in libcaptive.
41  */
42 VOID CcInitializeCacheMap(IN PFILE_OBJECT FileObject,
43                 IN PCC_FILE_SIZES FileSizes,IN BOOLEAN PinAccess,IN PCACHE_MANAGER_CALLBACKS CallBacks,IN PVOID LazyWriterContext)
44 {
45         g_return_if_fail(FileObject!=NULL);
46         g_return_if_fail(FileSizes!=NULL);
47         g_return_if_fail(CallBacks!=NULL);
48
49         /* NOP */
50 }