From e3d641dc7f4e4e634267d39cae8dcc597f13bb3a Mon Sep 17 00:00:00 2001 From: Andrey Nakin <andrey.nakin@gmail.com> Date: 周五, 17 4月 2015 03:58:15 +0800 Subject: [PATCH] Merge branch 'master' of https://github.com/j123b567/scpi-parser --- 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