[Dsctl-devel] SF.net SVN: dsctl: [141] src
Status: Alpha
Brought to you by:
roger-linux
From: <rog...@us...> - 2007-11-11 21:28:56
|
Revision: 141 http://dsctl.svn.sourceforge.net/dsctl/?rev=141&view=rev Author: roger-linux Date: 2007-11-11 13:28:54 -0800 (Sun, 11 Nov 2007) Log Message: ----------- src/commands.c - Added: New commands/functions. (Not implemented into dump/load yet.) Fixed: BKL not getting all of it's data. Added: Stubs/comments for future commands/functions. src/utils.h - Trivial: Added comments to my functions for easier reading. src/commands.h - Trivial: Uncommented the function names I added today. (Corrected a few of the newly uncommented functions.) src/human_commands.c - Trivial: Adjusted comment styles. Modified Paths: -------------- src/commands.c src/commands.h src/human_commands.c src/utils.h Modified: src/commands.c =================================================================== --- src/commands.c 2007-11-10 21:40:39 UTC (rev 140) +++ src/commands.c 2007-11-11 21:28:54 UTC (rev 141) @@ -356,8 +356,8 @@ /*printf("%s\n(%i)\n", answer, strlen(answer)); */ parse_fields(answer, field); - /* We have 2 parsed fields to print for this command */ - for (i = 0; i <= 1; i++) + /* We have 3 parsed fields to print for this command */ + for (i = 0; i <= 2; i++) { if (i != 0) printf(","); @@ -371,10 +371,30 @@ /*********************************************************************** * Set Backlight ***********************************************************************/ -/*int set_backlight(int fd, char **parsed_line) +/* TODO: This needs to be implemented into load() & tested */ +int set_backlight(int fd, char **parsed_line) { + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "BKL,%s,%s", parsed_line[1], parsed_line[2]); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "BKL,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + return(0); -}*/ +} /*********************************************************************** * Get Key Beep @@ -408,6 +428,34 @@ } /*********************************************************************** +* Set Key Beep +***********************************************************************/ +/* TODO: This needs to be implemented into load() & tested */ +int set_key_beep(int fd, char **parsed_line) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "KBP,%s", parsed_line[1]); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "KBP,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Get Opening Message ***********************************************************************/ int get_opening_message(int fd) @@ -440,6 +488,35 @@ } /*********************************************************************** +* Set Opening Message +***********************************************************************/ +/* TODO: This needs to be implemented into load() & tested */ +int set_opening_message(int fd, char **parsed_line) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "OMS,%s,%s,%s,%s", parsed_line[1], parsed_line[2], + parsed_line[3], parsed_line[4]); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "OMS,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Get Priority Mode ***********************************************************************/ int get_priority_mode(int fd) @@ -471,6 +548,34 @@ } /*********************************************************************** +* Set Priority Mode +***********************************************************************/ +/* TODO: This needs to be implemented into load() & tested */ +int set_priority_mode(int fd, char **parsed_line) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "PRI,%s", parsed_line[1]); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "PRI,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Get Auto Gain Control ***********************************************************************/ int get_auto_gain_control(int fd) @@ -502,6 +607,34 @@ } /*********************************************************************** +* Set Auto Gain Control +***********************************************************************/ +/* TODO: This needs to be implemented into load() & tested */ +int set_auto_gain_control(int fd, char **parsed_line) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "AGV,%s,%s", parsed_line[1], parsed_line[2]); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "AGV,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Get System Count ***********************************************************************/ int get_system_count(int fd) @@ -630,6 +763,37 @@ } /*********************************************************************** +* Set System/Site Quick Lockout +***********************************************************************/ +/* TODO: This needs to be implemented into load() & tested */ +int set_system_quick_lockout(int fd, char **parsed_line) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "QSL,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s", parsed_line[1], + parsed_line[2], parsed_line[3], parsed_line[4], + parsed_line[5], parsed_line[6], parsed_line[7], + parsed_line[8], parsed_line[9], parsed_line[10]); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "QSL,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Get Group Quick Lockout ***********************************************************************/ int get_group_quick_lockout(int fd, int system_index) @@ -661,6 +825,34 @@ } /*********************************************************************** +* Set Group Quick Lockout +***********************************************************************/ +/* TODO: This needs to be implemented into load() & tested */ +int set_group_quick_lockout(int fd, int system_index, char **parsed_line) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "QGL,%i,%s", system_index, parsed_line[1]); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "QGL,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Clear All Memory ***********************************************************************/ int clear_memory(int fd) @@ -715,6 +907,34 @@ } /*********************************************************************** +* Delete System +***********************************************************************/ +/* TODO: This needs to be implemented & tested */ +int delete_system(int fd, int system_index) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "DSY,%i", system_index); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "DSY,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Get System ***********************************************************************/ int get_system_info(int fd, int system_index, char *system_type, @@ -926,6 +1146,34 @@ } /*********************************************************************** +* Delete Group/Site +***********************************************************************/ +/* TODO: This needs to be implemented & tested */ +int delete_site_or_group(int fd, int site_or_group_index) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "DGR,%i", site_or_group_index); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "DGR,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Get Group Information ***********************************************************************/ int get_group_info(int fd, int group_index, char *channel_index) @@ -1051,6 +1299,34 @@ } /*********************************************************************** +* Delete Channel +***********************************************************************/ +/* TODO: This needs to be implemented & tested */ +int delete_channel(int fd, int channel_index) +{ + char answer[100], command[500]; + + memset(answer, 0, 100); + memset(command, 0, 500); + + snprintf(command, 500, + "DCH,%i", channel_index); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "DCH,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + +/*********************************************************************** * Get Channel Information ***********************************************************************/ int get_channel_info(int fd, int channel_index) @@ -1463,7 +1739,7 @@ /*********************************************************************** * Get Locked Out TGIDs ***********************************************************************/ -/* TODO - Ensure GLI info is downloading. It seems to work. */ +/* TODO - Check GLI info is downloading. It seems to work. */ int get_lockout_tgid(int fd, int system_index) { char answer[100], command[100]; @@ -1506,7 +1782,7 @@ /*********************************************************************** * Get Search Lockout TGID ***********************************************************************/ -/* TODO - Ensure SLI info is downloading. It seems to work. */ +/* TODO - Check SLI info is downloading. It seems to work. */ int get_search_lockout_tgid(int fd, int system_index) { char answer[100], command[100]; @@ -1547,22 +1823,124 @@ } /*********************************************************************** -* Unlock TGID - TODO +* Unlock TGID ***********************************************************************/ -/*int unlock_tgid(int fd, int system_index) +/* TODO: This needs to be implemented & tested */ +int unlock_tgid(int fd, int system_index, int tgid) { + char answer[100], command[500]; -} */ + memset(answer, 0, 100); + memset(command, 0, 500); + snprintf(command, 500, + "ULI,%i,%i", system_index, tgid); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "ULI,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + /*********************************************************************** -* Lockout TGID - TODO +* Lockout TGID ***********************************************************************/ -/* int lockout_tgid(int fd, int system_index) +/* TODO: This needs to be implemented & tested */ +int lockout_tgid(int fd, int system_index, int tgid) { + char answer[100], command[500]; -} */ + memset(answer, 0, 100); + memset(command, 0, 500); + snprintf(command, 500, + "LOI,%i,%i", system_index, tgid); + printf("\nCommand == %s\n", command); + do_command(fd, command, answer); + printf("%s\n(%i)\n", answer, strlen(answer)); + + check_err(command, answer); + + if (strncmp(answer, "LOI,OK", 6) != 0) + { + exit_prg_mode(fd); + u_err(command, answer); + } + + return(0); +} + /*********************************************************************** +* Get Reverse Index +***********************************************************************/ +/* TODO: Unused. This needs to be implemented & tested if needed. */ +int reverse_index(int fd, int index) +{ + char answer[100], command[100]; + char *field[100]; + int i; + + memset(answer, 0, 100); + memset(command, 0, 100); + memset(field, 0, 100); + snprintf(command, 100, "REV,%i", index); + /*printf("\nCommand == %s\n", command); */ + do_command(fd, command, answer); + /*printf("%s\n(%i)\n", answer, strlen(answer)); */ + parse_fields(answer, field); + + /* We have 2 parsed fields to print for this command */ + for (i = 0; i <= 1; i++) + { + if (i != 0) + printf(","); + printf("%s", field[i]); + } + printf("\n"); + + return (0); +} + +/*********************************************************************** +* Get Forward Index +***********************************************************************/ +/* TODO: Unused. This needs to be implemented & tested if needed. */ +int forward_index(int fd, int index) +{ + char answer[100], command[100]; + char *field[100]; + int i; + + memset(answer, 0, 100); + memset(command, 0, 100); + memset(field, 0, 100); + snprintf(command, 100, "FWD,%i", index); + /*printf("\nCommand == %s\n", command); */ + do_command(fd, command, answer); + /*printf("%s\n(%i)\n", answer, strlen(answer)); */ + parse_fields(answer, field); + + /* We have 2 parsed fields to print for this command */ + for (i = 0; i <= 1; i++) + { + if (i != 0) + printf(","); + printf("%s", field[i]); + } + printf("\n"); + + return (0); +} + +/*********************************************************************** * Get Remains of Memory ***********************************************************************/ int get_remains_memory_block(int fd) @@ -1626,6 +2004,7 @@ /*********************************************************************** * Get Location Alert System Index Head ***********************************************************************/ +/* TODO: This needs to be tested/checked. */ int loc_alert_system_index_head(int fd, char *loc_alert_system_type) { char answer[100], command[100]; @@ -1646,8 +2025,39 @@ } /*********************************************************************** -* Get Location Alert System System Info +* Get Location Alert System Index Tail ***********************************************************************/ +/* TODO: Unused. This needs to be implemented & tested if needed. */ +int get_loc_alert_system_index_tail(int fd, char *loc_alert_system_type) +{ + char answer[100], command[100]; + char *field[100]; + int loc_indextail = 0; + + memset(answer, 0, 100); + memset(command, 0, 100); + memset(field, 0, 100); + + snprintf(command, 100, "LIT,%s", loc_alert_system_type); + /*printf("Command == %s\n", command); */ + do_command(fd, command, answer); + /*printf("\n%s\n(%i)\n", answer, strlen(answer)); */ + sscanf(answer, "LIT,%i", &loc_indextail); + + return (loc_indextail); +} + +/*********************************************************************** +* Create Location Alert System +***********************************************************************/ + +/*********************************************************************** +* Delete Location Alert System +***********************************************************************/ + +/*********************************************************************** +* Get Location Alert System Info +***********************************************************************/ int get_loc_alert_system_info(int fd, int loc_alert_system_index) { char answer[500], command[100]; @@ -1682,6 +2092,10 @@ } /*********************************************************************** +* Set Location Alert System Info +***********************************************************************/ + +/*********************************************************************** * Get Search/Close Call Settings ***********************************************************************/ int get_srch_cc_settings(int fd) @@ -1713,6 +2127,14 @@ } /*********************************************************************** +* Get Search/Close Call Settings +***********************************************************************/ + +/*********************************************************************** +* Set Search/Close Call Settings +***********************************************************************/ + +/*********************************************************************** * Get Broadcast Screen Band Settings ***********************************************************************/ int get_bcast_screen_band_settings(int fd) @@ -1748,6 +2170,10 @@ } /*********************************************************************** +* Set Broadcast Screen Band Settings +***********************************************************************/ + +/*********************************************************************** * Get Search Key Settings ***********************************************************************/ int get_search_key_settings(int fd) @@ -1779,6 +2205,10 @@ } /*********************************************************************** +* Set Search Key Settings +***********************************************************************/ + +/*********************************************************************** * Get Global Lockout Frequency ***********************************************************************/ int get_global_lockout_freq(int fd) @@ -1821,6 +2251,14 @@ } /*********************************************************************** +* Unlock Global Lockout +***********************************************************************/ + +/*********************************************************************** +* Lockout Frequency +***********************************************************************/ + +/*********************************************************************** * Get Close Call Settings ***********************************************************************/ int get_close_call_settings(int fd) @@ -1852,6 +2290,10 @@ } /*********************************************************************** +* Set Close Call Settings +***********************************************************************/ + +/*********************************************************************** * Get Service Search Settings ***********************************************************************/ int get_service_search_settings(int fd) @@ -1891,6 +2333,10 @@ } /*********************************************************************** +* Set Service Search Settings +***********************************************************************/ + +/*********************************************************************** * Get Custom Search Group ***********************************************************************/ int get_custom_search_group(int fd) @@ -1922,6 +2368,10 @@ } /*********************************************************************** +* Set Custom Search Group +***********************************************************************/ + +/*********************************************************************** * Get Custom Search Settings ***********************************************************************/ int get_custom_search_settings(int fd) @@ -1959,6 +2409,10 @@ } /*********************************************************************** +* Set Custom Search Settings +***********************************************************************/ + +/*********************************************************************** * Get Weather Settings ***********************************************************************/ int get_weather_settings(int fd) @@ -1990,6 +2444,10 @@ } /*********************************************************************** +* Set Weather Settings +***********************************************************************/ + +/*********************************************************************** * Get Same Group Settings ***********************************************************************/ int get_same_group_settings(int fd) @@ -2024,6 +2482,10 @@ } /*********************************************************************** +* Set Same Group Settings +***********************************************************************/ + +/*********************************************************************** * Get Tone-Out Settings ***********************************************************************/ int get_tone_out_settings(int fd) @@ -2059,6 +2521,10 @@ } /*********************************************************************** +* Set Tone-Out Settings +***********************************************************************/ + +/*********************************************************************** * Get LCD Contrast Settings ***********************************************************************/ int get_lcd_contrast_settings(int fd) @@ -2090,6 +2556,10 @@ } /*********************************************************************** +* Set LCD Contrast Settings +***********************************************************************/ + +/*********************************************************************** * Get LCD Upside Down Settings ***********************************************************************/ int get_lcd_upside_down_settings(int fd) @@ -2121,6 +2591,10 @@ } /*********************************************************************** +* Set LCD Upside Down Settings +***********************************************************************/ + +/*********************************************************************** * Get Scanner Option Settings ***********************************************************************/ int get_scanner_option_settings(int fd) @@ -2152,6 +2626,26 @@ } /*********************************************************************** +* Set Scanner Option Settings +***********************************************************************/ + +/*********************************************************************** +* Get Volume Level Settings +***********************************************************************/ + +/*********************************************************************** +* Set Volume Level Settings +***********************************************************************/ + +/*********************************************************************** +* Get Squelch Level Settings +***********************************************************************/ + +/*********************************************************************** +* Set Squelch Level Settings +***********************************************************************/ + +/*********************************************************************** * Get APCO Data Settings ***********************************************************************/ int get_apco_settings(int fd) @@ -2183,7 +2677,12 @@ } /*********************************************************************** +* Set APCO Data Settings +***********************************************************************/ + +/*********************************************************************** * Get GPS Display Option +* TODO: I don't have a GPS. Needs implementing & testing. ***********************************************************************/ int get_gps_display_option(int fd) { @@ -2214,7 +2713,13 @@ } /*********************************************************************** +* Set GPS Display Option +* TODO: I don't have a GPS. Needs implementing & testing. +***********************************************************************/ + +/*********************************************************************** * Get GGA Data from GPS +* TODO: I don't have a GPS. Needs implementing & testing. ***********************************************************************/ int get_gps_gga_data(int fd) { @@ -2246,6 +2751,7 @@ /*********************************************************************** * Get RMC Data from GPS +* TODO: I don't have a GPS. Needs implementing & testing. ***********************************************************************/ int get_gps_rmc_data(int fd) { Modified: src/commands.h =================================================================== --- src/commands.h 2007-11-10 21:40:39 UTC (rev 140) +++ src/commands.h 2007-11-11 21:28:54 UTC (rev 141) @@ -38,9 +38,11 @@ /*********************************************************************** * Function Declarations + * TODO: Finish implementing commented-out functions below + * TODO: Future frontend work might need return of entire parsed_fields + * instead of just printing (ie. to stdout/file) and returning + * nothing. Hence, these also might become installed libraries. ***********************************************************************/ -/* TODO: Finish implementing commented-out functions below */ - void get_current_tgid_status(int fd); int push_key(int fd, char key_code, char key_mode); int quick_search_hold_mode(int fd, char **parsed_line); @@ -53,20 +55,20 @@ int exit_prg_mode(int fd); int get_backlight(int fd); -/*int set_backlight(int fd, char **parsed_line);*/ +int set_backlight(int fd, char **parsed_line); int clear_memory(int fd); int get_key_beep(int fd); -/*int set_key_beep(int fd, char **parsed_line);*/ +int set_key_beep(int fd, char **parsed_line); int get_opening_message(int fd); -/*int set_opening_message(int fd, char **parsed_line);*/ +int set_opening_message(int fd, char **parsed_line); int get_priority_mode(int fd); -/*int set_priority_mode(int fd, char **parsed_line);*/ +int set_priority_mode(int fd, char **parsed_line); int get_auto_gain_control(int fd); -/*int set_auto_gain_control(int fd, char **parsed_line);*/ +int set_auto_gain_control(int fd, char **parsed_line); /* Scan Settings - Goes in order we get/set - Calls Group Index only once instead of twice */ @@ -74,11 +76,11 @@ int get_system_index_head(int fd); int get_system_index_tail(int fd); int get_system_quick_lockout(int fd); -/*int set_system_quick_lockout(int fd, char **parsed_line);*/ +int set_system_quick_lockout(int fd, char **parsed_line); int get_group_quick_lockout(int fd, int system_index); -/*int set_group_quick_lockout(int fd, char **parsed_line);*/ +int set_group_quick_lockout(int fd, int system_index, char **parsed_line); int create_system(int fd, char *system_type); -/*int delete_system(int fd);*/ +int delete_system(int fd, int system_index); int get_system_info(int fd, int system_index, char *system_type, char *channel_group_head); int set_system_info(int fd, int system_index, char **parsed_line); @@ -86,12 +88,12 @@ int set_trunk_info(int fd, int system_index, char **parsed_line); int append_channel_group(int fd, int system_index); int append_tgid_group(int fd, int system_index); -/*int delete_group(int fd, group_index); *//* Use same function for delete_site */ +int delete_site_or_group(int fd, int site_or_group_index); /* Use same function for both site & group */ int get_group_info(int fd, int group_index, char *channel_index); int set_group_info(int fd, int group_index, char **parsed_line); int append_channel_freq(int fd, int group_index); /* Use same function for append_trunk_freq */ int append_tgid(int fd, int group_index); -/*int delete_channel(int fd, channel_index);*/ +int delete_channel(int fd, int channel_index); int get_channel_info(int fd, int channel_index); int set_channel_info(int fd, int channel_index, char **parsed_line); int get_tgid_info(int fd, int tgid_index); @@ -111,18 +113,18 @@ int get_lockout_tgid(int fd, int system_index); int get_search_lockout_tgid(int fd, int system_index); -/*int unlock_tgid(int fd, int system_index); -int lockout_tgid(int fd, int system_index); +int unlock_tgid(int fd, int system_index, int tgid); +int lockout_tgid(int fd, int system_index, int tgid); int reverse_index(int fd, int index); -int forward_index(int fd, int index);*/ +int forward_index(int fd, int index); int get_remains_memory_block(int fd); int get_memory_used(int fd); int loc_alert_system_index_head(int fd, char *loc_alert_system_type); -/*int get_loc_alert_system_index_tail(int fd, char *loc_alert_system_type); -int create_loc_alert_system(int fd, char *loc_alert_system_type); +int get_loc_alert_system_index_tail(int fd, char *loc_alert_system_type); +/*int create_loc_alert_system(int fd, char *loc_alert_system_type); int delete_loc_alert_system(int loc_alert_system_index);*/ int get_loc_alert_system_info(int fd, int loc_alert_system_index); -/*int set_loc_alert_system_info(int fd, int loc_alert_system_index, char**parsed_line);*/ +/*int set_loc_alert_system_info(int fd, int loc_alert_system_index, char **parsed_line);*/ int get_srch_cc_settings(int fd); /*int set_srch_cc_settings(int fd, char **parsed_line);*/ int get_bcast_screen_band_settings(int fd); Modified: src/human_commands.c =================================================================== --- src/human_commands.c 2007-11-10 21:40:39 UTC (rev 140) +++ src/human_commands.c 2007-11-11 21:28:54 UTC (rev 141) @@ -176,7 +176,7 @@ } /*********************************************************************** - * Load Command + * Load command ***********************************************************************/ void human_do_load(int fd, int argc, char **args) { @@ -291,7 +291,7 @@ } /*********************************************************************** - * get help + * Get help ***********************************************************************/ void human_help(int fd, int argc, char **args) { Modified: src/utils.h =================================================================== --- src/utils.h 2007-11-10 21:40:39 UTC (rev 140) +++ src/utils.h 2007-11-11 21:28:54 UTC (rev 141) @@ -111,10 +111,19 @@ int withinlimits(double freq); void print_s_meter(char *slchar); -//int do_parse(char *unparsed, char **parsed); +/* Deprecated parse a comma seperated string into an array */ +/*int do_parse(char *unparsed, char **parsed);*/ + +/* Parse a comma seperated answer string into an array called fields */ int parse_fields(char *unparsed, char **parsed); + +/* Replace non-printable characters returned from the status command */ int replace_chars(char *bcd_chars, char *common_chars); + +/* Write a metadata file for ogg123 or Icecast to display freq/tgid info */ void write_metadata(char *album_field, char *artist_field, char *title_field); + +/* Used for resetting $HOME variable for writing .dsctl files. */ int reset_env_var(char *env_var, char *remove); #endif /* _UTILS_H_ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |