aboutsummaryrefslogtreecommitdiff
path: root/libqcdm/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libqcdm/src/utils.h')
-rw-r--r--libqcdm/src/utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libqcdm/src/utils.h b/libqcdm/src/utils.h
index 616c1720..15fc346b 100644
--- a/libqcdm/src/utils.h
+++ b/libqcdm/src/utils.h
@@ -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 */