Added tox-weechat-utils.*
This commit is contained in:
parent
abd3505d40
commit
7c2d98c32b
2 changed files with 55 additions and 0 deletions
16
src/tox-weechat-utils.h
Normal file
16
src/tox-weechat-utils.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue