EncGetOption.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*------------------------------------------------------------------------------
  2. -- --
  3. -- This software is confidential and proprietary and may be used --
  4. -- only as expressly authorized by a licensing agreement from --
  5. -- --
  6. -- Hantro Products Oy. --
  7. -- --
  8. -- (C) COPYRIGHT 2006 HANTRO PRODUCTS OY --
  9. -- ALL RIGHTS RESERVED --
  10. -- --
  11. -- The entire notice above must be reproduced --
  12. -- on all copies and should not be removed. --
  13. -- --
  14. --------------------------------------------------------------------------------
  15. --
  16. -- Abstract : Command line parameter parsing
  17. --
  18. ------------------------------------------------------------------------------*/
  19. #ifndef ENC_GET_OPTION
  20. #define ENC_GET_OPTION
  21. /*------------------------------------------------------------------------------
  22. 1. Include headers
  23. ------------------------------------------------------------------------------*/
  24. #include "basetype.h"
  25. /*------------------------------------------------------------------------------
  26. 2. External compiler flags
  27. --------------------------------------------------------------------------------
  28. --------------------------------------------------------------------------------
  29. 3. Module defines
  30. ------------------------------------------------------------------------------*/
  31. typedef struct {
  32. char *longOpt;
  33. char shortOpt;
  34. i32 enableArg;
  35. } option_s;
  36. typedef struct {
  37. i32 optCnt;
  38. char *optArg;
  39. char shortOpt;
  40. i32 enableArg;
  41. } argument_s;
  42. /*------------------------------------------------------------------------------
  43. 4. Function prototypes
  44. ------------------------------------------------------------------------------*/
  45. i32 EncGetOption(i32 argc, char **argv, option_s *, argument_s *);
  46. #endif