diff --git a/.cproject b/.cproject
index f6d6613..8016ed5 100644
--- a/.cproject
+++ b/.cproject
@@ -594,7 +594,7 @@
-
+
diff --git a/.project b/.project
index b94afb7..ec5c452 100644
--- a/.project
+++ b/.project
@@ -27,7 +27,7 @@
org.eclipse.cdt.make.core.buildLocation
- ${workspace_loc:/OpenV2G/Debug}
+ ${workspace_loc:/OpenV2G/Release}
org.eclipse.cdt.make.core.contents
diff --git a/src/test/main.c b/src/test/main.c
index 7608fb0..b3fe303 100644
--- a/src/test/main.c
+++ b/src/test/main.c
@@ -32,11 +32,13 @@
#include "main.h"
int main(int argc, char *argv[]) {
+#if CODE_VERSION == CODE_VERSION_EXI
/* EXI codec only */
- /*return main_codec(argc, argv);*/
-
+ return main_codec(argc, argv);
+#elif CODE_VERSION == CODE_VERSION_SERVICE
/* V2G client / service example scenario */
return main_service(argc, argv);
+#endif
}
diff --git a/src/test/main.h b/src/test/main.h
index 7cdda9c..9dd212d 100644
--- a/src/test/main.h
+++ b/src/test/main.h
@@ -25,10 +25,18 @@
*
********************************************************************/
+
+#define CODE_VERSION_EXI 1
+#define CODE_VERSION_SERVICE 2
+#define CODE_VERSION CODE_VERSION_SERVICE
+
#ifndef MAIN_H_
#define MAIN_H_
+#if CODE_VERSION == CODE_VERSION_EXI
int main_codec(int argc, char *argv[]);
+#elif CODE_VERSION == CODE_VERSION_SERVICE
int main_service(int argc, char *argv[]);
+#endif
#endif
diff --git a/src/test/main_codec.c b/src/test/main_codec.c
index 65d5d37..d48cf0e 100644
--- a/src/test/main_codec.c
+++ b/src/test/main_codec.c
@@ -47,7 +47,7 @@
#if EXI_STREAM == BYTE_ARRAY
/* 64 kilobytes = 65 536 bytes */
/* 1 megabyte = 1 048 576 bytes*/
-#define BUFFER_SIZE 200
+#define BUFFER_SIZE 1048576
uint8_t bufferIn[BUFFER_SIZE];
uint8_t bufferOut[BUFFER_SIZE];
#endif /* EXI_STREAM == BYTE_ARRAY */