Arnold version information. More...
Macros | |
#define | AI_VERSION AI_VERSION_ARCH "." AI_VERSION_MAJOR "." AI_VERSION_MINOR "." AI_VERSION_FIX |
Full Arnold version as string. | |
Enumerations | |
enum | AtCopyrightNoticeType { AI_COPYRIGHT_NOTICES_CORE , AI_COPYRIGHT_NOTICES_PLUGINS } |
Copyright Notice types. | |
Functions | |
AI_API const char * | AiGetVersion (char *arch, char *major, char *minor, char *fix) |
Returns the Arnold version string. More... | |
AI_API const char * | AiGetVersionInfo () |
Returns the Arnold version string plus compile-time information. More... | |
AI_API const char * | AiGetCompileOptions () |
Returns a string with compile-time options. More... | |
AI_API bool | AiCheckAPIVersion (const char *arch, const char *major, const char *minor) |
Checks if a given version string is compatible with the running version. More... | |
AI_API void | AiSetAppString (const char *appstr) |
Sets the application-defined string. More... | |
AI_API const char * | AiGetCopyrightNotices (AtCopyrightNoticeType copyright_notice_type) |
Returns the copyright notices for Arnold and its dependencies. More... | |
Arnold version information.
AI_API const char * AiGetVersion | ( | char * | arch, |
char * | major, | ||
char * | minor, | ||
char * | fix | ||
) |
Returns the Arnold version string.
The version strings returned from this function are extracted from macros in the ai_version.h file that was used during compilation of the running Arnold library. This may or may not be the same ai_version.h file that the client application is compiling against.
arch | if non-NULL, the architecture version number will be copied into this string |
major | if non-NULL, the major number will be copied here |
minor | if non-NULL, the minor number will be copied here |
fix | if non-NULL, the fix number will be copied here |
AI_API const char * AiGetVersionInfo | ( | ) |
Returns the Arnold version string plus compile-time information.
This function serves as a handy shortcut for a string containing the software's name ("Arnold"), its full version string, plus compile-time options.
AI_API const char * AiGetCompileOptions | ( | ) |
Returns a string with compile-time options.
This function provides information about how and when this Arnold library was compiled. Some of the fields in the returned string are:
AI_API bool AiCheckAPIVersion | ( | const char * | arch, |
const char * | major, | ||
const char * | minor | ||
) |
Checks if a given version string is compatible with the running version.
This function can be used to check whether the client application is binary-compatible with the running Arnold library.
The third (minor) number indicates that the changes are backwards compatible (but not forward compatible). For example: 3.0.1.x can load 3.0.0.x plugins and 3.0.1.x plugins, but not 3.0.2.x plugins.
arch | architecture version number to check against the running version, in string form |
major | major version number, in string form |
minor | minor version number, in string form |
AI_API void AiSetAppString | ( | const char * | appstr | ) |
Sets the application-defined string.
If defined by the host application, this string will be displayed at the top of both .log files and .ass files. This is a great way to inform users of things like the name of the application, its version number, build date etc.
appstr | A non-NULL string, a copy of which will be internally stored. |
AI_API const char * AiGetCopyrightNotices | ( | AtCopyrightNoticeType | copyright_notice_type | ) |
Returns the copyright notices for Arnold and its dependencies.
copryright_notice_type | return the Arnold SDK copyright notices, or the Arnold Plugins copyright notices |