ReactOS 0.4.15-dev-8339-g4028de8
hidparse.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Universal Serial Bus Bulk Enhanced Host Controller Interface
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: drivers/usb/hidparse/hidparse.c
5 * PURPOSE: HID Parser
6 * PROGRAMMERS:
7 * Michael Martin (michael.martin@reactos.org)
8 * Johannes Anderwald (johannes.anderwald@reactos.org)
9 */
10
11#include "hidparse.h"
12#include "hidp.h"
13
14#define NDEBUG
15#include <debug.h>
16
21{
23 if (Item)
24 {
25 //
26 // zero item
27 //
29 }
30
31 //
32 // done
33 //
34 return Item;
35}
36
37VOID
41{
42 //
43 // free item
44 //
46}
47
48VOID
53{
54 //
55 // zero item
56 //
58}
59
60VOID
66{
67 //
68 // copy item
69 //
71}
72
73VOID
76 IN LPCSTR FormatStr, ...)
77{
78#if HID_DBG
80 char printbuffer[1024];
81
82 va_start(args, FormatStr);
83 vsprintf(printbuffer, FormatStr, args);
84 va_end(args);
85
86 DbgPrint(printbuffer);
87#endif
88}
89
94 IN PUNICODE_STRING RegPath)
95{
96 DPRINT("********* HID PARSE *********\n");
97 return STATUS_SUCCESS;
98}
#define __cdecl
Definition: accygwin.h:79
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
LONG NTSTATUS
Definition: precomp.h:26
DRIVER_INITIALIZE DriverEntry
Definition: condrv.c:21
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
#define NonPagedPool
Definition: env_spec_w32.h:307
#define DbgPrint
Definition: hal.h:12
VOID NTAPI ZeroFunction(IN PVOID Item, IN ULONG ItemSize)
Definition: hidparse.c:50
VOID __cdecl DebugFunction(IN LPCSTR FormatStr,...)
Definition: hidparse.c:75
PVOID NTAPI AllocFunction(IN ULONG ItemSize)
Definition: hidparse.c:19
VOID NTAPI FreeFunction(IN PVOID Item)
Definition: hidparse.c:39
#define HIDPARSE_TAG
Definition: hidparse.h:10
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
Definition: sprintf.c:733
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1109
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
Definition: ndis.h:3169
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
static UCHAR ItemSize[4]
Definition: parser.c:16
#define args
Definition: format.c:66
#define STATUS_SUCCESS
Definition: shellext.h:65
#define DPRINT
Definition: sndvol32.h:73
Definition: match.c:390
#define NTAPI
Definition: typedefs.h:36
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
_In_ WDFIOTARGET Target
Definition: wdfrequest.h:306
_Inout_ PSIZE_T _In_opt_ PMDLX _In_ MM_ROTATE_DIRECTION _In_ PMM_ROTATE_COPY_CALLBACK_FUNCTION CopyFunction
Definition: mmfuncs.h:775
const char * LPCSTR
Definition: xmlstorage.h:183