Commit 25fd4894 authored by Thomas Haller's avatar Thomas Haller

platform: make plobj argument of nmp_object_new() void pointer

NMPlatformObject is a base-type of all actual platform structs.
We very seldomly use this type directly. Most callers that pass
the plobj to nmp_object_new() will need to cast it.

Make the varible a void pointer to not require the cast.
parent 0e44c294
......@@ -786,7 +786,7 @@ _nmp_object_new_from_class (const NMPClass *klass)
NMPObject *
nmp_object_new (NMPObjectType obj_type, const NMPlatformObject *plobj)
nmp_object_new (NMPObjectType obj_type, gconstpointer plobj)
const NMPClass *klass = nmp_class_from_type (obj_type);
NMPObject *obj;
......@@ -673,7 +673,7 @@ nmp_object_unref (const NMPObject *obj)
_changed; \
NMPObject *nmp_object_new (NMPObjectType obj_type, const NMPlatformObject *plob);
NMPObject *nmp_object_new (NMPObjectType obj_type, gconstpointer plobj);
NMPObject *nmp_object_new_link (int ifindex);
const NMPObject *nmp_object_stackinit (NMPObject *obj, NMPObjectType obj_type, gconstpointer plobj);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment