diff options
-rw-r--r-- | parser.c | 4 | ||||
-rw-r--r-- | parser.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -528,7 +528,7 @@ static int Parser_get_unit(char *parameter,char *units) return units_present;
}
-void Parser_main (char *in, int allow_unrequested_responses, void(*cbfunc)(gpointer, gchar *), gpointer user_data)
+void Parser_main (char *in, int interactive_terminal, void(*cbfunc)(gpointer, gchar *), gpointer user_data)
{
int in_pos; /* this identifies the single character of in being processed */
int command_depth; /* how many command words have been parsed */
@@ -743,7 +743,7 @@ void Parser_main (char *in, int allow_unrequested_responses, void(*cbfunc)(gpoin if (error_num) {
queue_error_from_parser(&error_response, error_num);
- if (allow_unrequested_responses) {
+ if (interactive_terminal) {
(*cbfunc)(user_data, error_response);
}
} else {
@@ -29,6 +29,6 @@ #define USE_ON_OFF 0 #define NO_ON_OFF 1 -void Parser_main (char *in, int allow_unrequested_responses, void(*cbfunc)(gpointer, gchar *), gpointer user_data); +void Parser_main (char *in, int interactive_terminal, void(*cbfunc)(gpointer, gchar *), gpointer user_data); #endif |