+CcInitializeCacheMap()
authorshort <>
Sun, 10 Nov 2002 20:57:51 +0000 (20:57 +0000)
committershort <>
Sun, 10 Nov 2002 20:57:51 +0000 (20:57 +0000)
src/libcaptive/cc/init.c [new file with mode: 0644]
src/libcaptive/ke/exports.def

diff --git a/src/libcaptive/cc/init.c b/src/libcaptive/cc/init.c
new file mode 100644 (file)
index 0000000..9d26bc0
--- /dev/null
@@ -0,0 +1,50 @@
+/* $Id$
+ * reactos readahead/writebehing emulation of libcaptive
+ * Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; exactly version 2 of June 1991 is required
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+
+#include "config.h"
+
+#include "reactos/ddk/ccfuncs.h"       /* self */
+#include <glib/gmessages.h>
+
+
+/**
+ * CcInitializeCacheMap:
+ * @FileObject: Existing file to set callbacks for. Ignored by libcaptive.
+ * %NULL value is forbidden.
+ * @FileSizes: Some file sizes suggestions. Ignored by libcaptive.
+ * %NULL value is forbidden.
+ * @PinAccess: CcPin*() functions will be used with @FileObject? Ignored by libcaptive.
+ * @CallBacks: Provided callback functions for readahead/writebehind. Ignored by libcaptive.
+ * %NULL value is forbidden.
+ * @LazyWriterContext: Value passed to functions of @CallBacks to bind with @FileObject.
+ * %NULL value is permitted.
+ *
+ * Provides support of readahead/writebeing in W32. Function should be called
+ * by W32 filesystem to offer its functions to W32 kernel. These functions
+ * are never called by libcaptive, this call is a NOP in libcaptive.
+ */
+VOID CcInitializeCacheMap(IN PFILE_OBJECT FileObject,
+               IN PCC_FILE_SIZES FileSizes,IN BOOLEAN PinAccess,IN PCACHE_MANAGER_CALLBACKS CallBacks,IN PVOID LazyWriterContext)
+{
+       g_return_if_fail(FileObject!=NULL);
+       g_return_if_fail(FileSizes!=NULL);
+       g_return_if_fail(CallBacks!=NULL);
+
+       /* NOP */
+}
index c856cef..24d58d5 100644 (file)
@@ -24,3 +24,4 @@ RtlLookupElementGenericTable@8
 RtlEnumerateGenericTableWithoutSplaying@8
 RtlInitializeGenericTable@20
 RtlDeleteElementGenericTable@8
+CcInitializeCacheMap@20