Skip to content

Commit

Permalink
Fix findCommand const parameter (pull-request #17)
Browse files Browse the repository at this point in the history
  • Loading branch information
j123b567 committed Dec 12, 2014
1 parent e3c4cef commit 182d9a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libscpi/inc/scpi/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,19 @@ extern "C" {
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;
Expand Down

0 comments on commit 182d9a4

Please sign in to comment.