Skip to content

Commit

Permalink
Rename joybus_send_command to joybus_exec_command
Browse files Browse the repository at this point in the history
  • Loading branch information
meeq committed Sep 5, 2023
1 parent 30cf1d3 commit 5c8b70e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ typedef struct controller_origin_data

/// @cond

__attribute__((deprecated("use joybus_send_command instead")))
__attribute__((deprecated("use joybus_exec_command instead")))
static inline void execute_raw_command( int controller, int command, int bytesout, int bytesin, unsigned char *out, unsigned char *in )
{
joybus_send_command(controller, command, bytesout, bytesin, out, in);
joybus_exec_command(controller, command, bytesout, bytesin, out, in);
}

__attribute__((deprecated("use joypad_read_n64_inputs_sync instead")))
Expand Down
2 changes: 1 addition & 1 deletion include/joybus.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void joybus_exec( const void * inblock, void * outblock );
* @param send_data Buffer of send_len bytes to send in the Joybus command.
* @param recv_data Buffer of recv_len bytes to receive from the Joybus reply.
*/
void joybus_send_command(
void joybus_exec_command(
int port,
uint8_t command_id,
uint8_t send_len,
Expand Down
4 changes: 2 additions & 2 deletions src/controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ void controller_read_gc_origin( struct controller_origin_data * outdata )
* @param[out] in
* The result bytes returned by the operation
*
* @deprecated Use #joybus_send_command instead
* @deprecated Use #joybus_exec_command instead
*/
void execute_raw_command( int controller, int command, int bytesout, int bytesin, unsigned char *out, unsigned char *in )
{
joybus_send_command(controller, command, bytesout, bytesin, out, in);
joybus_exec_command(controller, command, bytesout, bytesin, out, in);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/joybus.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void joybus_exec( const void * input, void * output )
}
}

void joybus_send_command(
void joybus_exec_command(
int port,
uint8_t command_id,
uint8_t send_len,
Expand Down

0 comments on commit 5c8b70e

Please sign in to comment.