+/*
+ * io-private.h: Private definitions for file, console and find handles
+ *
+ * Author:
+ * Dick Porter (dick@ximian.com)
+ *
+ * (C) 2002 Ximian, Inc.
+ */
+
#ifndef _WAPI_IO_PRIVATE_H_
#define _WAPI_IO_PRIVATE_H_
#include <glib.h>
#include <glob.h>
-/* Currently used for both FILE and CONSOLE handle types. This may
+extern struct _WapiHandleOps _wapi_file_ops;
+extern struct _WapiHandleOps _wapi_console_ops;
+extern struct _WapiHandleOps _wapi_find_ops;
+extern struct _WapiHandleOps _wapi_pipe_ops;
+
+/* Currently used for both FILE, CONSOLE and PIPE handle types. This may
* have to change in future.
*/
struct _WapiHandle_file
guint32 attrs;
};
+/* The boolean is for distinguishing between a zeroed struct being not
+ * as yet assigned, and one containing a valid fd 0
+ */
struct _WapiHandlePrivate_file
{
int fd;
+ gboolean assigned;
};
struct _WapiHandle_find
int dummy;
};
+extern int _wapi_file_handle_to_fd (gpointer handle);
#endif /* _WAPI_IO_PRIVATE_H_ */