mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
Add functions to override irssi dir and config
Setting up to test is easier this way.
This commit is contained in:
parent
04db359a6d
commit
2d6033542e
@ -73,12 +73,22 @@ const char *get_irssi_dir(void)
|
||||
return irssi_dir;
|
||||
}
|
||||
|
||||
void set_irssi_dir(char *const s)
|
||||
{
|
||||
irssi_dir = s;
|
||||
}
|
||||
|
||||
/* return full path for ~/.irssi/config */
|
||||
const char *get_irssi_config(void)
|
||||
{
|
||||
return irssi_config_file;
|
||||
}
|
||||
|
||||
void set_irssi_config(char *const s)
|
||||
{
|
||||
irssi_config_file = s;
|
||||
}
|
||||
|
||||
static void sig_reload_config(int signo)
|
||||
{
|
||||
reload_config = TRUE;
|
||||
|
@ -16,6 +16,9 @@ extern int irssi_init_finished; /* TRUE after "irssi init finished" signal is se
|
||||
extern int reload_config; /* TRUE after received SIGHUP. */
|
||||
extern time_t client_start_time;
|
||||
|
||||
void set_irssi_dir(char *const);
|
||||
void set_irssi_config(char *const);
|
||||
|
||||
void core_preinit(const char *path);
|
||||
|
||||
void core_register_options(void);
|
||||
|
Loading…
Reference in New Issue
Block a user