feature: nickname disambiguation

This commit is contained in:
nogaems 2019-03-18 23:20:41 +03:00
parent 80319b30cd
commit fe5589432d
No known key found for this signature in database
GPG key ID: 91316FB98FDBB08B
8 changed files with 289 additions and 27 deletions

View file

@ -49,6 +49,31 @@ twc_get_self_name_nt(Tox *tox);
char *
twc_get_friend_id_short(Tox *tox, int32_t friend_number);
char *
twc_get_peer_id_short(Tox *tox, uint32_t conference_number,
uint32_t peer_number);
char *
twc_get_peer_name_prefixed(const char *id, const char *name);
char *
twc_get_peer_name_prefixed_and_aligned(const char *id, const char *name,
size_t max);
size_t
twc_get_max_string_length(struct t_weelist *list);
size_t
twc_get_peer_name_count(struct t_weelist *list, const char *name);
struct t_weelist *
twc_starts_with(struct t_weelist *list, const char *search,
struct t_weelist *result);
const char *
twc_get_next_completion(struct t_weelist *completion_list,
const char *prev_comp);
uint32_t
twc_uint32_reverse_bytes(uint32_t num);