grim/purple-spasm

Basic chat support is working

2020-04-19, Gary Kramlich
a1e6bcaf27c3
Basic chat support is working
/*
* Spasm - A Twitch Protocol Plugin
* Copyright (C) 2017-2019 Gary Kramlich <grim@reaperworld.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef SPASM_CHAT
#define SPASM_CHAT
#include <glib.h>
typedef struct _SpasmChatService SpasmChatService;
#include "spasm-account.h"
G_BEGIN_DECLS
SpasmChatService *spasm_chat_service_new(SpasmAccount *sa);
void spasm_chat_service_free(SpasmChatService *chat);
void spasm_chat_service_connect(SpasmChatService *chat);
GList *spasm_chat_service_info(PurpleConnection *connection);
GHashTable *spasm_chat_service_info_default(PurpleConnection *connection, const gchar *name);
void spasm_chat_service_join(PurpleConnection *connection, GHashTable *components);
gchar *spasm_chat_service_name(GHashTable *components);
void spasm_chat_service_leave(PurpleConnection *connection, gint id);
gint spasm_chat_service_send(PurpleConnection *connection, gint id, const gchar *message, PurpleMessageFlags flags);
void spasm_chat_service_set_topic(PurpleConnection *connection, gint id, const gchar *topic);
G_END_DECLS
#endif /* SPASM_CHAT */