From 81681dfa8a7d235e49161f3b9458f855d281330b Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 18 1月 2015 16:30:07 +0800 Subject: [PATCH] Merge pull request #19 from j123b567/revert-18-master --- libscpi/inc/scpi/types.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h index 78a5cd6..942b424 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; -- Gitblit v1.9.1