mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-18 17:48:28 +02:00
glib-aux: add ref/unref function for down-cast NMRefString
This commit is contained in:
parent
e1667650f4
commit
580c244f04
1 changed files with 12 additions and 0 deletions
|
|
@ -152,6 +152,18 @@ NM_REF_STRING_UPCAST(const char *str)
|
|||
return rstr;
|
||||
}
|
||||
|
||||
static inline NMRefString *
|
||||
nm_ref_string_ref_upcast(const char *str)
|
||||
{
|
||||
return nm_ref_string_ref(NM_REF_STRING_UPCAST(str));
|
||||
}
|
||||
|
||||
static inline void
|
||||
nm_ref_string_unref_upcast(const char *str)
|
||||
{
|
||||
nm_ref_string_unref(NM_REF_STRING_UPCAST(str));
|
||||
}
|
||||
|
||||
static inline gboolean
|
||||
nm_ref_string_reset_str(NMRefString **ptr, const char *str)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue