|
@@ -0,0 +1,44 @@
|
|
|
|
|
+/*
|
|
|
|
|
+ * Copyright (C) 2007-2012 Siemens AG
|
|
|
|
|
+ *
|
|
|
|
|
+ * This program is free software: you can redistribute it and/or modify
|
|
|
|
|
+ * it under the terms of the GNU Lesser General Public License as published
|
|
|
|
|
+ * by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
+ * (at your option) any later version.
|
|
|
|
|
+ *
|
|
|
|
|
+ * This program is distributed in the hope that it will be useful,
|
|
|
|
|
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
+ * GNU Lesser General Public License for more details.
|
|
|
|
|
+ *
|
|
|
|
|
+ * You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+/*******************************************************************
|
|
|
|
|
+ *
|
|
|
|
|
+ * @author Daniel.Peintner.EXT@siemens.com
|
|
|
|
|
+ * @author Sebastian.Kaebisch.EXT@siemens.com
|
|
|
|
|
+ * @version 0.6
|
|
|
|
|
+ * @contact Joerg.Heuer@siemens.com
|
|
|
|
|
+ *
|
|
|
|
|
+ * <p>Switch for sample programs: EXI codec only or for entire V2G service</p>
|
|
|
|
|
+ *
|
|
|
|
|
+ ********************************************************************/
|
|
|
|
|
+
|
|
|
|
|
+#include <stdio.h>
|
|
|
|
|
+#include <stdlib.h>
|
|
|
|
|
+
|
|
|
|
|
+#include "main.h"
|
|
|
|
|
+
|
|
|
|
|
+int main(int argc, char *argv[]) {
|
|
|
|
|
+#if CODE_VERSION == CODE_VERSION_EXI
|
|
|
|
|
+ /* EXI codec only */
|
|
|
|
|
+ return main_codec(argc, argv);
|
|
|
|
|
+#elif CODE_VERSION == CODE_VERSION_SERVICE
|
|
|
|
|
+ /* V2G client / service example scenario */
|
|
|
|
|
+ return main_service(argc, argv);
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
+
|