1 #include <honee.h> 2 /** 3 @brief Get Honee library version info 4 5 Honee version numbers have the form major.minor.patch. Non-release versions may contain unstable interfaces. 6 7 @param[out] major Major version of the library 8 @param[out] minor Minor version of the library 9 @param[out] patch Patch (subminor) version of the library 10 @param[out] release True for releases; false for development branches. 11 12 The caller may pass NULL for any arguments that are not needed. 13 14 @sa HONEE_VERSION_GE() 15 16 @return An error code: 0 - success, otherwise - failure 17 **/ 18 PetscErrorCode HoneeGetVersion(int *major, int *minor, int *patch, PetscBool *release) { 19 if (major) *major = HONEE_VERSION_MAJOR; 20 if (minor) *minor = HONEE_VERSION_MINOR; 21 if (patch) *patch = HONEE_VERSION_PATCH; 22 if (release) *release = HONEE_VERSION_RELEASE; 23 return 0; 24 } 25