Skip to content

Commit

Permalink
proto_input_handler -> bocia_input_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Sep 26, 2017
1 parent ab61240 commit 4ec76e5
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion burba/apps/hello-proto/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ uint32_t handle_command(uint8_t type, Command *command)
return sts;
}

int8_t proto_input_handler(bocia_channel_t *rd, proto_msg_t command_id,
int8_t bocia_input_handler(bocia_channel_t *rd, proto_msg_t command_id,
void *obj)
{

Expand Down
2 changes: 1 addition & 1 deletion burba/sys/bocia/bocia.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void set_reboot_mode(int mode);

static Config *config = 0;

int8_t proto_input_handler(bocia_channel_t *rd, proto_msg_t command_id,
int8_t bocia_input_handler(bocia_channel_t *rd, proto_msg_t command_id,
void *obj) {

proto_msg_t ack_type = {ACK_TYPE, 1};
Expand Down
4 changes: 2 additions & 2 deletions burba/sys/bocia/bocia_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int16_t mqtt_receive(int16_t *fdp, unsigned char **packet) {


void mqtt_receiver_handler(bocia_channel_t *rd) {
// bocia_receive(rd, proto_input_handler);
// bocia_receive(rd, bocia_input_handler);
unsigned char *pkt;
int16_t type;
unsigned char dup;
Expand All @@ -92,7 +92,7 @@ void mqtt_receiver_handler(bocia_channel_t *rd) {
pkt, MAX_MQTT_PKT_SIZE);

if (is_nais_payload(payload_in, payloadlen_in)) {
bocia_unmarshall(rd, ++payload_in, proto_input_handler);
bocia_unmarshall(rd, ++payload_in, bocia_input_handler);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion burba/sys/bocia/bocia_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int comm_handler(bocia_channel_t *rd, unsigned char* data, int len) {
DEBUG("tcpserver recv %d bytes\n", len);

//parse the binary protobuf blob
rc = bocia_unmarshall(rd, data, proto_input_handler);
rc = bocia_unmarshall(rd, data, bocia_input_handler);
DEBUG("tcpserver, rc: %d\n", rc);
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion burba/sys/bocia/bocia_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void *serial_loop(void* arg) {

if (c == RECORD_END) {
if (sts == EXPECT_END) {
bocia_unmarshall(&rd, _rxbuff, proto_input_handler);
bocia_unmarshall(&rd, _rxbuff, bocia_input_handler);
sts = WAIT_START;
line_buf_ptr = _rxbuff;
binlen = 0;
Expand Down
2 changes: 1 addition & 1 deletion burba/sys/include/bocia.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ _ssize_t bocia_remote_write(const void *data, size_t count);
* INPUTHANDLER_ERR otherwise
*
*/
int8_t proto_input_handler(bocia_channel_t *rd, proto_msg_t pkt_type,
int8_t bocia_input_handler(bocia_channel_t *rd, proto_msg_t pkt_type,
void *obj);

/**
Expand Down
2 changes: 1 addition & 1 deletion burba/tests/bocia/test_cases.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

int8_t run_test;

int8_t proto_input_handler(bocia_channel_t *rd, proto_msg_t command_id,
int8_t bocia_input_handler(bocia_channel_t *rd, proto_msg_t command_id,
void *obj) {

proto_msg_t ack_type = { ACK_TYPE, 1 };
Expand Down
2 changes: 1 addition & 1 deletion burba/tests/sbapp/test_cases.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

int8_t run_test;

int8_t proto_input_handler(bocia_channel_t *rd, proto_msg_t command_id,
int8_t bocia_input_handler(bocia_channel_t *rd, proto_msg_t command_id,
void *obj) {

proto_msg_t ack_type = { ACK_TYPE, 1 };
Expand Down

0 comments on commit 4ec76e5

Please sign in to comment.