satoritypes.h

changeset 0
cc7c1f9d20f7
child 1
98bcf06036b8
equal deleted inserted replaced
-1:000000000000 0:cc7c1f9d20f7
1 /*
2 * Purple Satori Plugin - Satori Protocol Plugin for Purple3
3 * Copyright (C) 2025 Gong Zhile
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
17 */
18
19 #ifndef SATORI_TYPES_H
20 #define SATORI_TYPES_H
21
22 #include <glib.h>
23
24 typedef enum {
25 SATORI_WEBSOCKET_OP_EVENT = 0,
26 SATORI_WEBSOCKET_OP_PING,
27 SATORI_WEBSOCKET_OP_PONG,
28 SATORI_WEBSOCKET_OP_IDENTIFY,
29 SATORI_WEBSOCKET_OP_READY,
30 SATORI_WEBSOCKET_OP_META,
31 } SatoriWebsocketOpcode;
32
33 typedef struct {
34 const gchar *id;
35 const gchar *name;
36 const gchar *nick;
37 const gchar *avatar;
38 gboolean is_bot;
39 } SatoriUser;
40
41 #endif /* SATORI_TYPES_H */

mercurial