summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
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)
{