15 lines
326 B
C++
15 lines
326 B
C++
|
|
#include <string.h>
|
||
|
|
|
||
|
|
#include "ctrl_packet.h"
|
||
|
|
|
||
|
|
void ctrl_packet_parser_init(struct ctrl_pkt_parser *handler)
|
||
|
|
{
|
||
|
|
memset(handler, 0, sizeof(struct ctrl_pkt_parser));
|
||
|
|
}
|
||
|
|
|
||
|
|
// return 0 : success
|
||
|
|
// return -1 : error
|
||
|
|
int ctrl_packet_parser_parse(struct ctrl_pkt_parser *handler, const void *data, size_t length)
|
||
|
|
{
|
||
|
|
return 0;
|
||
|
|
}
|