#include <gmodule.h>
#include <time.h>
Go to the source code of this file.
Data Structures | |
struct | irc_line |
Line information. More... | |
Enumerations | |
enum | has_endcolon { COLON_UNKNOWN = 0, WITH_COLON = 1, WITHOUT_COLON = 2 } |
Functions | |
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT struct irc_line * | linedup (const struct irc_line *l) |
Copy a line. | |
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT struct irc_line * | irc_parse_line (const char *data) |
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT struct irc_line * | virc_parse_line (const char *origin, va_list ap) |
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT char * | irc_line_string (const struct irc_line *l) |
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT char * | irc_line_string_nl (const struct irc_line *l) |
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT char * | line_get_nick (const struct irc_line *l) |
G_MODULE_EXPORT void | free_line (struct irc_line *l) |
G_GNUC_NULL_TERMINATED G_MODULE_EXPORT GIOStatus | irc_send_args (GIOChannel *, GIConv, GError **,...) |
G_GNUC_PRINTF (4, 5) G_MODULE_EXPORT GIOStatus irc_sendf(GIOChannel * | |
GError char G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT GIOStatus | irc_send_line (GIOChannel *, GIConv, const struct irc_line *l, GError **) |
Send a line over an IO Channel. | |
G_GNUC_PRINTF (1, 2) G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT struct irc_line *irc_parse_linef(const char *origin | |
G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT struct irc_line * | irc_parse_line_args (const char *origin,...) |
G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT GIOStatus | irc_recv_line (GIOChannel *c, GIConv iconv, GError **err, struct irc_line **) |
Read a line from an IO Channel. | |
G_MODULE_EXPORT gboolean | line_add_arg (struct irc_line *l, const char *arg) |
G_MODULE_EXPORT struct irc_line * | line_prefix_time (struct irc_line *l, time_t t) |
Variables | |
GIConv | |
GError char * | fmt |
G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT GIOStatus irc_recv_line | ( | GIOChannel * | c, | |
GIConv | iconv, | |||
GError ** | err, | |||
struct irc_line ** | ||||
) |
Read a line from an IO Channel.
This will return a line _with_ UTF-8 characters only!
GError char G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT GIOStatus irc_send_line | ( | GIOChannel * | c, | |
GIConv | iconv, | |||
const struct irc_line * | l, | |||
GError ** | error | |||
) |
Send a line over an IO Channel.
c | IO Channel | |
iconv | iconv to use, -1 for none | |
l | Line | |
error | Error |
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT G_MODULE_EXPORT struct irc_line* linedup | ( | const struct irc_line * | l | ) | [read] |
Copy a line.