mirror of https://github.com/bqv/weechat-xmpp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
4 years ago
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
// License, version 2.0. If a copy of the MPL was not distributed with this
|
||
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||
|
|
||
3 years ago
|
#pragma once
|
||
4 years ago
|
|
||
|
struct t_user_profile
|
||
|
{
|
||
|
char *avatar_hash;
|
||
|
char *status_text;
|
||
3 years ago
|
char *status;
|
||
3 years ago
|
char *idle;
|
||
4 years ago
|
char *display_name;
|
||
|
char *email;
|
||
3 years ago
|
char *role;
|
||
|
char *affiliation;
|
||
|
char *pgp_id;
|
||
3 years ago
|
int omemo;
|
||
4 years ago
|
};
|
||
|
|
||
|
struct t_user
|
||
|
{
|
||
|
char *id;
|
||
|
char *name;
|
||
|
|
||
|
struct t_user_profile profile;
|
||
|
int updated;
|
||
|
int is_away;
|
||
|
|
||
|
struct t_user *prev_user;
|
||
|
struct t_user *next_user;
|
||
|
};
|
||
3 years ago
|
|
||
4 years ago
|
struct t_channel;
|
||
|
|
||
|
const char *user__get_colour(struct t_user *user);
|
||
|
|
||
4 years ago
|
const char *user__as_prefix_raw(struct t_account *account,
|
||
|
const char *name);
|
||
|
|
||
4 years ago
|
const char *user__as_prefix(struct t_account *account,
|
||
4 years ago
|
struct t_user *user,
|
||
|
const char *name);
|
||
4 years ago
|
|
||
|
struct t_user *user__search(struct t_account *account,
|
||
4 years ago
|
const char *id);
|
||
4 years ago
|
|
||
|
struct t_user *user__new(struct t_account *account,
|
||
4 years ago
|
const char *id, const char *display_name);
|
||
4 years ago
|
|
||
|
void user__free_all(struct t_account *account);
|
||
|
|
||
|
void user__nicklist_add(struct t_account *account,
|
||
4 years ago
|
struct t_channel *channel,
|
||
|
struct t_user *user);
|
||
4 years ago
|
|
||
4 years ago
|
void user__nicklist_remove(struct t_account *account,
|
||
|
struct t_channel *channel,
|
||
|
struct t_user *user);
|