grim/purple-spasm
Clone
Summary
Browse
Changes
Graph
So many requests...
2017-05-09, Gary Kramlich
9fbc77f4a80c
So many requests...
/*
* PurpleSpasm - A Twitch Protocol Plugin
* Copyright (C) 2017 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 PURPLE_SPASM_ACCOUNT_H
#define PURPLE_SPASM_ACCOUNT_H
#include
<glib.h>
#include
<libsoup/soup.h>
#include
"account.h"
#include
"connection.h"
#define PURPLE_SPASM_ACCOUNT(obj) ((PurpleSpasmAccount *)(obj))
typedef
struct
_PurpleSpasmAccount
PurpleSpasmAccount
;
G_BEGIN_DECLS
PurpleSpasmAccount
*
purple_spasm_account_new
(
PurpleAccount
*
account
,
PurpleConnection
*
connection
);
void
purple_spasm_account_free
(
PurpleSpasmAccount
*
sa
);
PurpleAccount
*
purple_spasm_account_get_account
(
const
PurpleSpasmAccount
*
sa
);
PurpleConnection
*
purple_spasm_account_get_connection
(
const
PurpleSpasmAccount
*
sa
);
SoupSession
*
purple_spasm_account_get_session
(
const
PurpleSpasmAccount
*
sa
);
void
purple_spasm_account_set_access_token
(
PurpleSpasmAccount
*
sa
,
const
gchar
*
access_token
);
const
gchar
*
purple_spasm_account_get_access_token
(
const
PurpleSpasmAccount
*
sa
);
G_END_DECLS
#endif
/* PURPLE_SPASM_ACCOUNT_H */