2004-04-13 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / io-layer / shared.h
index 08dc47c9bb5671c8c01124bc0ea756158bfc5e82..17dbfe6043882aa47a53938bd1388d740f3673e8 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef _WAPI_SHARED_H_
 #define _WAPI_SHARED_H_
 
+#include <mono/io-layer/wapi-private.h>
+
 struct _WapiScratchHeader 
 {
        /* These two can be merged */
@@ -21,9 +23,19 @@ enum {
        WAPI_SHM_SCRATCH_FREE=0x1,
 };
 
-#define _WAPI_SHM_SCRATCH_SIZE 409600
+typedef enum {
+       WAPI_SHM_DATA,
+       WAPI_SHM_SCRATCH
+} _wapi_shm_t;
 
-extern gpointer _wapi_shm_attach (gboolean *success);
+extern guchar *_wapi_shm_file (_wapi_shm_t type, guint32 segment);
+extern gpointer _wapi_shm_file_map (_wapi_shm_t type, guint32 segment,
+                                   gboolean *created, off_t *size);
+extern gpointer _wapi_shm_file_expand (gpointer mem, _wapi_shm_t type,
+                                      guint32 segment, guint32 old_len,
+                                      guint32 new_len);
+extern gboolean _wapi_shm_attach (struct _WapiHandleShared_list **data,
+                                 struct _WapiHandleScratch **scratch);
 extern void _wapi_shm_destroy (void);
 
 #endif /* _WAPI_SHARED_H_ */