about summary refs log tree commit diff
path: root/src/settings/plugins/ifcfg-rh/utils.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2015-05-05 17:49:11 +0200
committerMichael Biebl <biebl@debian.org>2015-05-05 17:49:11 +0200
commite847e3cc3e4eded45a358bf838e1edcf4c12fcb5 (patch)
tree9db16e390931b9b800a174c7117b9297b351283f /src/settings/plugins/ifcfg-rh/utils.h
parent1cd35b49de89f65c386ae2ff98a8e08342c080b0 (diff)
parentf408e27bccfacf347605a8d98649975a68f38a17 (diff)
Merge tag 'upstream/1.0.2'
Upstream version 1.0.2
Diffstat (limited to 'src/settings/plugins/ifcfg-rh/utils.h')
-rw-r--r--src/settings/plugins/ifcfg-rh/utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/settings/plugins/ifcfg-rh/utils.h b/src/settings/plugins/ifcfg-rh/utils.h
index 95af828b..445437c4 100644
--- a/src/settings/plugins/ifcfg-rh/utils.h
+++ b/src/settings/plugins/ifcfg-rh/utils.h
@@ -25,6 +25,13 @@
 #include <nm-connection.h>
 #include "shvar.h"
 #include "common.h"
+#include "nm-logging.h"
+
+#define NM_IFCFG_CONNECTION_LOG_PATH(path)  str_if_set (path,"in-memory")
+#define NM_IFCFG_CONNECTION_LOG_FMT         "%s (%s,\"%s\")"
+#define NM_IFCFG_CONNECTION_LOG_ARG(con)    NM_IFCFG_CONNECTION_LOG_PATH (nm_settings_connection_get_filename ((NMSettingsConnection *) (con))), nm_connection_get_uuid ((NMConnection *) (con)), nm_connection_get_id ((NMConnection *) (con))
+#define NM_IFCFG_CONNECTION_LOG_FMTD        "%s (%s,\"%s\",%p)"
+#define NM_IFCFG_CONNECTION_LOG_ARGD(con)   NM_IFCFG_CONNECTION_LOG_PATH (nm_settings_connection_get_filename ((NMSettingsConnection *) (con))), nm_connection_get_uuid ((NMConnection *) (con)), nm_connection_get_id ((NMConnection *) (con)), (con)
 
 char *utils_single_quote_string (const char *str);
 
@@ -47,6 +54,7 @@ shvarFile *utils_get_route_ifcfg (const char *parent, gboolean should_create);
 shvarFile *utils_get_route6_ifcfg (const char *parent, gboolean should_create);
 
 gboolean utils_has_route_file_new_syntax (const char *filename);
+gboolean utils_has_complex_routes (const char *filename);
 
 gboolean utils_ignore_ip_config (NMConnection *connection);