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
4948d343
Commit
4948d343
authored
May 18, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
May 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: Implement DataHGetFileSizeAsync.
parent
6bd29b28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
qtdatahandler.c
dlls/wineqtdecoder/qtdatahandler.c
+34
-1
No files found.
dlls/wineqtdecoder/qtdatahandler.c
View file @
4948d343
...
...
@@ -422,6 +422,33 @@ static pascal ComponentResult myDataHGetFileSize64(DataHandler dh, wide * fileSi
return
noErr
;
}
static
pascal
ComponentResult
myDataHGetFileSizeAsync
(
DataHandler
dh
,
wide
*
fileSize
,
DataHCompletionUPP
CompletionRtn
,
long
RefCon
)
{
Handle
storage
=
GetComponentInstanceStorage
(
dh
);
DHData
*
data
=
(
DHData
*
)
*
storage
;
LONGLONG
total
;
LONGLONG
avaliable
;
SInt64
total64
;
TRACE
(
"%p
\n
"
,
dh
);
IAsyncReader_Length
(
data
->
dataRef
.
pReader
,
&
total
,
&
avaliable
);
total64
=
total
;
*
fileSize
=
SInt64ToWide
(
total64
);
if
(
CompletionRtn
)
{
if
(
data
->
AsyncCompletionRtn
)
InvokeDataHCompletionUPP
(
data
->
AsyncPtr
,
data
->
AsyncRefCon
,
noErr
,
data
->
AsyncCompletionRtn
);
data
->
AsyncPtr
=
(
Ptr
)
fileSize
;
data
->
AsyncRefCon
=
RefCon
;
data
->
AsyncCompletionRtn
=
CompletionRtn
;
}
return
noErr
;
}
static
pascal
ComponentResult
myDataHGetAvailableFileSize64
(
DataHandler
dh
,
wide
*
fileSize
)
{
Handle
storage
=
GetComponentInstanceStorage
(
dh
);
...
...
@@ -610,7 +637,13 @@ static const struct { LPVOID proc; ProcInfoType type;} componentFunctions[] =
{
NULL
,
0
},
/* kDataHGetDataAvailabilitySelect */
{
NULL
,
0
},
/* 0x0038 */
{
NULL
,
0
},
/* 0x0039 */
{
NULL
,
0
},
/* kDataHGetFileSizeAsyncSelect */
{
myDataHGetFileSizeAsync
,
kPascalStackBased
|
RESULT_SIZE
(
SIZE_CODE
(
sizeof
(
ComponentResult
)))
|
STACK_ROUTINE_PARAMETER
(
1
,
SIZE_CODE
(
sizeof
(
DataHandler
)))
|
STACK_ROUTINE_PARAMETER
(
2
,
SIZE_CODE
(
sizeof
(
wide
*
)))
|
STACK_ROUTINE_PARAMETER
(
3
,
SIZE_CODE
(
sizeof
(
DataHCompletionUPP
)))
|
STACK_ROUTINE_PARAMETER
(
4
,
SIZE_CODE
(
sizeof
(
long
)))
},
/* kDataHGetFileSizeAsyncSelect */
{
NULL
,
0
},
/* kDataHGetDataRefAsTypeSelect */
{
NULL
,
0
},
/* kDataHSetDataRefExtensionSelect */
{
NULL
,
0
},
/* kDataHGetDataRefExtensionSelect */
...
...
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