grammar updates
[mono.git] / mono / io-layer / shared.h
index c2e52046e5dcc04f717f2d7079b6170a1f21ee51..17dbfe6043882aa47a53938bd1388d740f3673e8 100644 (file)
@@ -1,6 +1,17 @@
+/*
+ * shared.h:  Shared memory handle, and daemon launching
+ *
+ * Author:
+ *     Dick Porter (dick@ximian.com)
+ *
+ * (C) 2002 Ximian, Inc.
+ */
+
 #ifndef _WAPI_SHARED_H_
 #define _WAPI_SHARED_H_
 
+#include <mono/io-layer/wapi-private.h>
+
 struct _WapiScratchHeader 
 {
        /* These two can be merged */
@@ -12,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 daemon);
+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_ */