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 License 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 License for more details.
15 * You should have received a copy of the GNU General Public License
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 social/social.h
23 * @brief Common type definitions for the Social service and API.
24 * @author Gabor X Toth
31 #include "gnunet_social_service.h"
38 MSG_STATE_MODIFIER = 3,
39 MSG_STATE_MOD_CONT = 4,
47 GNUNET_NETWORK_STRUCT_BEGIN
49 /**** library -> service ****/
52 struct HostEnterRequest
55 * Type: GNUNET_MESSAGE_TYPE_SOCIAL_HOST_ENTER
57 struct GNUNET_MessageHeader header;
59 uint32_t policy GNUNET_PACKED;
61 struct GNUNET_CRYPTO_EcdsaPrivateKey host_key;
63 struct GNUNET_CRYPTO_EddsaPrivateKey place_key;
67 struct GuestEnterRequest
70 * Type: GNUNET_MESSAGE_TYPE_SOCIAL_GUEST_ENTER_ADDR
72 struct GNUNET_MessageHeader header;
74 uint32_t relay_count GNUNET_PACKED;
76 struct GNUNET_CRYPTO_EcdsaPrivateKey guest_key;
78 struct GNUNET_CRYPTO_EddsaPublicKey place_key;
80 struct GNUNET_PeerIdentity origin;
82 /* Followed by struct GNUNET_PeerIdentity relays[relay_count] */
84 /* Followed by struct GNUNET_MessageHeader join_msg */
88 /**** service -> library ****/
92 struct NymEnterRequest
95 * Type: GNUNET_MESSAGE_TYPE_SOCIAL_NYM_ENTER
97 struct GNUNET_MessageHeader header;
99 * Public key of the joining slave.
101 struct GNUNET_CRYPTO_EcdsaPublicKey nym_key;
103 /* Followed by struct GNUNET_MessageHeader join_request */
108 GNUNET_NETWORK_STRUCT_END