1 /*
2  * COPYRIGHT:       See COPYING in the top level directory
3  * PROJECT:         ReactOS Kernel Streaming
4  * FILE:            drivers/wdm/audio/backpln/portcls/drm.cpp
5  * PURPOSE:         portcls drm functions
6  * PROGRAMMER:      Andrew Greenwood
7  */
8 
9 #include "private.hpp"
10 
11 #ifndef YDEBUG
12 #define NDEBUG
13 #endif
14 
15 #include <debug.h>
16 
17 NTSTATUS
18 NTAPI
19 PcAddContentHandlers(
20     IN  ULONG ContentId,
21     IN  PVOID *paHandlers,
22     IN  ULONG NumHandlers)
23 {
24     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
25     return DrmAddContentHandlers(ContentId, paHandlers, NumHandlers);
26 }
27 
28 NTSTATUS
29 NTAPI
30 PcCreateContentMixed(
31     IN  PULONG paContentId,
32     IN  ULONG cContentId,
33     OUT PULONG pMixedContentId)
34 {
35     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
36     return DrmCreateContentMixed(paContentId, cContentId, pMixedContentId);
37 }
38 
39 NTSTATUS
40 NTAPI
41 PcDestroyContent(
42     IN  ULONG ContentId)
43 {
44     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
45     return DrmDestroyContent(ContentId);
46 }
47 
48 NTSTATUS
49 NTAPI
50 PcForwardContentToDeviceObject(
51     IN  ULONG ContentId,
52     IN  PVOID Reserved,
53     IN  PCDRMFORWARD DrmForward)
54 {
55     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
56     return DrmForwardContentToDeviceObject(ContentId, Reserved, DrmForward);
57 }
58 
59 NTSTATUS
60 NTAPI
61 PcForwardContentToFileObject(
62     IN  ULONG ContentId,
63     IN  PFILE_OBJECT FileObject)
64 {
65     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
66     return DrmForwardContentToFileObject(ContentId, FileObject);
67 }
68 
69 NTSTATUS
70 NTAPI
71 PcForwardContentToInterface(
72     IN  ULONG ContentId,
73     IN  PUNKNOWN pUnknown,
74     IN  ULONG NumMethods)
75 {
76     return DrmForwardContentToInterface(ContentId, pUnknown, NumMethods);
77 }
78 
79 NTSTATUS
80 NTAPI
81 PcGetContentRights(
82     IN  ULONG ContentId,
83     OUT PDRMRIGHTS DrmRights)
84 {
85     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
86     return DrmGetContentRights(ContentId, DrmRights);
87 }
88