[io-layer] Allocate WapiHandle specific data on the heap
[mono.git] / mono / io-layer / semaphore-private.h
index 8414f4e9205266daca7305346e1f59a15f6ddd93..c5ff5df07f1768e49e45772d8171e5906563bf1e 100644 (file)
 #include <config.h>
 #include <glib.h>
 
-extern struct _WapiHandleOps _wapi_sem_ops;
-extern struct _WapiHandleOps _wapi_namedsem_ops;
-
-extern void _wapi_sem_details (gpointer handle_info);
+#include "wapi-private.h"
+#include "handles-private.h"
 
 /* emulate sem_t, so that we can prod the internal state more easily */
 struct _WapiHandle_sem
@@ -27,9 +25,11 @@ struct _WapiHandle_sem
 
 struct _WapiHandle_namedsem
 {
+       struct _WapiHandle_sem s;
        WapiSharedNamespace sharedns;
-       guint32 val;
-       gint32 max;
 };
 
+void
+_wapi_semaphore_init (void);
+
 #endif /* _WAPI_SEMAPHORE_PRIVATE_H_ */