root/include/versions.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef VERSIONS_H
   2 #define VERSIONS_H
   3 
   4 // Note: used in modules and platform independent code.
   5 // Do not add platform dependent stuff in here (#ifdef/#endif compile options or camera dependent values)
   6 
   7 //-------------------------------------------------------------------
   8 
   9 // API / structure version for checking module compatibility against core CHDK build
  10 typedef struct
  11 {
  12     unsigned short  major;
  13     unsigned short  minor;
  14 } _version_t;
  15 
  16 // CHDK version info
  17 typedef struct
  18 {
  19     short   major;
  20     short   minor;
  21     short   maintenance;
  22     short   revision;       // SVN revision
  23 } _chdk_version_t;
  24 
  25 extern _chdk_version_t chdk_version, script_version;
  26 
  27 //-------------------------------------------------------------------
  28 
  29 extern void parse_version(_chdk_version_t *ver, const char *build, const char *rev);
  30 extern int cmp_chdk_version(_chdk_version_t ver1, _chdk_version_t ver2);
  31 extern int chk_api_version(_version_t api_ver, _version_t req_ver);
  32 
  33 //-------------------------------------------------------------------
  34 
  35 #define ANY_VERSION             {0,0}
  36 
  37 //-------------------------------------------------------------------
  38 
  39 #endif

/* [<][>][^][v][top][bottom][index][help] */