summaryrefslogtreecommitdiff
path: root/open-vm-tools/modules/linux/vsock/linux/vmci_sockets_int.h
blob: 4c5d9904db321349ec98301b604b994759b7dc40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*********************************************************
 * Copyright (C) 2009 VMware, Inc. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation version 2 and no later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 *
 *********************************************************/

/*
 * vmci_sockets_int.h --
 *
 *    VMCI sockets private constants and types.
 *
 *    This file is internal only, we do not ship the kernel interface yet.
 *    You need to include this file *before* vmci_sockets.h in your kernel
 *    module.
 */

#ifndef _VMCI_SOCKETS_INT_H_
#define _VMCI_SOCKETS_INT_H_


#if defined(_WIN32)
#  if defined(NT_INCLUDED)
#     if (_WIN32_WINNT < 0x0600)
         /*
          * WinSockKernel is targetted at Vista and later.  We want to allow
          * drivers built from W2K onwards to work with the interface, so we
          * need to define some missing types before we bring in the WSK header.
          */
         typedef unsigned short u_short;
#        include <windef.h>
#        include <ws2def.h>
         typedef WSACMSGHDR CMSGHDR, *PCMSGHDR;
#     endif // (_WIN32_WINNT < 0x0600)
#     include <wsk.h>
      NTSTATUS VMCISock_WskRegister(PWSK_CLIENT_NPI wskClientNpi,
                                    PWSK_REGISTRATION wskRegistration);
      NTSTATUS VMCISock_WskDeregister(PWSK_REGISTRATION wskRegistration);
      NTSTATUS VMCISock_WskCaptureProviderNPI(PWSK_REGISTRATION wskRegistration,
                                              ULONG waitTimeout,
                                              PWSK_PROVIDER_NPI wskProviderNpi);
      NTSTATUS VMCISock_WskReleaseProviderNPI(PWSK_REGISTRATION wskRegistration);
      NTSTATUS VMCISock_WskGetAFValue(PWSK_CLIENT wskClient, PIRP irp);
      NTSTATUS VMCISock_WskGetLocalCID(PWSK_CLIENT wskClient, PIRP irp);
#  endif // NT_INCLUDED
#endif // _WIN32


#endif // _VMCI_SOCKETS_INT_H_