/** * If going forward allow writing to the one with UID one higher. * If going backward allow writing to the one with UID one lower.. */ static qeo_policy_perm_t writer_on_policy_update(const qeo_state_writer_t *writer, const qeo_policy_identity_t *identity, uintptr_t userdata) { log_self("writer policy update for %" PRIx64 ": %" PRIx64, _self, qeo_policy_identity_get_uid(identity)); return on_policy_update(identity, &_wr_policy_updates, true); }
/** * If going forward allow reading from the one with UID one lower. * If going backward allow reading from the one with UID one higher. */ static qeo_policy_perm_t reader_on_policy_update(const qeo_state_change_reader_t *reader, const qeo_policy_identity_t *identity, uintptr_t userdata) { log_self("reader policy update for %" PRIx64 ": %" PRIx64, _self, qeo_policy_identity_get_uid(identity)); return on_policy_update(identity, &_rd_policy_updates, false); }
static qeo_policy_perm_t on_policy_reader_update(const qeo_event_reader_t *reader, const qeo_policy_identity_t *identity, uintptr_t userdata) { return on_policy_update(identity, userdata); }