2 This file is part of GNUnet.
3 Copyright (C) 2014 GNUnet e.V.
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU 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.
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.
18 * @file src/util/gnunet-helper-w32-console.h
20 #ifndef GNUNET_HELPER_W32_CONSOLE_H
21 #define GNUNET_HELPER_W32_CONSOLE_H
24 #include "gnunet_crypto_lib.h"
25 #include "gnunet_common.h"
28 * Input event from the console
30 #define GNUNET_MESSAGE_TYPE_W32_CONSOLE_HELPER_INPUT 60000
33 * Chars from the console
35 #define GNUNET_MESSAGE_TYPE_W32_CONSOLE_HELPER_CHARS 60001
37 GNUNET_NETWORK_STRUCT_BEGIN
40 * This is just a dump of the INPUT_RECORD structure.
42 struct GNUNET_W32_CONSOLE_input
45 * Type: GNUNET_MESSAGE_TYPE_W32_CONSOLE_HELPER_INPUT
47 struct GNUNET_MessageHeader header;
49 INPUT_RECORD input_record GNUNET_PACKED;
53 * A header, followed by UTF8-encoded, 0-terminated string
55 struct GNUNET_W32_CONSOLE_chars
58 * Type: GNUNET_MESSAGE_TYPE_W32_CONSOLE_HELPER_CHARS
60 struct GNUNET_MessageHeader header;
62 /* followed by a string */
65 GNUNET_NETWORK_STRUCT_END