Added tox-weechat-utils.*

This commit is contained in:
Håvard Pettersson 2014-09-02 13:58:34 +02:00
parent abd3505d40
commit 7c2d98c32b
2 changed files with 55 additions and 0 deletions

16
src/tox-weechat-utils.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef TOX_WEECHAT_UTILS_H
#define TOX_WEECHAT_UTILS_H
#include <stdint.h>
/**
* Convert a hex string to a binary address. Return value must be freed.
*/
uint8_t *tox_weechat_hex2bin(const char *hex);
/**
* Convert a binary address to a null-terminated hex string. Must be freed.
*/
char *tox_weechat_bin2hex(const char *hex);
#endif // TOX_WEECHAT_UTILS_H