summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-15 07:50:27 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-15 07:50:27 -0400
commit79f06f62d4bdc3bcd62aee7527ed5730fac66d9f (patch)
tree907b981de77c10537a1a30739c73f21045caf680 /parser.c
parent0217dc1125af1d52aaf0bcf2df626dd5fabc9ed3 (diff)
syst:err commands work now
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/parser.c b/parser.c
index d1e2c44..d62d1f9 100644
--- a/parser.c
+++ b/parser.c
@@ -13,6 +13,7 @@ END DESCRIPTION **********************************************************/
#include <glib/gprintf.h>
//STATICS
+static int query_int (gchar** response, int n);
static int query_min_max_float (gchar** response, char *parameter, float min_val, float max_val);
static int query_float (gchar** response, float value);
static int process_float_param (char *parameter, float *value, float min_val, float max_val, int zero_mode);
@@ -900,6 +901,11 @@ static int Is_Max_Command(char *text)
return (!strcmp(text,"max") || !strcmp(text,"maximum"));
}
+static int query_int (gchar** response, int n)
+{
+ *response = g_strdup_printf ("%d", n);
+ return OK;
+}
static int query_min_max_float (gchar** response, char *parameter, float min_val, float max_val)
{