summaryrefslogtreecommitdiff
path: root/libnm-util/nm-util-private.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-03-17 19:18:48 +0100
committerThomas Haller <thaller@redhat.com>2014-03-24 15:10:35 +0100
commit9e2b5330c5890da7e8a8c8819e25530be0983f54 (patch)
tree078426a7e28e0d79216645f6560a9fd3f3170df8 /libnm-util/nm-util-private.h
parent2e8b16ae4ed16b1c7e9ad19bc336e1564e2beecd (diff)
downloadNetworkManager-9e2b5330c5890da7e8a8c8819e25530be0983f54.tar.gz
libnl-util: add NMStringTableth/NMStringTable
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'libnm-util/nm-util-private.h')
-rw-r--r--libnm-util/nm-util-private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libnm-util/nm-util-private.h b/libnm-util/nm-util-private.h
index be55ee13db..5b3cb08046 100644
--- a/libnm-util/nm-util-private.h
+++ b/libnm-util/nm-util-private.h
@@ -24,9 +24,19 @@
#include <glib.h>
+#include "nm-string-table.h"
+
G_BEGIN_DECLS
typedef struct NMUtilPrivateData {
+ NMStringTable *(*f_nm_string_table_new) (NMStringTableCompareFunc compare, int argc, const NMStringTableTuple *args);
+ guint (*f_nm_string_table_size) (NMStringTable *table);
+ const char *const*(*f_nm_string_table_get_keys) (NMStringTable *table);
+ NMStringTableCompareFunc (*f_nm_string_table_get_compare_func) (NMStringTable *table);
+ gboolean (*f_nm_string_table_lookup_by_key) (NMStringTable *table, const char *key, int *out_idx, const char **out_key, gpointer **out_data);
+ gboolean (*f_nm_string_table_lookup_by_index) (NMStringTable *table, int idx, const char **out_key, gpointer **out_data);
+ gpointer (*f_nm_string_table_get_data_by_key) (NMStringTable *table, const char *key);
+ gpointer *(*f_nm_string_table_get_data) (NMStringTable *table);
} NMUtilPrivateData;
const NMUtilPrivateData *nm_util_get_private (void);