summaryrefslogtreecommitdiff
path: root/libnm-core/nm-core-internal.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-10-30 12:23:34 +0100
committerThomas Haller <thaller@redhat.com>2017-10-30 14:12:41 +0100
commitf3146de41b02f57dddbf7fa1b234db8550ff1278 (patch)
tree4a1c8a1b908fbec6d68cc9743d053382d06fff78 /libnm-core/nm-core-internal.h
parent4a8a5495a914be95d3d09435f3d63fc16db954f4 (diff)
downloadNetworkManager-f3146de41b02f57dddbf7fa1b234db8550ff1278.tar.gz
libnm: avoid unnecessary copies accessing NMIPRoute's attributes
We want to support large number of routes. Reduce the number of copies, by adding internal accessor functions. Also, work around a complaint from coverity: 46. NetworkManager-1.9.2/libnm-core/nm-utils.c:1987: dereference: Dereferencing a null pointer "names".
Diffstat (limited to 'libnm-core/nm-core-internal.h')
-rw-r--r--libnm-core/nm-core-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-core/nm-core-internal.h b/libnm-core/nm-core-internal.h
index b6be4794e8..adba8ed116 100644
--- a/libnm-core/nm-core-internal.h
+++ b/libnm-core/nm-core-internal.h
@@ -199,6 +199,8 @@ GHashTable *_nm_utils_copy_strdict (GHashTable *strdict);
typedef gpointer (*NMUtilsCopyFunc) (gpointer);
gboolean _nm_ip_route_attribute_validate_all (const NMIPRoute *route);
+const char **_nm_ip_route_get_attribute_names (const NMIPRoute *route, gboolean sorted, guint *out_length);
+GHashTable *_nm_ip_route_get_attributes_direct (NMIPRoute *route);
static inline void
_nm_auto_ip_route_unref (NMIPRoute **v)