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
05acaeb0
Commit
05acaeb0
authored
Oct 16, 2009
by
Charles Davis
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement DVD_StartSession() on Mac OS.
parent
cbcf6998
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
cdrom.c
dlls/ntdll/cdrom.c
+15
-0
No files found.
dlls/ntdll/cdrom.c
View file @
05acaeb0
...
...
@@ -81,6 +81,7 @@
# include <IOKit/IOKitLib.h>
# include <IOKit/storage/IOMedia.h>
# include <IOKit/storage/IOCDMediaBSDClient.h>
# include <IOKit/storage/IODVDMediaBSDClient.h>
# include <IOKit/scsi/SCSICmds_REQUEST_SENSE_Defs.h>
# define SENSEBUFLEN kSenseDefaultSize
#endif
...
...
@@ -1939,6 +1940,20 @@ static NTSTATUS DVD_StartSession(int fd, const DVD_SESSION_ID *sid_in, PDVD_SESS
return
ret
;
#elif defined(__FreeBSD__) || defined(__NetBSD__)
return
STATUS_NOT_SUPPORTED
;
#elif defined(__APPLE__)
NTSTATUS
ret
=
STATUS_NOT_SUPPORTED
;
dk_dvd_report_key_t
dvdrk
;
DVDAuthenticationGrantIDInfo
agid_info
;
dvdrk
.
format
=
kDVDKeyFormatAGID_CSS
;
dvdrk
.
keyClass
=
kDVDKeyClassCSS_CPPM_CPRM
;
if
(
sid_in
)
dvdrk
.
grantID
=
*
(
uint8_t
*
)
sid_in
;
/* ? */
dvdrk
.
bufferLength
=
sizeof
(
DVDAuthenticationGrantIDInfo
);
dvdrk
.
buffer
=
&
agid_info
;
ret
=
CDROM_GetStatusCode
(
ioctl
(
fd
,
DKIOCDVDREPORTKEY
,
&
dvdrk
));
*
sid_out
=
agid_info
.
grantID
;
return
ret
;
#else
return
STATUS_NOT_SUPPORTED
;
#endif
...
...
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