| Lasso Reference Manual |
|---|
Initialization functionsInitialization functions — |
#include <lasso/lasso.h>int lasso_init (void);int lasso_shutdown (void);int lasso_check_version (int major,int minor,int subminor, LassoCheckVersionMode mode); enum LassoCheckVersionMode;void lasso_register_dst_service (constchar *prefix, constchar *href);
int lasso_init (void);
Initializes Lasso library.
| Returns : | 0 on success; or a negative value otherwise. |
int lasso_shutdown (void);
Clean ups Lasso library.
| Returns : | 0 on success; or a negative value otherwise. |
int lasso_check_version (int major,int minor,int subminor, LassoCheckVersionMode mode);
Checks if the loaded version of Lasso library could be used.
major : |
major version numbe |
minor : |
minor version number |
subminor : |
subminor version number |
mode : |
version check mode |
| Returns : | 1 if the loaded lasso library version is OK to use 0 if it is not; or a negative value if an error occurs. |
typedef enum {
LASSO_CHECK_VERSION_EXACT = 0,
LASSO_CHECK_VERSIONABI_COMPATIBLE,
LASSO_CHECK_VERSION_NUMERIC
} LassoCheckVersionMode;
Lasso library version check mode.
LASSO_CHECK_VERSION_EXACT |
version should match exactly |
LASSO_CHECK_VERSIONABI_COMPATIBLE |
version should be ABI compatible |
LASSO_CHECK_VERSION_NUMERIC |
version should be at least that number |
| << Misc | strings >> |