OSDN Git Service

enable command notify on x64
[yamy/yamy.git] / d / log.h
1 #ifndef _LOG_H\r
2 #define _LOG_H\r
3 \r
4 #if DBG\r
5 \r
6 // Initiallize logging queue and enqueue "message" as\r
7 // first log.\r
8 void mayuLogInit(const char *message);\r
9 \r
10 // Finalize logging queue.\r
11 void mayuLogTerm(void);\r
12 \r
13 // Enqueue one message to loggin queue.\r
14 // Use printf like format to enqueue,\r
15 // following types are available.\r
16 // %x: (ULONG)unsigned long in hexadecimal\r
17 // %d: (ULONG)unsigned long in decimal\r
18 // %T: (PUNICODE)pointer to unicode string\r
19 // Notice: specifing minimal width such as "%2d"\r
20 //         is unavailable yet.\r
21 void mayuLogEnque(const char *fmt, ...);\r
22 \r
23 // Dequeue one message from logging queue to "irp".\r
24 NTSTATUS mayuLogDeque(PIRP irp);\r
25 \r
26 #endif // DBG\r
27 \r
28 #endif // !_LOG_H\r