From 148070985fd49efeebfb3a93865a6503d8b1dd4c Mon Sep 17 00:00:00 2001
From: Chernov Dmitriy <cd_work@mail.ru>
Date: 周一, 29 2月 2016 16:01:24 +0800
Subject: [PATCH] strdup(malloc)/free ready.

---
 libscpi/inc/scpi/types.h |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/libscpi/inc/scpi/types.h b/libscpi/inc/scpi/types.h
index 97f5592..8dbcd64 100644
--- a/libscpi/inc/scpi/types.h
+++ b/libscpi/inc/scpi/types.h
@@ -202,8 +202,10 @@
     typedef scpi_result_t(*scpi_command_callback_t)(scpi_t *);
 
 	struct _scpi_error_info_heap_t {
-        size_t length;
-        size_t position;
+        int16_t wr;
+        int16_t rd;
+        int16_t count;
+        int16_t size;
         char * data;
 	};
 	typedef struct _scpi_error_info_heap_t scpi_error_info_heap_t;
@@ -213,7 +215,7 @@
 		const char * device_dependent_info;
 	};
 	typedef struct _scpi_error_t scpi_error_t;
-	
+		
     struct _scpi_fifo_t {
         int16_t wr;
         int16_t rd;

--
Gitblit v1.9.1