tox-weechat/src/tox-weechat-chats.h

42 lines
1.2 KiB
C
Raw Normal View History

2014-09-02 16:47:08 +00:00
#ifndef TOX_WEECHAT_CHATS_H
#define TOX_WEECHAT_CHATS_H
#include <stdint.h>
#include <tox/tox.h>
2014-09-07 01:04:42 +00:00
struct t_tox_weechat_chat
2014-09-02 16:47:08 +00:00
{
struct t_gui_buffer *buffer;
int32_t friend_number;
2014-09-07 01:04:42 +00:00
struct t_tox_weechat_identity *identity;
struct t_tox_weechat_chat *next_chat;
struct t_tox_weechat_chat *prev_chat;
2014-09-02 16:47:08 +00:00
};
2014-09-07 01:04:42 +00:00
struct t_tox_weechat_chat *
tox_weechat_get_friend_chat(struct t_tox_weechat_identity *identity,
int32_t friend_number);
struct t_tox_weechat_chat *
tox_weechat_get_existing_friend_chat(struct t_tox_weechat_identity *identity,
int32_t friend_number);
2014-09-02 16:47:08 +00:00
2014-09-07 01:04:42 +00:00
struct t_tox_weechat_chat *
tox_weechat_get_chat_for_buffer(struct t_gui_buffer *target_buffer);
2014-09-02 18:15:08 +00:00
2014-09-07 01:04:42 +00:00
void tox_weechat_chat_print_message(struct t_tox_weechat_chat *chat,
2014-09-02 16:47:08 +00:00
const char *sender,
const char *message);
2014-09-07 01:04:42 +00:00
void tox_weechat_chat_print_action(struct t_tox_weechat_chat *chat,
2014-09-02 16:47:08 +00:00
const char *sender,
const char *message);
2014-09-02 18:15:08 +00:00
2014-09-07 01:04:42 +00:00
void tox_weechat_chat_refresh(struct t_tox_weechat_chat *chat);
2014-09-02 16:47:08 +00:00
#endif // TOX_WEECHAT_CHATS_H