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 <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103737
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 */