From 94ccbc305cac38eb9c54384b9f47d3da6527299b Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周六, 25 4月 2015 22:29:42 +0800 Subject: [PATCH] Solve #16 Multiple Identical Capabilities --- libscpi/inc/scpi/types.h | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h index 78a5cd6..ee0d0b9 100644 --- a/libscpi/inc/scpi/types.h +++ b/libscpi/inc/scpi/types.h @@ -111,12 +111,19 @@ char * data; }; typedef struct _scpi_buffer_t scpi_buffer_t; + + struct _scpi_const_buffer_t { + size_t length; + size_t position; + const char * data; + }; + typedef struct _scpi_const_buffer_t scpi_const_buffer_t; struct _scpi_param_list_t { const scpi_command_t * cmd; const char * parameters; size_t length; - scpi_buffer_t cmd_raw; + scpi_const_buffer_t cmd_raw; }; #define SCPI_CMD_LIST_END {NULL, NULL, } typedef struct _scpi_param_list_t scpi_param_list_t; @@ -164,7 +171,8 @@ SCPI_NUM_DOWN, SCPI_NUM_NAN, SCPI_NUM_INF, - SCPI_NUM_NINF + SCPI_NUM_NINF, + SCPI_NUM_AUTO }; typedef enum _scpi_special_number_t scpi_special_number_t; -- Gitblit v1.9.1