err = -EPROTO;
goto done;
}
- value64 = bt_get_be64(&pdu->params[1]);
+ value64 = get_be64(&pdu->params[1]);
params = (uint8_t *) &value64;
break;
case AVRCP_EVENT_PLAYBACK_POS_CHANGED:
err = -EPROTO;
goto done;
}
- value32 = bt_get_be32(&pdu->params[1]);
+ value32 = get_be32(&pdu->params[1]);
params = (uint8_t *) &value32;
break;
case AVRCP_EVENT_ADDRESSED_PLAYER_CHANGED:
err = -EPROTO;
goto done;
}
- value16 = bt_get_be16(&pdu->params[1]);
+ value16 = get_be16(&pdu->params[1]);
params = (uint8_t *) &value16;
break;
}
goto done;
}
- duration = bt_get_be32(&pdu->params[0]);
- position = bt_get_be32(&pdu->params[4]);
+ duration = get_be32(&pdu->params[0]);
+ position = get_be32(&pdu->params[4]);
status = pdu->params[8];
err = 0;
goto done;
}
- counter = bt_get_be16(&pdu->params[1]);
- items = bt_get_be32(&pdu->params[3]);
+ counter = get_be16(&pdu->params[1]);
+ items = get_be32(&pdu->params[3]);
depth = pdu->params[9];
folders = g_new0(char *, depth + 2);
uint8_t pdu[10 + number * sizeof(uint32_t)];
pdu[0] = scope;
- bt_put_be32(start, &pdu[1]);
- bt_put_be32(end, &pdu[5]);
+ put_be32(start, &pdu[1]);
+ put_be32(end, &pdu[5]);
pdu[9] = number;
memcpy(&pdu[10], attrs, number);