libnm: fix NMIP4Config/NMIP6Config addresses/routes properties
authorDan Winship <danw@gnome.org>
Mon, 25 Aug 2014 19:25:27 +0000 (15:25 -0400)
committerDan Winship <danw@gnome.org>
Thu, 4 Sep 2014 13:21:05 +0000 (09:21 -0400)
commit98959d5432abfbc1ff77f9b3952ead019cba936b
tree319ed1dc4b7a04017dd3fe2288ade310c1ad3fc4
parent356fb7d77eef522767312a9a9fd8e2d2a2f77fd4
libnm: fix NMIP4Config/NMIP6Config addresses/routes properties

The docs for NMIP4Config:addresses and NMIP4Config:routes claimed that
they were GPtrArrays of NMIP4Address/NMIP4Route, but get_property()
was actually trying to set them the D-Bus representation type, and it
was failing anyway because it used g_value_set_boxed() on a parameter
that was declared GParamSpecPointer. Fix it to use a GPtrArray-valued
property, and set it to the right thing.

NMIP6Config did the right thing with its :addresses and :routes
properties, but was using custom types (NM_TYPE_IP6_ADDRESS_OBJECT_ARRAY and
NM_TYPE_IP6_ROUTE_OBJECT_ARRAY). Make it use G_TYPE_PTR_ARRAY instead.

nm-types.c, nm-types.h, and nm-types-private.h are now empty, and so
can be dropped.
13 files changed:
docs/libnm/libnm-docs.xml
libnm/Makefile.am
libnm/NetworkManager.h
libnm/libnm.ver
libnm/nm-dhcp4-config.c
libnm/nm-dhcp6-config.c
libnm/nm-ip4-config.c
libnm/nm-ip6-config.c
libnm/nm-object.c
libnm/nm-types-private.h [deleted file]
libnm/nm-types.c [deleted file]
libnm/nm-types.h [deleted file]
libnm/nm-wimax-nsp.c