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
0cea9696
Commit
0cea9696
authored
Oct 29, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Add some stubs for IDXGIAdapter.
parent
913373d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
154 additions
and
0 deletions
+154
-0
Makefile.in
dlls/dxgi/Makefile.in
+1
-0
adapter.c
dlls/dxgi/adapter.c
+145
-0
dxgi_private.h
dlls/dxgi/dxgi_private.h
+8
-0
No files found.
dlls/dxgi/Makefile.in
View file @
0cea9696
...
...
@@ -7,6 +7,7 @@ IMPORTLIB = dxgi
IMPORTS
=
dxguid uuid kernel32
C_SRCS
=
\
adapter.c
\
device.c
\
dxgi_main.c
\
factory.c
\
...
...
dlls/dxgi/adapter.c
0 → 100644
View file @
0cea9696
/*
* Copyright 2008 Henri Verbeet for CodeWeavers
*
* 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
*
*/
#include "config.h"
#include "wine/port.h"
#include "dxgi_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dxgi
);
/* IUnknown methods */
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_QueryInterface
(
IDXGIAdapter
*
iface
,
REFIID
riid
,
void
**
object
)
{
TRACE
(
"iface %p, riid %s, object %p
\n
"
,
iface
,
debugstr_guid
(
riid
),
object
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDXGIObject
)
||
IsEqualGUID
(
riid
,
&
IID_IDXGIAdapter
))
{
IUnknown_AddRef
(
iface
);
*
object
=
iface
;
return
S_OK
;
}
WARN
(
"%s not implemented, returning E_NOINTERFACE
\n
"
,
debugstr_guid
(
riid
));
*
object
=
NULL
;
return
E_NOINTERFACE
;
}
static
ULONG
STDMETHODCALLTYPE
dxgi_adapter_AddRef
(
IDXGIAdapter
*
iface
)
{
struct
dxgi_adapter
*
This
=
(
struct
dxgi_adapter
*
)
iface
;
ULONG
refcount
=
InterlockedIncrement
(
&
This
->
refcount
);
TRACE
(
"%p increasing refcount to %u
\n
"
,
This
,
refcount
);
return
refcount
;
}
static
ULONG
STDMETHODCALLTYPE
dxgi_adapter_Release
(
IDXGIAdapter
*
iface
)
{
struct
dxgi_adapter
*
This
=
(
struct
dxgi_adapter
*
)
iface
;
ULONG
refcount
=
InterlockedDecrement
(
&
This
->
refcount
);
TRACE
(
"%p decreasing refcount to %u
\n
"
,
This
,
refcount
);
if
(
!
refcount
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
refcount
;
}
/* IDXGIObject methods */
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_SetPrivateData
(
IDXGIAdapter
*
iface
,
REFGUID
guid
,
UINT
data_size
,
const
void
*
data
)
{
FIXME
(
"iface %p, guid %s, data_size %u, data %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
return
E_NOTIMPL
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_SetPrivateDataInterface
(
IDXGIAdapter
*
iface
,
REFGUID
guid
,
const
IUnknown
*
object
)
{
FIXME
(
"iface %p, guid %s, object %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
object
);
return
E_NOTIMPL
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_GetPrivateData
(
IDXGIAdapter
*
iface
,
REFGUID
guid
,
UINT
*
data_size
,
void
*
data
)
{
FIXME
(
"iface %p, guid %s, data_size %p, data %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
data_size
,
data
);
return
E_NOTIMPL
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_GetParent
(
IDXGIAdapter
*
iface
,
REFIID
riid
,
void
**
parent
)
{
FIXME
(
"iface %p, riid %s, parent %p stub!
\n
"
,
iface
,
debugstr_guid
(
riid
),
parent
);
return
E_NOTIMPL
;
}
/* IDXGIAdapter methods */
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_EnumOutputs
(
IDXGIAdapter
*
iface
,
UINT
output_idx
,
IDXGIOutput
**
output
)
{
FIXME
(
"iface %p, output_idx %u, output %p stub!
\n
"
,
iface
,
output_idx
,
output
);
return
E_NOTIMPL
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_GetDesc
(
IDXGIAdapter
*
iface
,
DXGI_ADAPTER_DESC
*
desc
)
{
FIXME
(
"iface %p, desc %p stub!
\n
"
,
iface
,
desc
);
return
E_NOTIMPL
;
}
static
HRESULT
STDMETHODCALLTYPE
dxgi_adapter_CheckInterfaceSupport
(
IDXGIAdapter
*
iface
,
REFGUID
guid
,
LARGE_INTEGER
*
umd_version
)
{
FIXME
(
"iface %p, guid %s, umd_version %p stub!
\n
"
,
iface
,
debugstr_guid
(
guid
),
umd_version
);
return
E_NOTIMPL
;
}
const
struct
IDXGIAdapterVtbl
dxgi_adapter_vtbl
=
{
/* IUnknown methods */
dxgi_adapter_QueryInterface
,
dxgi_adapter_AddRef
,
dxgi_adapter_Release
,
/* IDXGIObject methods */
dxgi_adapter_SetPrivateData
,
dxgi_adapter_SetPrivateDataInterface
,
dxgi_adapter_GetPrivateData
,
dxgi_adapter_GetParent
,
/* IDXGIAdapter methods */
dxgi_adapter_EnumOutputs
,
dxgi_adapter_GetDesc
,
dxgi_adapter_CheckInterfaceSupport
,
};
dlls/dxgi/dxgi_private.h
View file @
0cea9696
...
...
@@ -47,4 +47,12 @@ struct dxgi_device
LONG
refcount
;
};
/* IDXGIAdapter */
extern
const
struct
IDXGIAdapterVtbl
dxgi_adapter_vtbl
;
struct
dxgi_adapter
{
const
struct
IDXGIAdapterVtbl
*
vtbl
;
LONG
refcount
;
};
#endif
/* __WINE_DXGI_PRIVATE_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