diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-peer-utils.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-peer-utils.h | 66 |
1 files changed, 32 insertions, 34 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-peer-utils.h b/xlators/mgmt/glusterd/src/glusterd-peer-utils.h index b03b136d3ca..47cbf6ee13d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-peer-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-peer-utils.h @@ -8,86 +8,84 @@ cases as published by the Free Software Foundation. */ - #ifndef _GLUSTERD_PEER_UTILS_H #define _GLUSTERD_PEER_UTILS_H #include "glusterd.h" int32_t -glusterd_peerinfo_cleanup (glusterd_peerinfo_t *peerinfo); +glusterd_peerinfo_cleanup(glusterd_peerinfo_t *peerinfo); glusterd_peerinfo_t * -glusterd_peerinfo_find_by_hostname (const char *hoststr); +glusterd_peerinfo_find_by_hostname(const char *hoststr); int -glusterd_hostname_to_uuid (char *hostname, uuid_t uuid); +glusterd_hostname_to_uuid(char *hostname, uuid_t uuid); glusterd_peerinfo_t * -glusterd_peerinfo_find_by_uuid (uuid_t uuid); +glusterd_peerinfo_find_by_uuid(uuid_t uuid); glusterd_peerinfo_t * -glusterd_peerinfo_find (uuid_t uuid, const char *hostname); +glusterd_peerinfo_find(uuid_t uuid, const char *hostname); glusterd_peerinfo_t * -glusterd_peerinfo_new (glusterd_friend_sm_state_t state, uuid_t *uuid, - const char *hostname, int port); +glusterd_peerinfo_new(glusterd_friend_sm_state_t state, uuid_t *uuid, + const char *hostname, int port); gf_boolean_t -glusterd_chk_peers_connected_befriended (uuid_t skip_uuid); +glusterd_chk_peers_connected_befriended(uuid_t skip_uuid); char * -glusterd_uuid_to_hostname (uuid_t uuid); +glusterd_uuid_to_hostname(uuid_t uuid); -char* -gd_peer_uuid_str (glusterd_peerinfo_t *peerinfo); +char * +gd_peer_uuid_str(glusterd_peerinfo_t *peerinfo); gf_boolean_t -glusterd_are_all_peers_up (); +glusterd_are_all_peers_up(); gf_boolean_t -glusterd_are_vol_all_peers_up (glusterd_volinfo_t *volinfo, - struct cds_list_head *peers, - char **down_peerstr); +glusterd_are_vol_all_peers_up(glusterd_volinfo_t *volinfo, + struct cds_list_head *peers, char **down_peerstr); int32_t -glusterd_peer_hostname_new (const char *hostname, - glusterd_peer_hostname_t **name); +glusterd_peer_hostname_new(const char *hostname, + glusterd_peer_hostname_t **name); void -glusterd_peer_hostname_free (glusterd_peer_hostname_t *name); +glusterd_peer_hostname_free(glusterd_peer_hostname_t *name); gf_boolean_t -gd_peer_has_address (glusterd_peerinfo_t *peerinfo, const char *address); +gd_peer_has_address(glusterd_peerinfo_t *peerinfo, const char *address); int -gd_add_address_to_peer (glusterd_peerinfo_t *peerinfo, const char *address); +gd_add_address_to_peer(glusterd_peerinfo_t *peerinfo, const char *address); int -gd_add_friend_to_dict (glusterd_peerinfo_t *friend, dict_t *dict, - const char *prefix); +gd_add_friend_to_dict(glusterd_peerinfo_t *friend, dict_t *dict, + const char *prefix); glusterd_peerinfo_t * -gd_peerinfo_find_from_hostname (const char *hoststr); +gd_peerinfo_find_from_hostname(const char *hoststr); glusterd_peerinfo_t * -gd_peerinfo_find_from_addrinfo (const struct addrinfo *addr); +gd_peerinfo_find_from_addrinfo(const struct addrinfo *addr); int -gd_update_peerinfo_from_dict (glusterd_peerinfo_t *peerinfo, dict_t *dict, - const char *prefix); +gd_update_peerinfo_from_dict(glusterd_peerinfo_t *peerinfo, dict_t *dict, + const char *prefix); glusterd_peerinfo_t * -gd_peerinfo_from_dict (dict_t *dict, const char *prefix); +gd_peerinfo_from_dict(dict_t *dict, const char *prefix); int -gd_add_peer_hostnames_to_dict (glusterd_peerinfo_t *peerinfo, dict_t *dict, - const char *prefix); +gd_add_peer_hostnames_to_dict(glusterd_peerinfo_t *peerinfo, dict_t *dict, + const char *prefix); int -gd_add_peer_detail_to_dict (glusterd_peerinfo_t *peerinfo, dict_t *friends, - int count); +gd_add_peer_detail_to_dict(glusterd_peerinfo_t *peerinfo, dict_t *friends, + int count); glusterd_peerinfo_t * -glusterd_peerinfo_find_by_generation (uint32_t generation); +glusterd_peerinfo_find_by_generation(uint32_t generation); int -glusterd_get_peers_count (); +glusterd_get_peers_count(); #endif /* _GLUSTERD_PEER_UTILS_H */ |