From b7b35117e2982e99dae0716d217945efe81f49e5 Mon Sep 17 00:00:00 2001 From: luizrenault <luiz@luizrenault.com> Date: 周五, 16 1月 2015 02:03:42 +0800 Subject: [PATCH] Update ieee488.c --- 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