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
0ce5ab71
Commit
0ce5ab71
authored
Jun 06, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Get rid of base IDispatch implementation.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ea0dfa79
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
63 deletions
+2
-63
dispatch.c
dlls/strmbase/dispatch.c
+2
-51
strmbase_private.h
dlls/strmbase/strmbase_private.h
+0
-8
strmbase.h
include/wine/strmbase.h
+0
-4
No files found.
dlls/strmbase/dispatch.c
View file @
0ce5ab71
/*
*
Generic Implementation of IDispatch for strmbase classes
*
ITypeInfo cache for IDispatch
*
* Copyright 201
2 Aric Stewart, CodeWeavers
* Copyright 201
9 Zebediah Figura
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -68,52 +68,3 @@ HRESULT strmbase_get_typeinfo(enum strmbase_type_id tid, ITypeInfo **ret)
ITypeInfo_AddRef
(
*
ret
=
control_typeinfo
[
tid
]);
return
S_OK
;
}
HRESULT
WINAPI
BaseDispatch_Init
(
BaseDispatch
*
This
,
REFIID
riid
)
{
ITypeLib
*
pTypeLib
;
HRESULT
hr
;
This
->
pTypeInfo
=
NULL
;
hr
=
LoadRegTypeLib
(
&
LIBID_QuartzTypeLib
,
1
,
0
,
LOCALE_SYSTEM_DEFAULT
,
&
pTypeLib
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ITypeLib_GetTypeInfoOfGuid
(
pTypeLib
,
riid
,
&
This
->
pTypeInfo
);
ITypeLib_Release
(
pTypeLib
);
}
return
hr
;
}
HRESULT
WINAPI
BaseDispatch_Destroy
(
BaseDispatch
*
This
)
{
if
(
This
->
pTypeInfo
)
ITypeInfo_Release
(
This
->
pTypeInfo
);
return
S_OK
;
}
HRESULT
WINAPI
BaseDispatchImpl_GetIDsOfNames
(
BaseDispatch
*
This
,
REFIID
riid
,
OLECHAR
**
rgszNames
,
UINT
cNames
,
LCID
lcid
,
DISPID
*
rgdispid
)
{
if
(
This
->
pTypeInfo
)
return
ITypeInfo_GetIDsOfNames
(
This
->
pTypeInfo
,
rgszNames
,
cNames
,
rgdispid
);
return
E_NOTIMPL
;
}
HRESULT
WINAPI
BaseDispatchImpl_GetTypeInfo
(
BaseDispatch
*
This
,
REFIID
riid
,
UINT
itinfo
,
LCID
lcid
,
ITypeInfo
**
pptinfo
)
{
if
(
This
->
pTypeInfo
)
{
ITypeInfo_AddRef
(
This
->
pTypeInfo
);
*
pptinfo
=
This
->
pTypeInfo
;
return
S_OK
;
}
return
E_NOTIMPL
;
}
HRESULT
WINAPI
BaseDispatchImpl_GetTypeInfoCount
(
BaseDispatch
*
This
,
UINT
*
pctinfo
)
{
if
(
This
->
pTypeInfo
)
*
pctinfo
=
1
;
else
*
pctinfo
=
0
;
return
S_OK
;
}
dlls/strmbase/strmbase_private.h
View file @
0ce5ab71
...
...
@@ -70,12 +70,4 @@ HRESULT WINAPI RendererPosPassThru_RegisterMediaTime(IUnknown *iface, REFERENCE_
HRESULT
WINAPI
RendererPosPassThru_ResetMediaTime
(
IUnknown
*
iface
);
HRESULT
WINAPI
RendererPosPassThru_EOS
(
IUnknown
*
iface
);
HRESULT
WINAPI
BaseDispatch_Init
(
BaseDispatch
*
disp
,
REFIID
iid
);
HRESULT
WINAPI
BaseDispatch_Destroy
(
BaseDispatch
*
disp
);
HRESULT
WINAPI
BaseDispatchImpl_GetIDsOfNames
(
BaseDispatch
*
disp
,
REFIID
iid
,
WCHAR
**
names
,
UINT
count
,
LCID
lcid
,
DISPID
*
ids
);
HRESULT
WINAPI
BaseDispatchImpl_GetTypeInfo
(
BaseDispatch
*
disp
,
REFIID
iid
,
UINT
index
,
LCID
lcid
,
ITypeInfo
**
typeinfo
);
HRESULT
WINAPI
BaseDispatchImpl_GetTypeInfoCount
(
BaseDispatch
*
disp
,
UINT
*
count
);
#endif
/* __WINE_STRMBASE_PRIVATE_H */
include/wine/strmbase.h
View file @
0ce5ab71
...
...
@@ -412,10 +412,6 @@ enum strmbase_type_id
HRESULT
strmbase_get_typeinfo
(
enum
strmbase_type_id
tid
,
ITypeInfo
**
typeinfo
);
typedef
struct
{
ITypeInfo
*
pTypeInfo
;
}
BaseDispatch
;
#ifdef __IVideoWindow_FWD_DEFINED__
typedef
struct
tagBaseControlWindow
{
...
...
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