main.c 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * Copyright (C) 2007-2018 Siemens AG
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License as published
  6. * by the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /*******************************************************************
  18. *
  19. * @author Daniel.Peintner.EXT@siemens.com
  20. * @author Sebastian.Kaebisch@siemens.com
  21. * @version 0.9.4
  22. * @contact Richard.Kuntschke@siemens.com
  23. *
  24. * <p>Switch for sample programs: EXI codec only or for entire V2G example</p>
  25. *
  26. ********************************************************************/
  27. #include <stdio.h>
  28. #include <stdlib.h>
  29. #include <sys/timeb.h>
  30. #include <time.h>
  31. #include "main.h"
  32. void JSPH_Test()
  33. {
  34. }
  35. int main(int argc, char *argv[])
  36. {
  37. /* disable buffering of output, especially when piped or redirected */
  38. setvbuf(stdout, NULL, _IONBF, 0);
  39. JSPH_Test();
  40. #if CODE_VERSION == CODE_VERSION_EXI
  41. /* EXI codec only */
  42. return main_databinder(argc, argv);
  43. #elif CODE_VERSION == CODE_VERSION_SAMPLE
  44. /* V2G client / service example */
  45. return main_example(argc, argv);
  46. #endif
  47. }