libsrsirc  0.0.14
Lightweight, cross-platform IRC library
Data Structures | Typedefs | Functions
irc_track.h File Reference
#include <libsrsirc/defs.h>

Go to the source code of this file.

Data Structures

struct  chanrep
 Object representation of an IRC channel. More...
 
struct  userrep
 Object representation of an IRC user. More...
 

Typedefs

typedef struct chanrep chanrep
 Convenience typedef for struct chanrep. Probably a bad idea.
 
typedef struct userrep userrep
 Convenience typedef for struct userrep. Probably a bad idea.
 

Functions

size_t irc_num_chans (irc *ctx)
 Count the channels we are currently in. More...
 
size_t irc_all_chans (irc *ctx, chanrep *chanarr, size_t chanarr_cnt)
 Retrieve representations of all channels we're currently in. More...
 
chanrepirc_chan (irc *ctx, chanrep *dest, const char *name)
 Retrieve one channel representation by channel name. More...
 
bool irc_tag_chan (irc *ctx, const char *chnam, void *tag, bool autofree)
 Associate opaque user data with a channel. More...
 
size_t irc_num_users (irc *ctx)
 Count the users we are currently seeing. More...
 
size_t irc_all_users (irc *ctx, userrep *userarr, size_t userarr_cnt)
 Retrieve representations of all users we're currently seeing. More...
 
userrepirc_user (irc *ctx, userrep *dest, const char *ident)
 Retrieve one user representation by nickname. More...
 
bool irc_tag_user (irc *ctx, const char *ident, void *tag, bool autofree)
 Associate opaque user data with a user. More...
 
size_t irc_num_members (irc *ctx, const char *chnam)
 Count number of users in a given channel. More...
 
size_t irc_all_members (irc *ctx, const char *chnam, userrep *userarr, size_t userarr_cnt)
 Retrieve representations of all members of a channel. More...
 
userrepirc_member (irc *ctx, userrep *dest, const char *chnam, const char *ident)
 Retrieve one member representation by nickname and channel. More...
 
void lsi_trk_dump (irc *ctx, bool full)
 Dump tracking state for debugging purposes. More...