Go to the source code of this file.
Data Structures | |
struct | GNUNET_MESSENGER_MessageState |
Functions | |
void | init_message_state (struct GNUNET_MESSENGER_MessageState *state) |
void | clear_message_state (struct GNUNET_MESSENGER_MessageState *state) |
void | get_message_state_chain_hash (const struct GNUNET_MESSENGER_MessageState *state, struct GNUNET_HashCode *hash) |
const struct GNUNET_HashCode * | get_message_state_merge_hash (const struct GNUNET_MESSENGER_MessageState *state) |
void | update_message_state (struct GNUNET_MESSENGER_MessageState *state, enum GNUNET_GenericReturnValue requested, const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash) |
void | load_message_state (struct GNUNET_MESSENGER_MessageState *state, const char *path) |
void | save_message_state (const struct GNUNET_MESSENGER_MessageState *state, const char *path) |
void init_message_state | ( | struct GNUNET_MESSENGER_MessageState * | state | ) |
Definition at line 31 of file gnunet-service-messenger_message_state.c.
References GNUNET_assert, init_list_messages(), and state.
Referenced by create_srv_room(), and create_tunnel().
void clear_message_state | ( | struct GNUNET_MESSENGER_MessageState * | state | ) |
Definition at line 40 of file gnunet-service-messenger_message_state.c.
References clear_list_messages(), GNUNET_assert, and state.
Referenced by destroy_srv_room(), and destroy_tunnel().
void get_message_state_chain_hash | ( | const struct GNUNET_MESSENGER_MessageState * | state, |
struct GNUNET_HashCode * | hash | ||
) |
Definition at line 49 of file gnunet-service-messenger_message_state.c.
References GNUNET_assert, GNUNET_memcpy, and state.
Referenced by pack_srv_room_message(), and sync_srv_handle_messages().
const struct GNUNET_HashCode * get_message_state_merge_hash | ( | const struct GNUNET_MESSENGER_MessageState * | state | ) |
Definition at line 62 of file gnunet-service-messenger_message_state.c.
References GNUNET_assert, and state.
Referenced by idle_request_room_messages(), and merge_srv_room_last_messages().
void update_message_state | ( | struct GNUNET_MESSENGER_MessageState * | state, |
enum GNUNET_GenericReturnValue | requested, | ||
const struct GNUNET_MESSENGER_Message * | message, | ||
const struct GNUNET_HashCode * | hash | ||
) |
Definition at line 74 of file gnunet-service-messenger_message_state.c.
References add_to_list_messages(), GNUNET_MESSENGER_Message::body, get_message_discourse(), GNUNET_assert, GNUNET_MESSENGER_KIND_INFO, GNUNET_MESSENGER_KIND_MERGE, GNUNET_MESSENGER_KIND_REQUEST, GNUNET_YES, GNUNET_MESSENGER_Message::header, GNUNET_MESSENGER_MessageHeader::kind, GNUNET_MESSENGER_MessageBody::merge, GNUNET_MESSENGER_MessageHeader::previous, GNUNET_MESSENGER_MessageMerge::previous, remove_from_list_messages(), and state.
Referenced by update_room_message(), and update_tunnel_last_message().
void load_message_state | ( | struct GNUNET_MESSENGER_MessageState * | state, |
const char * | path | ||
) |
Definition at line 98 of file gnunet-service-messenger_message_state.c.
References GNUNET_asprintf(), GNUNET_assert, GNUNET_free, load_list_messages(), and state.
Referenced by load_srv_room().
void save_message_state | ( | const struct GNUNET_MESSENGER_MessageState * | state, |
const char * | path | ||
) |
Definition at line 113 of file gnunet-service-messenger_message_state.c.
References GNUNET_asprintf(), GNUNET_assert, GNUNET_free, save_list_messages(), and state.
Referenced by save_srv_room().