mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 01:10:08 +01:00
platform: add nmp_object_indirect_id_*() helpers
This commit is contained in:
parent
14fa487a60
commit
1a4cc800f6
2 changed files with 22 additions and 0 deletions
|
|
@ -1570,6 +1570,25 @@ _vt_cmd_plobj_hash_update_routing_rule (const NMPlatformObject *obj, NMHashState
|
|||
return nm_platform_routing_rule_hash_update ((const NMPlatformRoutingRule *) obj, NM_PLATFORM_ROUTING_RULE_CMP_TYPE_FULL, h);
|
||||
}
|
||||
|
||||
guint
|
||||
nmp_object_indirect_id_hash (gconstpointer a)
|
||||
{
|
||||
const NMPObject *const*p_obj = a;
|
||||
|
||||
return nmp_object_id_hash (*p_obj);
|
||||
}
|
||||
|
||||
gboolean
|
||||
nmp_object_indirect_id_equal (gconstpointer a, gconstpointer b)
|
||||
{
|
||||
const NMPObject *const*p_obj_a = a;
|
||||
const NMPObject *const*p_obj_b = b;
|
||||
|
||||
return nmp_object_id_equal (*p_obj_a, *p_obj_b);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
gboolean
|
||||
nmp_object_is_alive (const NMPObject *obj)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -674,6 +674,9 @@ nmp_object_id_equal (const NMPObject *obj1, const NMPObject *obj2)
|
|||
return nmp_object_id_cmp (obj1, obj2) == 0;
|
||||
}
|
||||
|
||||
guint nmp_object_indirect_id_hash (gconstpointer a);
|
||||
gboolean nmp_object_indirect_id_equal (gconstpointer a, gconstpointer b);
|
||||
|
||||
gboolean nmp_object_is_alive (const NMPObject *obj);
|
||||
gboolean nmp_object_is_visible (const NMPObject *obj);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue