*/
void
GNUNET_MULTICAST_membership_test_answer (struct GNUNET_MULTICAST_MembershipTestHandle *mth,
- int decision);
+ int decision);
/**
* @param mth Handle to give to GNUNET_MULTICAST_membership_test_answer().
*/
typedef void (*GNUNET_MULTICAST_MembershipTestCallback)(void *cls,
- const struct GNUNET_PeerIdentity *peer,
- uint64_t fragment_id,
- struct GNUNET_MULTICAST_MembershipTestHandle *mth);
+ const struct GNUNET_PeerIdentity *peer,
+ uint64_t fragment_id,
+ struct GNUNET_MULTICAST_MembershipTestHandle *mth);
/**
* @param rh Handle to pass to message transmit function.
*/
typedef void (*GNUNET_MULTICAST_ReplayCallback) (void *cls,
- uint64_t fragment_id,
- struct GNUNET_MULTICAST_ReplayHandle *rh);
+ uint64_t fragment_id,
+ struct GNUNET_MULTICAST_ReplayHandle *rh);
/**
*/
void
GNUNET_MULTICAST_replay (struct GNUNET_MULTICAST_ReplayHandle *rh,
- const struct GNUNET_MULTICAST_MessageHeader *msg,
- enum GNUNET_MULTICAST_ReplayErrorCode ec);
+ const struct GNUNET_MULTICAST_MessageHeader *msg,
+ enum GNUNET_MULTICAST_ReplayErrorCode ec);
/**
*/
struct GNUNET_MULTICAST_Origin *
GNUNET_MULTICAST_origin_start (const struct GNUNET_CONFIGURATION_Handle *cfg,
- void *cls,
- const struct GNUNET_CRYPTO_EccPrivateKey *priv_key,
- enum GNUNET_MULTICAST_JoinPolicy join_policy,
- GNUNET_MULITCAST_ReplayCallback replay_cb,
- GNUNET_MULITCAST_MembershipTestCallback test_cb,
- GNUNET_MULTICAST_JoinCallback join_cb,
- GNUNET_MULTICAST_PartCallback part_cb,
- GNUNET_MULTICAST_RequestCallback request_cb);
+ void *cls,
+ const struct GNUNET_CRYPTO_EccPrivateKey *priv_key,
+ enum GNUNET_MULTICAST_JoinPolicy join_policy,
+ GNUNET_MULITCAST_ReplayCallback replay_cb,
+ GNUNET_MULITCAST_MembershipTestCallback test_cb,
+ GNUNET_MULTICAST_JoinCallback join_cb,
+ GNUNET_MULTICAST_PartCallback part_cb,
+ GNUNET_MULTICAST_RequestCallback request_cb);
/**
*/
struct GNUNET_MULTICAST_OriginMessageHandle *
GNUNET_MULTICAST_origin_to_all (struct GNUNET_MULTICAST_Origin *origin,
- size_t size,
- GNUNET_CONNECTION_TransmitReadyNotify cb,
- void *cb_cls);
+ size_t size,
+ GNUNET_CONNECTION_TransmitReadyNotify cb,
+ void *cb_cls);
/**
*/
struct GNUNET_MULTICAST_Member *
GNUNET_MULTICAST_member_join (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const struct GNUNET_CRYPTO_EccPublicKey *pub_key,
+ const struct GNUNET_CRYPTO_EccPublicKey *pub_key,
const struct GNUNET_PeerIdentity *origin,
- uint64_t max_known_fragment_id,
- uint64_t max_known_state_fragment_id,
- GNUNET_MULTICAST_ReplayCallback replay_cb,
- GNUNET_MULITCAST_MembershipTestCallback test_cb,
- GNUNET_MULTICAST_MessageCallback message_cb,
- void *cls,
- const struct GNUNET_MessageHeader *join_req);
+ uint64_t max_known_fragment_id,
+ uint64_t max_known_state_fragment_id,
+ GNUNET_MULTICAST_ReplayCallback replay_cb,
+ GNUNET_MULITCAST_MembershipTestCallback test_cb,
+ GNUNET_MULTICAST_MessageCallback message_cb,
+ void *cls,
+ const struct GNUNET_MessageHeader *join_req);
/**
*/
struct GNUNET_MULTICAST_MemberReplayHandle *
GNUNET_MULTICAST_member_request_replay (struct GNUNET_MULTICAST_Member *member,
- uint64_t fragment_id,
- GNUNET_MULTICAST_MessageCallback message_cb,
- void *message_cb_cls);
+ uint64_t fragment_id,
+ GNUNET_MULTICAST_MessageCallback message_cb,
+ void *message_cb_cls);
/**
*/
struct GNUNET_MULTICAST_MemberRequestHandle *
GNUNET_MULTICAST_member_to_origin (struct GNUNET_MULTICAST_Member *member,
- size_t size,
- GNUNET_CONNECTION_TransmitReadyNotify cb,
- void *cb_cls);
+ size_t size,
+ GNUNET_CONNECTION_TransmitReadyNotify cb,
+ void *cb_cls);
/**
* @param frag Fragmentation status for the data.
*/
typedef int (*GNUNET_PSYC_Method)(void *cls,
- const struct GNUNET_PeerIdentity *sender,
- uint64_t message_id,
- const char *method_name,
+ const struct GNUNET_PeerIdentity *sender,
+ uint64_t message_id,
+ const char *method_name,
size_t header_length,
GNUNET_PSYC_Modifier *header,
- uint64_t data_offset,
- size_t data_size,
- const void *data,
- enum GNUNET_PSYC_MessageFlags flags);
+ uint64_t data_offset,
+ size_t data_size,
+ const void *data,
+ enum GNUNET_PSYC_MessageFlags flags);
/**
* @param value_size Number of bytes in @a value.
*/
typedef void (*GNUNET_PSYC_StateCallback)(void *cls,
- const char *name,
- size_t value_size,
- const void *value);
+ const char *name,
+ size_t value_size,
+ const void *value);
/**
* #GNUNET_NO if the peer was not a member
*/
typedef void (*GNUNET_PSYCSTORE_ContinuationCallback)(void *cls,
- int result);
+ int result);
/**
* Store join/leave events for a PSYC channel in order to be able to answer
*/
struct GNUNET_PSYCSTORE_OperationHandle *
GNUNET_PSYCSTORE_membership_test (struct GNUNET_PSYCSTORE_Handle *h,
- const struct GNUNET_HashCode *channel_id,
- uint64_t fragment_id,
- const struct GNUNET_PeerIdentity *peer,
- GNUNET_PSYCSTORE_ContinuationCallback ccb,
- void *ccb_cls);
+ const struct GNUNET_HashCode *channel_id,
+ uint64_t fragment_id,
+ const struct GNUNET_PeerIdentity *peer,
+ GNUNET_PSYCSTORE_ContinuationCallback ccb,
+ void *ccb_cls);
/**
* @param flags Message flags indicating fragmentation status.
*/
typedef void (*GNUNET_PSYCSTORE_FragmentResultCallback)(void *cls,
- const struct GNUNET_MULTICAST_MessageHeader *message,
+ const struct GNUNET_MULTICAST_MessageHeader *message,
enum GNUNET_PSYC_MessageFlags flags);
*/
struct GNUNET_PSYCSTORE_OperationHandle *
GNUNET_PSYCSTORE_message_get (struct GNUNET_PSYCSTORE_Handle *h,
- const struct GNUNET_HashCode *channel_id,
- uint64_t message_id,
- GNUNET_PSYCSTORE_FragmentResultCallback rcb,
- void *rcb_cls);
+ const struct GNUNET_HashCode *channel_id,
+ uint64_t message_id,
+ GNUNET_PSYCSTORE_FragmentResultCallback rcb,
+ void *rcb_cls);
/**
*/
struct GNUNET_PSYCSTORE_OperationHandle *
GNUNET_PSYCSTORE_state_set (struct GNUNET_PSYCSTORE_Handle *h,
- const struct GNUNET_HashCode *channel_id,
- const char *name,
- size_t value_size,
- const void *value,
- GNUNET_PSYCSTORE_ContinuationCallback ccb,
- void *ccb_cls);
+ const struct GNUNET_HashCode *channel_id,
+ const char *name,
+ size_t value_size,
+ const void *value,
+ GNUNET_PSYCSTORE_ContinuationCallback ccb,
+ void *ccb_cls);
/**
t *
*/
typedef void (*GNUNET_PSYCSTORE_StateResultCallback)(void *cls,
- const char *name,
- size_t size,
- const void *value);
+ const char *name,
+ size_t size,
+ const void *value);
/**
*/
struct GNUNET_PSYCSTORE_OperationHandle *
GNUNET_PSYCSTORE_state_get (struct GNUNET_PSYCSTORE_Handle *h,
- const struct GNUNET_HashCode *channel_id,
- const char *name,
- GNUNET_PSYCSTORE_StateResultCallback rcb,
- void *rcb_cls);
+ const struct GNUNET_HashCode *channel_id,
+ const char *name,
+ GNUNET_PSYCSTORE_StateResultCallback rcb,
+ void *rcb_cls);
/**
*/
struct GNUNET_PSYCSTORE_OperationHandle *
GNUNET_PSYCSTORE_state_get_all (struct GNUNET_PSYCSTORE_Handle *h,
- const struct GNUNET_HashCode *channel_id,
- GNUNET_PSYCSTORE_StateResultCallback rcb,
- void *rcb_cls);
+ const struct GNUNET_HashCode *channel_id,
+ GNUNET_PSYCSTORE_StateResultCallback rcb,
+ void *rcb_cls);
/**
* @param flags Message flags indicating fragmentation status.
*/
typedef int (*GNUNET_SOCIAL_Method)(void *cls,
- const char *full_method_name,
- uint64_t message_id,
+ const char *full_method_name,
+ uint64_t message_id,
size_t header_length,
GNUNET_PSYC_Modifier *header,
- uint64_t data_offset,
- size_t data_size,
- const void *data,
- enum GNUNET_PSYC_MessageFlags flags);
+ uint64_t data_offset,
+ size_t data_size,
+ const void *data,
+ enum GNUNET_PSYC_MessageFlags flags);
/**
*/
void
GNUNET_SOCIAL_slicer_add (struct GNUNET_SOCIAL_Slicer *slicer,
- const char *method_name,
- GNUNET_SOCIAL_Method method,
- void *method_cls);
+ const char *method_name,
+ GNUNET_SOCIAL_Method method,
+ void *method_cls);
/**
* @param data Payload given on enter (e.g. a password).
*/
typedef void (*GNUNET_SOCIAL_AnswerDoorCallback)(void *cls,
- struct GNUNET_SOCIAL_Nym *nym,
+ struct GNUNET_SOCIAL_Nym *nym,
size_t header_length,
GNUNET_PSYC_Modifier *header,
- size_t data_size,
- const void *data);
+ size_t data_size,
+ const void *data);
/**
* @param header Modifiers present in the message.
*/
typedef void (*GNUNET_SOCIAL_FarewellCallback)(void *cls,
- struct GNUNET_SOCIAL_Nym *nym,
+ struct GNUNET_SOCIAL_Nym *nym,
size_t header_length,
GNUNET_PSYC_Modifier *header);
*
* @param cfg Configuration to contact the social service.
* @param home_keyfile File with the private key for the home,
- * created if the file does not exist;
+ * created if the file does not exist;
* pass NULL for ephemeral homes.
* @param join_policy What is our policy for allowing people in?
* @param ego Owner of the home (host).
*/
struct GNUNET_SOCIAL_Home *
GNUNET_SOCIAL_home_enter (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const char *home_keyfile,
- enum GNUNET_MULTICAST_JoinPolicy join_policy,
- struct GNUNET_SOCIAL_Ego *ego,
- struct GNUNET_SOCIAL_Slicer *slicer,
- GNUNET_SOCIAL_AnswerDoorCallback listener_cb,
- GNUNET_SOCIAL_FarewellCallback farewell_cb,
- void *cls);
+ const char *home_keyfile,
+ enum GNUNET_MULTICAST_JoinPolicy join_policy,
+ struct GNUNET_SOCIAL_Ego *ego,
+ struct GNUNET_SOCIAL_Slicer *slicer,
+ GNUNET_SOCIAL_AnswerDoorCallback listener_cb,
+ GNUNET_SOCIAL_FarewellCallback farewell_cb,
+ void *cls);
/**
*/
void
GNUNET_SOCIAL_home_admit (struct GNUNET_SOCIAL_Home *home,
- struct GNUNET_SOCIAL_Nym *nym);
+ struct GNUNET_SOCIAL_Nym *nym);
/**
*/
void
GNUNET_SOCIAL_nym_get_identity (struct GNUNET_SOCIAL_Nym *nym,
- struct GNUNET_CRYPTO_ShortHashCode *identity);
+ struct GNUNET_CRYPTO_ShortHashCode *identity);
/**
*/
void
GNUNET_SOCIAL_home_get_address (struct GNUNET_SOCIAL_Home *home,
- struct GNUNET_HashCode *crypto_address);
+ struct GNUNET_HashCode *crypto_address);
*/
struct GNUNET_SOCIAL_WatchHandle *
GNUNET_SOCIAL_place_watch (struct GNUNET_SOCIAL_Place *place,
- const char *object_filter,
- GNUNET_PSYC_StateCallback state_cb,
- void *state_cb_cls);
+ const char *object_filter,
+ GNUNET_PSYC_StateCallback state_cb,
+ void *state_cb_cls);
/**
*/
struct GNUNET_SOCIAL_LookHandle *
GNUNET_SOCIAL_place_look (struct GNUNET_SOCIAL_Place *place,
- GNUNET_PSYC_StateCallback state_cb,
- void *state_cb_cls);
+ GNUNET_PSYC_StateCallback state_cb,
+ void *state_cb_cls);
/**
*/
struct GNUNET_SOCIAL_LookHandle *
GNUNET_SOCIAL_place_look_for (struct GNUNET_SOCIAL_Place *place,
- const char *object_filter,
- GNUNET_PSYC_StateCallback state_cb,
- void *state_cb_cls);
+ const char *object_filter,
+ GNUNET_PSYC_StateCallback state_cb,
+ void *state_cb_cls);
/**
*/
const void *
GNUNET_SOCIAL_place_look_at (struct GNUNET_SOCIAL_Place *place,
- const char *object_name,
- size_t *value_size);
+ const char *object_name,
+ size_t *value_size);
/**
*/
struct GNUNET_SOCIAL_HistoryLesson *
GNUNET_SOCIAL_place_get_history (struct GNUNET_SOCIAL_Place *place,
- uint64_t start_message_id,
- uint64_t end_message_id,
+ uint64_t start_message_id,
+ uint64_t end_message_id,
const struct GNUNET_SOCIAL_Slicer *slicer,
void (*finish_cb)(void *),
void *finish_cb_cls);