mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
Add function to convert a hex string to binary.
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
#ifndef DICMOTE_H
|
||||
#define DICMOTE_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define DICMOTE_NAME "DiscImageChef Remote Server"
|
||||
#define DICMOTE_VERSION "0.99"
|
||||
#define DICMOTE_PORT 6666
|
||||
@@ -401,5 +403,7 @@ int32_t SendScsiCommand(int device_fd,
|
||||
uint32_t cdb_len,
|
||||
uint32_t* buf_len,
|
||||
uint32_t* sense_len);
|
||||
int hexchr2bin(const char hex, char* out);
|
||||
size_t hexs2bin(const char* hex, unsigned char** out);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user