diff options
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r-- | src/cfg_file.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h index b90171426..f07539295 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -336,6 +336,15 @@ struct config_file { /** + * Parse host[:port[:priority]] line + * @param ina host address + * @param port port + * @param priority priority + * @return TRUE if string was parsed + */ +gboolean parse_host_port_priority (const gchar *str, struct in_addr *ina, guint16 *port, guint *priority); + +/** * Parse host:port line * @param ina host address * @param port port @@ -344,6 +353,14 @@ struct config_file { gboolean parse_host_port (const gchar *str, struct in_addr *ina, guint16 *port); /** + * Parse host:priority line + * @param ina host address + * @param priority priority + * @return TRUE if string was parsed + */ +gboolean parse_host_priority (const gchar *str, struct in_addr *ina, guint *priority); + +/** * Parse bind credits * @param cf config file to use * @param str line that presents bind line |