mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
- Zmiana incdir z 'irssi' na 'irssip' w meson.build - Zmiana nazwy binarja z 'irssi' na 'irssip' - Zmiana katalogu config z ~/.irssi na ~/.irssip - Aktualizacja wszystkich include paths z <irssi/> na <irssip/> - Przywrócenie nazw plików źródłowych do oryginalnych 'irssi*' Teraz może być instalowane w /opt/irssip bez konfliktów z systemowym irssi: - Binarka: /opt/irssip/bin/irssip - Konfiguracja: ~/.irssip/ - Moduły Perl: /opt/irssip/lib/irssip/perl/Irssi.pm - Separacja modułów: systemowy irssi nie znajdzie naszych modułów w @INC
34 lines
927 B
C
34 lines
927 B
C
#ifndef IRSSI_CORE_CHANNELS_SETUP_H
|
|
#define IRSSI_CORE_CHANNELS_SETUP_H
|
|
|
|
#include <irssip/src/core/modules.h>
|
|
|
|
#define CHANNEL_SETUP(server) \
|
|
MODULE_CHECK_CAST(server, CHANNEL_SETUP_REC, type, "CHANNEL SETUP")
|
|
|
|
#define IS_CHANNEL_SETUP(server) \
|
|
(CHANNEL_SETUP(server) ? TRUE : FALSE)
|
|
|
|
struct _CHANNEL_SETUP_REC {
|
|
#include <irssip/src/core/channel-setup-rec.h>
|
|
};
|
|
|
|
extern GSList *setupchannels;
|
|
|
|
void channels_setup_init(void);
|
|
void channels_setup_deinit(void);
|
|
|
|
void channel_setup_create(CHANNEL_SETUP_REC *channel);
|
|
void channel_setup_remove(CHANNEL_SETUP_REC *channel);
|
|
|
|
/* Remove channels attached to chatnet */
|
|
void channel_setup_remove_chatnet(const char *chatnet);
|
|
|
|
CHANNEL_SETUP_REC *channel_setup_find(const char *channel,
|
|
const char *chatnet);
|
|
|
|
#define channel_chatnet_match(rec, chatnet) \
|
|
((rec) == NULL || (rec)[0] == '\0' || \
|
|
((chatnet) != NULL && g_ascii_strcasecmp(rec, chatnet) == 0))
|
|
|
|
#endif
|