Moved profile_default option array to profile.{h,c}.

This commit is contained in:
Håvard Pettersson 2014-10-11 11:44:29 +02:00
parent 613fd7ee6d
commit 270fc20989
4 changed files with 2 additions and 5 deletions

View File

@ -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",

View 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();

View File

@ -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:

View File

@ -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]) \