-
Notifications
You must be signed in to change notification settings - Fork 7
/
misc.h
52 lines (51 loc) · 2.39 KB
/
misc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
enum SOFTSYNTH { MUNT, FluidSynth};
enum ASCIITRANS { AsciiNoTrans, AsciiToPetskii, AsciiToAtascii};
int misc_check_args_option (int argc, char *argv[], char * option);
char * misc_trans_to_str(enum ASCIITRANS mode);
int misc_str_to_trans(char * str);
void misc_str_to_upper(char *str);
int misc_check_file (char * fileName);
int misc_check_device (char * deviceName);
int misc_set_priority(int priority);
int misc_ipaddr_is_multicast(char * ipAddr);
void misc_print(int priority, const char* format, ... );
void misc_swrite(int fdSerial, const char* format, ... );
void misc_swrite_no_trans(int fdSerial, const char* format, ... );
int misc_is_ip_addr(char *ipAddr);
int misc_hostname_to_ip(char * hostname , char* ipAddr);
int misc_get_ipaddr(char * interface, char * buf);
int misc_is_number(char *testStr);
void misc_show_atdt(int fdSerial);
void misc_show_atip(int fdSerial);
long misc_get_timeval_diff(struct timeval * start, struct timeval * stop);
int misc_check_module_loaded (char * modName);
int misc_list_files(char * path, int fdSerial, int rows, char * fileName, int * DIR);
void misc_d_type_to_str(unsigned char type, char * buf);
int misc_file_to_serial(int fdSerial, char * fileName, int rows);
int misc_count_str_chr(char * str, char chr);
int misc_MT32_LCD(char * MT32Message, char * buf);
void misc_do_rowcheck(int fdSerial, int rows, int * rowcount, char * c);
int misc_get_core_name(char * buf, int maxBuf);
int misc_get_tmp_uartspeed();
char misc_replace_char(char * str, int strLen, char old, char new);
int misc_do_pipe(int fdSerial, char * path, char * command,
char * arg1,
char * arg2,
char * arg3,
char * arg4,
char * arg5);
char * misc_hayes_flow_to_str(int flow);
char * misc_hayes_DTR_to_str(int dtr);
char * misc_hayes_ATQ_to_str(int dtr);
char * misc_get_clrScr();
void misc_make_file(const char * filename, const char * data);
int misc_get_tmp_uartspeed();
void misc_ascii_to_petskii(char * buf, int bufLen);
void misc_ascii_to_petskii_null(char * buf);
void misc_petskii_to_ascii(char * buf, int bufLen);
void misc_petskii_to_ascii_null(char * buf);
int misc_text_to_speech_sz(char * txt, size_t len);
int misc_text_to_speech(char * txt);
//int misc_get_midi_port(char * descr);
#define TRUE 1
#define FALSE 0