2 This file is part of GNUnet.
3 (C) 2013 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public Liceidentity as published
7 by the Free Software Foundation; either version 3, or (at your
8 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 General Public Liceidentity for more details.
15 You should have received a copy of the GNU General Public Liceidentity
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
22 * @file psycstore/psycstore.h
23 * @brief Common type definitions for the PSYCstore service and API.
24 * @author Gabor X Toth
30 #include "gnunet_common.h"
33 GNUNET_NETWORK_STRUCT_BEGIN
36 * Answer from service to client about last operation.
38 struct ResultCodeMessage
41 * Type: GNUNET_MESSAGE_TYPE_PSYCSTORE_RESULT_CODE
43 struct GNUNET_MessageHeader header;
46 * Status code for the last operation, in NBO.
47 * (currently not used).
49 uint32_t result_code GNUNET_PACKED;
51 /* followed by 0-terminated error message (on error) */
57 * @see GNUNET_PSYCSTORE_membership_store()
59 struct MembershipStoreMessage
61 const struct GNUNET_CRYPTO_EccPublicKey *channel_key;
62 const struct GNUNET_CRYPTO_EccPublicKey *slave_key;
64 uint64_t announced_at;
65 uint64_t effective_since;
66 uint64_t group_generation;
71 * @see GNUNET_PSYCSTORE_membership_test()
73 struct MembershipTestMessage
75 const struct GNUNET_CRYPTO_EccPublicKey *channel_key;
76 const struct GNUNET_CRYPTO_EccPublicKey *slave_key;
78 uint64_t group_generation;
81 GNUNET_NETWORK_STRUCT_END