add support for channel passwords in config
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
51a2fda7f0
commit
25684561ed
|
@ -24,7 +24,7 @@
|
|||
# define EX_CONFIG_HASH(edd, type, member, eddtype) \
|
||||
EET_DATA_DESCRIPTOR_ADD_HASH(edd, type, #member, member, eddtype)
|
||||
|
||||
# define EX_CONFIG_FILE_EPOCH 0x0001
|
||||
# define EX_CONFIG_FILE_EPOCH 0x0002
|
||||
# define EX_CONFIG_FILE_GENERATION 0x008d
|
||||
# define EX_CONFIG_FILE_VERSION \
|
||||
((EX_CONFIG_FILE_EPOCH << 16) | EX_CONFIG_FILE_GENERATION)
|
||||
|
@ -72,6 +72,7 @@ _config_cb_free(void)
|
|||
EINA_LIST_FREE(net->channels, chl)
|
||||
{
|
||||
if (chl->name) eina_stringshare_del(chl->name);
|
||||
if (chl->pass) eina_stringshare_del(chl->pass);
|
||||
free(chl);
|
||||
}
|
||||
|
||||
|
@ -155,6 +156,7 @@ _config_init(void)
|
|||
#define T Config_Channel
|
||||
#define D _ex_cfg_chl_edd
|
||||
EX_CONFIG_VAL(D, T, name, EET_T_STRING);
|
||||
EX_CONFIG_VAL(D, T, pass, EET_T_STRING);
|
||||
|
||||
_ex_cfg_srv_edd = EX_CONFIG_DD_NEW("Config_Server", Config_Server);
|
||||
#undef T
|
||||
|
|
|
@ -9,6 +9,7 @@ typedef struct _Config Config;
|
|||
struct _Config_Channel
|
||||
{
|
||||
const char *name;
|
||||
const char *pass;
|
||||
};
|
||||
|
||||
struct _Config_Server
|
||||
|
|
Loading…
Reference in New Issue