#include <stdbool.h>
#include <glib.h>
Go to the source code of this file.
Enumerations | |
enum | client_subscribe_result { CLIENT_SUBSCRIBE_OK, CLIENT_SUBSCRIBE_INVALID, CLIENT_SUBSCRIBE_ALREADY, CLIENT_SUBSCRIBE_FULL } |
Functions | |
enum client_subscribe_result | client_subscribe (struct client *client, const char *channel) |
bool | client_unsubscribe (struct client *client, const char *channel) |
void | client_unsubscribe_all (struct client *client) |
bool | client_push_message (struct client *client, const struct client_message *msg) |
G_GNUC_MALLOC GSList * | client_read_messages (struct client *client) |
CLIENT_SUBSCRIBE_OK |
success |
CLIENT_SUBSCRIBE_INVALID |
invalid channel name |
CLIENT_SUBSCRIBE_ALREADY |
already subscribed to this channel |
CLIENT_SUBSCRIBE_FULL |
too many subscriptions |
Definition at line 29 of file client_subscribe.h.
bool client_push_message | ( | struct client * | client, | |
const struct client_message * | msg | |||
) |
G_GNUC_MALLOC GSList* client_read_messages | ( | struct client * | client | ) |
enum client_subscribe_result client_subscribe | ( | struct client * | client, | |
const char * | channel | |||
) |
bool client_unsubscribe | ( | struct client * | client, | |
const char * | channel | |||
) |
void client_unsubscribe_all | ( | struct client * | client | ) |