diff options
-rw-r--r-- | dummy_functions.c | 4 | ||||
-rw-r--r-- | dummy_functions.h | 1 | ||||
-rw-r--r-- | parser.c | 6 |
3 files changed, 6 insertions, 5 deletions
diff --git a/dummy_functions.c b/dummy_functions.c index 16564e8..f7cff85 100644 --- a/dummy_functions.c +++ b/dummy_functions.c @@ -9,7 +9,3 @@ void GPIB_Set_Execution_Error() {} void Main_update_shift_registers() { } void IO_output_to_comm_bus(char* w, int n) { } //replace with real function void Error_check(void* p) { } -int query_int(char** resp, int n) -{ - return 0; -} diff --git a/dummy_functions.h b/dummy_functions.h index d10e62b..7a24c16 100644 --- a/dummy_functions.h +++ b/dummy_functions.h @@ -10,6 +10,5 @@ void GPIB_Set_Execution_Error(); void Main_update_shift_registers(); void IO_output_to_comm_bus(char* w, int n); void Error_check(void*); -int query_int(char** resp, int n); #endif @@ -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)
{
|