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 #define NDEBUG
12 #include <debug.h>
13 
14 NTSTATUS
15 NTAPI
16 PcAddContentHandlers(
17     IN  ULONG ContentId,
18     IN  PVOID *paHandlers,
19     IN  ULONG NumHandlers)
20 {
21     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
22     return DrmAddContentHandlers(ContentId, paHandlers, NumHandlers);
23 }
24 
25 NTSTATUS
26 NTAPI
27 PcCreateContentMixed(
28     IN  PULONG paContentId,
29     IN  ULONG cContentId,
30     OUT PULONG pMixedContentId)
31 {
32     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
33     return DrmCreateContentMixed(paContentId, cContentId, pMixedContentId);
34 }
35 
36 NTSTATUS
37 NTAPI
38 PcDestroyContent(
39     IN  ULONG ContentId)
40 {
41     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
42     return DrmDestroyContent(ContentId);
43 }
44 
45 NTSTATUS
46 NTAPI
47 PcForwardContentToDeviceObject(
48     IN  ULONG ContentId,
49     IN  PVOID Reserved,
50     IN  PCDRMFORWARD DrmForward)
51 {
52     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
53     return DrmForwardContentToDeviceObject(ContentId, Reserved, DrmForward);
54 }
55 
56 NTSTATUS
57 NTAPI
58 PcForwardContentToFileObject(
59     IN  ULONG ContentId,
60     IN  PFILE_OBJECT FileObject)
61 {
62     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
63     return DrmForwardContentToFileObject(ContentId, FileObject);
64 }
65 
66 NTSTATUS
67 NTAPI
68 PcForwardContentToInterface(
69     IN  ULONG ContentId,
70     IN  PUNKNOWN pUnknown,
71     IN  ULONG NumMethods)
72 {
73     return DrmForwardContentToInterface(ContentId, pUnknown, NumMethods);
74 }
75 
76 NTSTATUS
77 NTAPI
78 PcGetContentRights(
79     IN  ULONG ContentId,
80     OUT PDRMRIGHTS DrmRights)
81 {
82     PC_ASSERT_IRQL_EQUAL(PASSIVE_LEVEL);
83     return DrmGetContentRights(ContentId, DrmRights);
84 }
85