diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-15 07:50:27 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-15 07:50:27 -0400 |
commit | 79f06f62d4bdc3bcd62aee7527ed5730fac66d9f (patch) | |
tree | 907b981de77c10537a1a30739c73f21045caf680 /parser.c | |
parent | 0217dc1125af1d52aaf0bcf2df626dd5fabc9ed3 (diff) |
syst:err commands work now
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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)
{
|