mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
relay: rename function relay_config_create_option_port to relay_config_create_option_port_path
This commit is contained in:
@@ -228,7 +228,7 @@ relay_command_relay (const void *pointer, void *data,
|
||||
/* check if we're expecting a path or a port */
|
||||
port_path_section = (strncmp (argv[2], "unix.", 5) == 0) ?
|
||||
relay_config_section_path : relay_config_section_port;
|
||||
if (relay_config_create_option_port (
|
||||
if (relay_config_create_option_port_path (
|
||||
NULL, NULL,
|
||||
relay_config_file,
|
||||
port_path_section,
|
||||
|
||||
@@ -622,15 +622,15 @@ relay_config_delete_port_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Callback called when an option is created in section "port".
|
||||
* Callback called when an option is created in section "port" or "path".
|
||||
*/
|
||||
|
||||
int
|
||||
relay_config_create_option_port (const void *pointer, void *data,
|
||||
struct t_config_file *config_file,
|
||||
struct t_config_section *section,
|
||||
const char *option_name,
|
||||
const char *value)
|
||||
relay_config_create_option_port_path (const void *pointer, void *data,
|
||||
struct t_config_file *config_file,
|
||||
struct t_config_section *section,
|
||||
const char *option_name,
|
||||
const char *value)
|
||||
{
|
||||
int rc, protocol_number, ipv4, ipv6, ssl, unix_socket;
|
||||
char *error, *protocol, *protocol_args;
|
||||
@@ -1149,7 +1149,7 @@ relay_config_init ()
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL, NULL,
|
||||
&relay_config_create_option_port, NULL, NULL,
|
||||
&relay_config_create_option_port_path, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
if (!ptr_section)
|
||||
{
|
||||
@@ -1167,7 +1167,7 @@ relay_config_init ()
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL, NULL,
|
||||
NULL, NULL, NULL,
|
||||
&relay_config_create_option_port, NULL, NULL,
|
||||
&relay_config_create_option_port_path, NULL, NULL,
|
||||
NULL, NULL, NULL);
|
||||
if (!ptr_section)
|
||||
{
|
||||
|
||||
@@ -68,11 +68,11 @@ extern int relay_config_check_network_totp_secret (const void *pointer,
|
||||
void *data,
|
||||
struct t_config_option *option,
|
||||
const char *value);
|
||||
extern int relay_config_create_option_port (const void *pointer, void *data,
|
||||
struct t_config_file *config_file,
|
||||
struct t_config_section *section,
|
||||
const char *option_name,
|
||||
const char *value);
|
||||
extern int relay_config_create_option_port_path (const void *pointer, void *data,
|
||||
struct t_config_file *config_file,
|
||||
struct t_config_section *section,
|
||||
const char *option_name,
|
||||
const char *value);
|
||||
extern int relay_config_check_path_len (const char *path);
|
||||
extern int relay_config_init ();
|
||||
extern int relay_config_read ();
|
||||
|
||||
Reference in New Issue
Block a user