[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13234 - in gnunet/src: include util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13234 - in gnunet/src: include util |
Date: |
Fri, 8 Oct 2010 16:57:40 +0200 |
Author: grothoff
Date: 2010-10-08 16:57:40 +0200 (Fri, 08 Oct 2010)
New Revision: 13234
Modified:
gnunet/src/include/gnunet_network_lib.h
gnunet/src/util/network.c
Log:
for w32 port
Modified: gnunet/src/include/gnunet_network_lib.h
===================================================================
--- gnunet/src/include/gnunet_network_lib.h 2010-10-08 14:57:22 UTC (rev
13233)
+++ gnunet/src/include/gnunet_network_lib.h 2010-10-08 14:57:40 UTC (rev
13234)
@@ -271,7 +271,20 @@
const struct GNUNET_NETWORK_Handle *desc);
+#ifdef __MINGW32__
+/* TODO: maybe #ifdef WINDOWS? -ndurner */
/**
+ * Add a W32 file handle to the fd set
+ * @param fds fd set
+ * @param h the file handle to add
+ */
+void
+GNUNET_NETWORK_fdset_handle_set_native_w32_handle (struct GNUNET_NETWORK_FDSet
*fds,
+ HANDLE h);
+#endif
+
+
+/**
* Check whether a socket is part of the fd set
* @param fds fd set
* @param desc socket
Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c 2010-10-08 14:57:22 UTC (rev 13233)
+++ gnunet/src/util/network.c 2010-10-08 14:57:40 UTC (rev 13234)
@@ -852,7 +852,24 @@
}
+#if MINGW
/**
+ * Add a W32 file handle to the fd set
+ * @param fds fd set
+ * @param h the file handle to add
+ */
+void
+GNUNET_NETWORK_fdset_handle_set_native_w32_handle (struct GNUNET_NETWORK_FDSet
*fds,
+ HANDLE h)
+{
+ GNUNET_CONTAINER_slist_add (fds->handles,
+ GNUNET_CONTAINER_SLIST_DISPOSITION_TRANSIENT,
+ &h, sizeof (HANDLE));
+}
+#endif
+
+
+/**
* Check if a file handle is part of an fd set
* @param fds fd set
* @param h file handle
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13234 - in gnunet/src: include util,
gnunet <=