aboutsummaryrefslogtreecommitdiff
path: root/src/platform/windows/win_impl.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-10 15:02:38 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-10 15:02:38 -0700
commit795aebbee77bb74d8792df96dfe1aa79ec9548fc (patch)
tree58c16424c16b9e71cebdceaee4507ab6608f80da /src/platform/windows/win_impl.h
parentde90f97167d2df6739db47b2c6aad85f06250270 (diff)
downloadnng-795aebbee77bb74d8792df96dfe1aa79ec9548fc.tar.gz
nng-795aebbee77bb74d8792df96dfe1aa79ec9548fc.tar.bz2
nng-795aebbee77bb74d8792df96dfe1aa79ec9548fc.zip
Give up on uncrustify; switch to clang-format.
Diffstat (limited to 'src/platform/windows/win_impl.h')
-rw-r--r--src/platform/windows/win_impl.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/platform/windows/win_impl.h b/src/platform/windows/win_impl.h
index 6ce38250..234acc35 100644
--- a/src/platform/windows/win_impl.h
+++ b/src/platform/windows/win_impl.h
@@ -16,10 +16,10 @@
#define WIN32_LEAN_AND_MEAN
#endif
-#include <windows.h>
-#include <winsock2.h>
#include <mswsock.h>
#include <process.h>
+#include <windows.h>
+#include <winsock2.h>
#include <ws2tcpip.h>
#include "core/list.h"
@@ -27,7 +27,7 @@
// These types are provided for here, to permit them to be directly inlined
// elsewhere.
-typedef struct nni_win_event nni_win_event;
+typedef struct nni_win_event nni_win_event;
// nni_win_event is used with io completion ports. This allows us to get
// to a specific completion callback without requiring the poller (in the
@@ -35,50 +35,50 @@ typedef struct nni_win_event nni_win_event;
// this to pass back status and counts to the routine, which may not be
// conveyed in the OVERLAPPED directly.
struct nni_win_event {
- OVERLAPPED olpd;
- HANDLE h;
- void * ptr;
- nni_cb cb;
- nni_list aios;
+ OVERLAPPED olpd;
+ HANDLE h;
+ void * ptr;
+ nni_cb cb;
+ nni_list aios;
};
struct nni_plat_thr {
- void (*func)(void *);
- void * arg;
- HANDLE handle;
+ void (*func)(void *);
+ void * arg;
+ HANDLE handle;
};
struct nni_plat_mtx {
SRWLOCK srl;
- DWORD owner;
- int init;
+ DWORD owner;
+ int init;
};
struct nni_plat_cv {
- CONDITION_VARIABLE cv;
- PSRWLOCK srl;
+ CONDITION_VARIABLE cv;
+ PSRWLOCK srl;
};
extern int nni_win_error(int);
extern int nni_winsock_error(int);
-extern int nni_win_event_init(nni_win_event *, nni_cb, void *, HANDLE);
-extern void nni_win_event_fini(nni_win_event *);
-extern int nni_win_event_reset(nni_win_event *);
+extern int nni_win_event_init(nni_win_event *, nni_cb, void *, HANDLE);
+extern void nni_win_event_fini(nni_win_event *);
+extern int nni_win_event_reset(nni_win_event *);
extern OVERLAPPED *nni_win_event_overlapped(nni_win_event *);
-extern void nni_win_event_cancel(nni_win_event *);
+extern void nni_win_event_cancel(nni_win_event *);
extern int nni_win_iocp_register(HANDLE);
-extern int nni_win_iocp_sysinit(void);
+extern int nni_win_iocp_sysinit(void);
extern void nni_win_iocp_sysfini(void);
-extern int nni_win_ipc_sysinit(void);
+extern int nni_win_ipc_sysinit(void);
extern void nni_win_ipc_sysfini(void);
-extern int nni_win_resolv_sysinit(void);
+extern int nni_win_resolv_sysinit(void);
extern void nni_win_resolv_sysfini(void);
-#endif // PLATFORM_WINDOWS
+#endif // PLATFORM_WINDOWS
-#endif // PLATFORM_WIN_IMPL_H
+#endif // PLATFORM_WIN_IMPL_H