Moved profile_default option array to profile.{h,c}.
This commit is contained in:
parent
613fd7ee6d
commit
270fc20989
@ -34,8 +34,6 @@ struct t_config_file *twc_config_file = NULL;
|
||||
struct t_config_section *twc_config_section_profile = NULL;
|
||||
struct t_config_section *twc_config_section_profile_default = NULL;
|
||||
|
||||
struct t_config_option *twc_config_profile_default[TWC_PROFILE_NUM_OPTIONS];
|
||||
|
||||
char *twc_profile_option_names[TWC_PROFILE_NUM_OPTIONS] =
|
||||
{
|
||||
"save_file",
|
||||
|
@ -20,9 +20,6 @@
|
||||
#ifndef TOX_WEECHAT_CONFIG_H
|
||||
#define TOX_WEECHAT_CONFIG_H
|
||||
|
||||
#include "twc-profile.h"
|
||||
extern struct t_config_option *twc_config_profile_default[TWC_PROFILE_NUM_OPTIONS];
|
||||
|
||||
void
|
||||
twc_config_init();
|
||||
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include "twc-profile.h"
|
||||
|
||||
struct t_twc_list *twc_profiles = NULL;
|
||||
struct t_config_option *twc_config_profile_default[TWC_PROFILE_NUM_OPTIONS];
|
||||
|
||||
/**
|
||||
* Get a profile's expanded data path, replacing:
|
||||
|
@ -56,6 +56,7 @@ struct t_twc_profile
|
||||
};
|
||||
|
||||
extern struct t_twc_list *twc_profiles;
|
||||
extern struct t_config_option *twc_config_profile_default[TWC_PROFILE_NUM_OPTIONS];
|
||||
|
||||
#define TWC_PROFILE_OPTION_BOOLEAN(profile, index) \
|
||||
(!weechat_config_option_is_null(profile->options[index]) \
|
||||
|
Loading…
Reference in New Issue
Block a user