STATE_REGISTERED
if (state[supplier_id] != STATE_REGISTERED ||
if (priv->state[cap_id] == STATE_REGISTERED ||
priv->state[cap_id] = STATE_REGISTERED;