libircbot
library providing a framework for implementing an IRC bot
Loading...
Searching...
No Matches
ircserver.h
Go to the documentation of this file.
1#ifndef IRCBOT_IRCSERVER_H
2#define IRCBOT_IRCSERVER_H
3
4#include <ircbot/decl.h>
5
10C_CLASS_DECL(IBHashTable);
11C_CLASS_DECL(IrcChannel);
12
16C_CLASS_DECL(IrcServer);
17
27DECLEXPORT IrcServer *IrcServer_create(const char *id,
28 const char *remotehost, int port,
29 const char *nick, const char *user, const char *realname)
30 ATTR_RETNONNULL ATTR_NONNULL((1))
31 ATTR_NONNULL((2)) ATTR_NONNULL((4));
32
41DECLEXPORT void IrcServer_enableTls(IrcServer *self,
42 const char *certfile, const char *keyfile) CMETHOD;
43
49DECLEXPORT const char *IrcServer_id(const IrcServer *self)
50 CMETHOD ATTR_RETNONNULL;
51
59DECLEXPORT const char *IrcServer_name(const IrcServer *self)
60 CMETHOD ATTR_RETNONNULL;
61
67DECLEXPORT const char *IrcServer_nick(const IrcServer *self)
68 CMETHOD ATTR_RETNONNULL;
69
76DECLEXPORT const IBHashTable *IrcServer_channels(const IrcServer *self)
77 CMETHOD;
78
85DECLEXPORT void IrcServer_join(IrcServer *self, const char *channel)
86 CMETHOD ATTR_NONNULL((2));
87
94DECLEXPORT void IrcServer_part(IrcServer *self, const char *channel)
95 CMETHOD ATTR_NONNULL((2));
96
101DECLEXPORT void IrcServer_destroy(IrcServer *self);
102
103#endif
A hash table storing any data objects using string keys.
An IRC channel.
An IRC server.
IrcServer * IrcServer_create(const char *id, const char *remotehost, int port, const char *nick, const char *user, const char *realname)
Create a new IRC server to connect to.
Common preprocessor declarations for libircbot.