mirror of
https://github.com/Tha14/toxic.git
synced 2024-06-29 15:07:46 +02:00
28 lines
741 B
C
28 lines
741 B
C
/*
|
|
* Toxic -- Tox Curses Client
|
|
*/
|
|
|
|
/* convert a hex string to binary */
|
|
unsigned char *hex_string_to_bin(char hex_string[]);
|
|
|
|
/* get the current local time */
|
|
struct tm *get_time(void);
|
|
|
|
/* Prints the time to given window */
|
|
void print_time(WINDOW *window);
|
|
|
|
/* Returns 1 if the string is empty, 0 otherwise */
|
|
int string_is_empty(char *string);
|
|
|
|
/* convert wide characters to null terminated string */
|
|
uint8_t *wcs_to_char(wchar_t *string);
|
|
|
|
/* convert a wide char to null terminated string */
|
|
char *wc_to_char(wchar_t ch);
|
|
|
|
/* Returns true if connection has timed out, false otherwise */
|
|
bool timed_out(uint64_t timestamp, uint64_t timeout, uint64_t curtime);
|
|
|
|
/* Beeps and makes window tab blink */
|
|
void alert_window(ToxWindow *self);
|