fixed difference in signedness warning
[reactos.git] / reactos / drivers / multimedia / ks / stubs.c
1 #include "ks.h"
2
3
4 typedef struct _KSDEVICE_DESCRIPTOR
5 {
6 } KSDEVICE_DESCRIPTOR, *PKSDEVICE_DESCRIPTOR;
7
8 typedef struct _KSDEVICE
9 {
10 } KSDEVICE, *PKSDEVICE;
11
12
13 NTSTATUS
14 KsAddDevice(
15 IN PDRIVER_OBJECT DriverObject,
16 IN PDEVICE_OBJECT PhysicalDeviceObject)
17 {
18 /* KsCreateDevice(DriverObject, PhysicalDeviceObject, ...); */
19
20 return STATUS_NOT_IMPLEMENTED;
21 }
22
23
24
25 NTSTATUS
26 KsInitializeDriver(
27 IN PDRIVER_OBJECT DriverObject,
28 IN PUNICODE_STRING RegistryPath,
29 IN const KSDEVICE_DESCRIPTOR* Descriptor OPTIONAL)
30 {
31 return STATUS_NOT_IMPLEMENTED;
32 }
33
34 NTSTATUS
35 KsInitializeDevice(
36 IN PDEVICE_OBJECT FunctionalDeviceObject,
37 IN PDEVICE_OBJECT PhysicalDeviceObject,
38 IN PDEVICE_OBJECT NextDeviceObject,
39 IN const KSDEVICE_DESCRIPTOR* Descriptor OPTIONAL)
40 {
41 return STATUS_NOT_IMPLEMENTED;
42 }
43
44
45 NTSTATUS
46 KsCreateDevice(
47 IN PDRIVER_OBJECT DriverObject,
48 IN PDEVICE_OBJECT PhysicalDeviceObject,
49 IN const KSDEVICE_DESCRIPTOR* Descriptor OPTIONAL,
50 IN ULONG ExtensionSize OPTIONAL,
51 OUT PKSDEVICE* Device OPTIONAL)
52 {
53 return STATUS_NOT_IMPLEMENTED;
54 }
55
56
57 NTSTATUS
58 KsTerminateDevice(
59 IN PDEVICE_OBJECT DeviceObject)
60 {
61 return STATUS_NOT_IMPLEMENTED;
62 }
63
64
65
66 VOID
67 KsAcquireDevice(
68 IN PKSDEVICE Device)
69 {
70 /* Acquire device mutex */
71 }
72
73 VOID
74 KsReleaseDevice(
75 IN PKSDEVICE Device)
76 {
77 /* Releases device mutex and exits critical region */
78 }
79
80 VOID
81 KsAcquireControl(
82 IN PVOID Object)
83 {
84 /* Acquire filter control mutex for Object */
85 /* Object should be pointed to a KSFILTER or KSPIN */
86 }
87
88
89 PKSDEVICE
90 KsGetDevice(
91 IN PVOID Object)
92 {
93 /* ? */
94 return 0;
95 }
96
97 // inline
98 /*
99 PKSDEVICE __inline
100 KsFilterGetDevice(
101 IN PKSFILTER Filter)
102 {
103 return KsGetDevice((PVOID) Filter);
104 }
105
106 PKSDEVICE __inline
107 KsPinGetDevice(
108 IN PKSPIN Pin)
109 {
110 return KsGetDevice((PVOID) Pin);
111 }
112 */