Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bfdf115c
Commit
bfdf115c
authored
Jun 25, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jun 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add netiodef.h.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
64ab9057
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
0 deletions
+61
-0
Makefile.in
include/Makefile.in
+1
-0
netiodef.h
include/netiodef.h
+60
-0
No files found.
include/Makefile.in
View file @
bfdf115c
...
@@ -524,6 +524,7 @@ SOURCES = \
...
@@ -524,6 +524,7 @@ SOURCES = \
netcon.idl
\
netcon.idl
\
netfw.idl
\
netfw.idl
\
netioapi.h
\
netioapi.h
\
netiodef.h
\
netlistmgr.idl
\
netlistmgr.idl
\
newdev.h
\
newdev.h
\
nldef.h
\
nldef.h
\
...
...
include/netiodef.h
0 → 100644
View file @
bfdf115c
/*
* Copyright 2021 Huw Davies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_NETIODEF_H
#define __WINE_NETIODEF_H
typedef
enum
_NPI_MODULEID_TYPE
{
MIT_GUID
=
1
,
MIT_IF_LUID
}
NPI_MODULEID_TYPE
;
typedef
struct
_NPI_MODULEID
{
USHORT
Length
;
NPI_MODULEID_TYPE
Type
;
union
{
GUID
Guid
;
LUID
IfLuid
;
};
}
NPI_MODULEID
;
typedef
const
NPI_MODULEID
*
PNPI_MODULEID
;
static
inline
BOOLEAN
NmrIsEqualNpiModuleId
(
const
NPI_MODULEID
*
mod1
,
const
NPI_MODULEID
*
mod2
)
{
if
(
mod1
->
Type
==
mod2
->
Type
)
{
if
(
mod1
->
Type
==
MIT_GUID
)
{
#ifdef __cplusplus
return
IsEqualGUID
(
mod1
->
Guid
,
mod2
->
Guid
);
#else
return
IsEqualGUID
(
&
mod1
->
Guid
,
&
mod2
->
Guid
);
#endif
}
else
if
(
mod1
->
Type
==
MIT_IF_LUID
)
return
mod1
->
IfLuid
.
HighPart
==
mod2
->
IfLuid
.
HighPart
&&
mod1
->
IfLuid
.
LowPart
==
mod2
->
IfLuid
.
LowPart
;
}
return
FALSE
;
}
#endif
/* __WINE_NETIODEF_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment