mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-15 16:10:33 +01:00
platform: add NMP_OBJECT_TYPE_NAME() macro
This commit is contained in:
parent
7752b2e059
commit
2c22c96235
1 changed files with 2 additions and 0 deletions
|
|
@ -561,6 +561,8 @@ _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX(NMPObjectType obj_type)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
#define NMP_OBJECT_TYPE_NAME(obj_type) (nmp_class_from_type(obj_type)->obj_type_name)
|
||||
|
||||
#define NMP_OBJECT_CAST_OBJECT(obj) \
|
||||
({ \
|
||||
typeof(obj) _obj = (obj); \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue