2002-04-30 Dick Porter <dick@ximian.com>
[mono.git] / mono / io-layer / shared.h
1 #ifndef _WAPI_SHARED_H_
2 #define _WAPI_SHARED_H_
3
4 struct _WapiScratchHeader 
5 {
6         /* These two can be merged */
7         guint32 flags;
8         guint32 length;
9 };
10
11 enum {
12         WAPI_SHM_SCRATCH_FREE=0x1,
13 };
14
15 extern gpointer _wapi_shm_attach (guint32 *scratch_size);
16 extern void _wapi_shm_destroy (void);
17
18 extern guint32 _wapi_shm_scratch_store (guchar *storage, gconstpointer data,
19                                         guint32 len);
20 extern guchar *_wapi_shm_scratch_lookup_as_string (guchar *storage,
21                                                    guint32 idx);
22 extern void _wapi_shm_scratch_delete (guchar *storage, guint32 idx);
23
24 #endif /* _WAPI_SHARED_H_ */