clean up write_data_cb types

This commit is contained in:
Ryan Pavlik
2011-09-06 16:08:19 -05:00
parent b68452d98e
commit c508e14935
2 changed files with 3 additions and 3 deletions

View File

@@ -583,7 +583,7 @@ int wiiuse_write_data(struct wiimote_t* wm, unsigned int addr, const byte* data,
* to a pending list and be sent out when the previous
* finishes.
*/
int wiiuse_write_data_cb(struct wiimote_t *wm,uint addr,unsigned char *data,unsigned char len,wiiuse_write_cb write_cb)
int wiiuse_write_data_cb(struct wiimote_t *wm, unsigned int addr, byte *data, byte len, wiiuse_write_cb write_cb)
{
struct data_req_t* req;

View File

@@ -761,8 +761,8 @@ typedef enum data_req_s
*/
struct data_req_t {
unsigned char data[21]; /**< buffer where read data is written */
unsigned int len;
byte data[21]; /**< buffer where read data is written */
byte len;
unsigned int addr;
data_req_s state; /**< set to 1 if not using callback and needs to be cleaned up */
wiiuse_write_cb cb; /**< read data callback */