/usr/include/atheme/inline/channels.h is in atheme-services 7.2.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #ifndef INLINE_CHANNELS_H
#define INLINE_CHANNELS_H
/*
* channel_find(const char *name)
*
* Looks up a channel object.
*
* Inputs:
* - name of channel to look up
*
* Outputs:
* - on success, the channel object
* - on failure, NULL
*
* Side Effects:
* - none
*/
static inline channel_t *channel_find(const char *name)
{
return name ? mowgli_patricia_retrieve(chanlist, name) : NULL;
}
/*
* chanban_clear(channel_t *chan)
*
* Destroys all channel bans attached to a channel.
*
* Inputs:
* - channel to clear banlist on
*
* Outputs:
* - nothing
*
* Side Effects:
* - the banlist on the channel is cleared
* - no protocol messages are sent
*/
static inline void chanban_clear(channel_t *chan)
{
mowgli_node_t *n, *tn;
MOWGLI_ITER_FOREACH_SAFE(n, tn, chan->bans.head)
{
/* inefficient but avoids code duplication -- jilles */
chanban_delete(n->data);
}
}
#endif
|