satoriapi.h

Sun, 10 Aug 2025 23:53:22 +0800

author
Gong Zhile <gongzl@stu.hebust.edu.cn>
date
Sun, 10 Aug 2025 23:53:22 +0800
changeset 3
33a7b189a2c6
parent 1
98bcf06036b8
permissions
-rw-r--r--

Various improvement, Support configuration from UI

/*
 * Purple Satori Plugin - Satori Protocol Plugin for Purple3
 * Copyright (C) 2025 Gong Zhile
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
 */

#ifndef SATORI_API_H
#define SATORI_API_H

#include "satoritypes.h"
#include "purplesatoriconnection.h"

PurpleConversationType satoir_channel_type_to_conversation_type(SatoriChannelType);
void purple_satori_add_person_from_user(PurpleSatoriConnection *con, SatoriUser *user);
PurpleConversation *purple_satori_add_conversation_from_chan(PurpleSatoriConnection *con, SatoriChannel *chan);
PurpleConversationMember *purple_satori_add_conversation_member_from_user(PurpleSatoriConnection *con, PurpleConversation *conversation, SatoriUser *user);

void satori_refresh_buddy_contacts(PurpleSatoriConnection *con, const gchar *next);
void satori_refresh_conversations(PurpleSatoriConnection *con, const gchar *next);
void satori_create_dm_channel(PurpleSatoriConnection *con, SatoriUser *user, GTask *task);
void
satori_send_message(PurpleSatoriConnection *con, PurpleConversation *conversation, PurpleMessage *message, const gchar *content, GTask *task);

#endif	/* SATORI_API_H */

mercurial