From 182d9a4b6937744aefb4c0a315226c1ad5568d68 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周五, 12 12月 2014 18:05:26 +0800 Subject: [PATCH] Fix findCommand const parameter (pull-request #17) --- 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