[io-layer] Allocate WapiHandle specific data on the heap
[mono.git] / mono / io-layer / semaphore-private.h
index eb1159871acca0b23a71d859f2ab3f06d4d7769f..c5ff5df07f1768e49e45772d8171e5906563bf1e 100644 (file)
@@ -1,9 +1,21 @@
+/*
+ * semaphore-private.h:  Private definitions for semaphore handles
+ *
+ * Author:
+ *     Dick Porter (dick@ximian.com)
+ *
+ * (C) 2002 Ximian, Inc.
+ */
+
 #ifndef _WAPI_SEMAPHORE_PRIVATE_H_
 #define _WAPI_SEMAPHORE_PRIVATE_H_
 
 #include <config.h>
 #include <glib.h>
 
+#include "wapi-private.h"
+#include "handles-private.h"
+
 /* emulate sem_t, so that we can prod the internal state more easily */
 struct _WapiHandle_sem
 {
@@ -11,9 +23,13 @@ struct _WapiHandle_sem
        gint32 max;
 };
 
-struct _WapiHandlePrivate_sem
+struct _WapiHandle_namedsem
 {
-       int dummy;
+       struct _WapiHandle_sem s;
+       WapiSharedNamespace sharedns;
 };
 
+void
+_wapi_semaphore_init (void);
+
 #endif /* _WAPI_SEMAPHORE_PRIVATE_H_ */