mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 16:08:02 +02:00
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.
This commit is contained in:
parent
0e44c294e7
commit
25fd48948a
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue