Files
MidiLink_MiSTer/misc.h

48 lines
2.1 KiB
C

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();
//int misc_get_midi_port(char * descr);
#define TRUE 1
#define FALSE 0