Commit 948ce614 authored by Simon McVittie's avatar Simon McVittie

DBusCredentials: Add _dbus_clear_credentials()

Not to be confused with _dbus_credentials_clear(), which does something
different (this is a little unfortunate, but the fact that they take
different types should clarify which is which).
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103737
parent 2812966f
......@@ -105,6 +105,13 @@ DBUS_PRIVATE_EXPORT
dbus_bool_t _dbus_credentials_to_string_append (DBusCredentials *credentials,
DBusString *string);
static inline void
_dbus_clear_credentials (DBusCredentials **pointer_to_creds)
{
_dbus_clear_pointer_impl (DBusCredentials, pointer_to_creds,
_dbus_credentials_unref);
}
DBUS_END_DECLS
#endif /* DBUS_CREDENTIALS_H */
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