NetworkManager/src/platform/tests
Thomas Haller d45bb6d461 platform: implement NMPObject and NMPCache
NMPObject is a simple "object" implemenation around NMPlatformObject.
They are ref-counted and have a class-pointer. Several basic functions
like equality, hash, to-string are implemented.

NMPCache is can be used to store the NMPObject. Objects are indexed
via their primary id, but there is also multi-lookup via NMCacheId
and NMMultiIndex.

Part of the implementation is inside "nm-linux-platform.c",
because it depends on utility functions from there.

(cherry picked from commit 53f98e7f9e)
2015-06-21 15:21:56 +02:00
..
.gitignore platform: add nmp-object.h file 2015-06-21 15:21:56 +02:00
dump.c platform: refactor extraction of type-name for link 2015-06-17 15:28:01 +02:00
Makefile.am platform: add nmp-object.h file 2015-06-21 15:21:56 +02:00
monitor.c all: consistently include config.h 2014-11-13 17:18:42 -05:00
platform.c platform: return link objects from add functions 2015-06-17 16:19:19 +02:00
test-address.c platform: return link objects from add functions 2015-06-17 16:19:19 +02:00
test-cleanup.c platform: return link objects from add functions 2015-06-17 16:19:19 +02:00
test-common.c all: fix a compiler warning about function declarations 2015-06-19 12:40:54 +02:00
test-common.h tests: allow running the link test without a writeable sysfs 2015-06-19 12:26:02 +02:00
test-general.c platform: add nm-platform-utils.[ch] files 2015-06-19 12:26:02 +02:00
test-link.c tests: allow running the link test without a writeable sysfs 2015-06-19 12:26:02 +02:00
test-nmp-object.c platform: implement NMPObject and NMPCache 2015-06-21 15:21:56 +02:00
test-route.c platform: add scope parameter to NMPlatformIP4Route 2015-06-21 15:18:56 +02:00