diff options
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)
{
|