How to communicate errors that are not the result of a (dbus) method call
There are a cases where we can get errors that are not the result of a user or system component issuing a dbus method call:
- automatic authorization of known devices with
auto
policy by the daemon - sync up of boot acl entries
In these cases we need to communicate errors/warnings somehow. One possible way is to have a property with an Array of notices (errors/warnings) that then can be individually dismissed or acknowledged.
struct Notice {
NoticeType type; // typdef enum { Info, Warning, Error } NoticeType;
const char *source; // object path
// maybe source type
// GError
const char *domain;
guint code;
const char *message;
};