glitch in the license text detected by hyazinthe, thank you!
[oweals/gnunet.git] / src / util / gnunet-helper-w32-console.h
1 /*
2      This file is part of GNUnet.
3      Copyright (C) 2014 GNUnet e.V.
4
5      GNUnet is free software: you can redistribute it and/or modify it
6      under the terms of the GNU Affero General Public License as published
7      by the Free Software Foundation, either version 3 of the License,
8      or (at your option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      Affero General Public License for more details.
14 */
15
16 /**
17  * @author LRN
18  * @file src/util/gnunet-helper-w32-console.h
19  */
20 #ifndef GNUNET_HELPER_W32_CONSOLE_H
21 #define GNUNET_HELPER_W32_CONSOLE_H
22
23 #include "platform.h"
24 #include "gnunet_crypto_lib.h"
25 #include "gnunet_common.h"
26
27 /**
28  * Input event from the console
29  */
30 #define GNUNET_MESSAGE_TYPE_W32_CONSOLE_HELPER_INPUT 60000
31
32 /**
33  * Chars from the console
34  */
35 #define GNUNET_MESSAGE_TYPE_W32_CONSOLE_HELPER_CHARS 60001
36
37 GNUNET_NETWORK_STRUCT_BEGIN
38
39 /**
40  * This is just a dump of the INPUT_RECORD structure.
41  */
42 struct GNUNET_W32_CONSOLE_input
43 {
44   /**
45    * Type:  GNUNET_MESSAGE_TYPE_W32_CONSOLE_HELPER_INPUT
46    */
47   struct GNUNET_MessageHeader header;
48
49   INPUT_RECORD input_record GNUNET_PACKED;
50 };
51
52 /**
53  * A header, followed by UTF8-encoded, 0-terminated string
54  */
55 struct GNUNET_W32_CONSOLE_chars
56 {
57   /**
58    * Type:  GNUNET_MESSAGE_TYPE_W32_CONSOLE_HELPER_CHARS
59    */
60   struct GNUNET_MessageHeader header;
61
62   /* followed by a string */
63 };
64
65 GNUNET_NETWORK_STRUCT_END
66
67 #endif