qcdm: implement command handling and minimal infrastructure
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
#define DIAG_CONTROL_CHAR 0x7E
|
||||
#define DIAG_TRAILER_LEN 3
|
||||
|
||||
guint16 crc16 (const char *buffer, gsize len);
|
||||
|
||||
gsize dm_escape (const char *inbuf,
|
||||
@@ -33,5 +36,11 @@ gsize dm_unescape (const char *inbuf,
|
||||
gsize outbuf_len,
|
||||
gboolean *escaping);
|
||||
|
||||
gsize dm_prepare_buffer (char *inbuf,
|
||||
gsize cmd_len,
|
||||
gsize inbuf_len,
|
||||
char *outbuf,
|
||||
gsize outbuf_len);
|
||||
|
||||
#endif /* UTILS_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user