#include "lsm_datatypes.hpp"
#include "lsm_ipc.hpp"
Go to the source code of this file.
Defines | |
#define | IS_CLASS(x, name) is_expected_object(x, name) |
#define | IS_CLASS_SYSTEM(x) IS_CLASS(x, CLASS_NAME_SYSTEM) |
#define | IS_CLASS_POOL(x) IS_CLASS(x, CLASS_NAME_POOL) |
#define | IS_CLASS_VOLUME(x) IS_CLASS(x, CLASS_NAME_VOLUME) |
#define | IS_CLASS_BLOCK_RANGE(x) IS_CLASS(x, CLASS_NAME_BLOCK_RANGE) |
#define | IS_CLASS_ACCESS_GROUP(x) IS_CLASS(x, CLASS_NAME_ACCESS_GROUP) |
#define | IS_CLASS_FILE_SYSTEM(x) IS_CLASS(x, CLASS_NAME_FILE_SYSTEM) |
#define | IS_CLASS_FS_SNAPSHOT(x) IS_CLASS(x, CLASS_NAME_FS_SNAPSHOT) |
#define | IS_CLASS_FS_EXPORT(x) IS_CLASS(x, CLASS_NAME_FS_EXPORT) |
Functions | |
bool LSM_DLL_LOCAL | is_expected_object (Value &obj, std::string class_name) |
lsm_string_list LSM_DLL_LOCAL * | value_to_string_list (Value &list) |
Value LSM_DLL_LOCAL | string_list_to_value (lsm_string_list *sl) |
lsm_volume LSM_DLL_LOCAL * | value_to_volume (Value &vol) |
Value LSM_DLL_LOCAL | volume_to_value (lsm_volume *vol) |
int LSM_DLL_LOCAL | value_array_to_volumes (Value &volume_values, lsm_volume **volumes[], uint32_t *count) |
lsm_disk LSM_DLL_LOCAL * | value_to_disk (Value &disk) |
Value LSM_DLL_LOCAL | disk_to_value (lsm_disk *disk) |
int LSM_DLL_LOCAL | value_array_to_disks (Value &disk_values, lsm_disk **disks[], uint32_t *count) |
lsm_pool LSM_DLL_LOCAL * | value_to_pool (Value &pool) |
Value LSM_DLL_LOCAL | pool_to_value (lsm_pool *pool) |
lsm_system LSM_DLL_LOCAL * | value_to_system (Value &system) |
Value LSM_DLL_LOCAL | system_to_value (lsm_system *system) |
lsm_access_group LSM_DLL_LOCAL * | value_to_access_group (Value &group) |
Value LSM_DLL_LOCAL | access_group_to_value (lsm_access_group *group) |
int LSM_DLL_LOCAL | value_array_to_access_groups (Value &group, lsm_access_group **ag_list[], uint32_t *count) |
Value LSM_DLL_LOCAL | access_group_list_to_value (lsm_access_group **group, uint32_t count) |
lsm_block_range LSM_DLL_LOCAL * | value_to_block_range (Value &br) |
Value LSM_DLL_LOCAL | block_range_to_value (lsm_block_range *br) |
lsm_block_range LSM_DLL_LOCAL ** | value_to_block_range_list (Value &brl, uint32_t *count) |
Value LSM_DLL_LOCAL | block_range_list_to_value (lsm_block_range **brl, uint32_t count) |
lsm_fs LSM_DLL_LOCAL * | value_to_fs (Value &fs) |
Value LSM_DLL_LOCAL | fs_to_value (lsm_fs *fs) |
lsm_fs_ss LSM_DLL_LOCAL * | value_to_ss (Value &ss) |
Value LSM_DLL_LOCAL | ss_to_value (lsm_fs_ss *ss) |
lsm_nfs_export LSM_DLL_LOCAL * | value_to_nfs_export (Value &exp) |
Value LSM_DLL_LOCAL | nfs_export_to_value (lsm_nfs_export *exp) |
lsm_storage_capabilities LSM_DLL_LOCAL * | value_to_capabilities (Value &exp) |
Value LSM_DLL_LOCAL | capabilities_to_value (lsm_storage_capabilities *cap) |
lsm_target_port LSM_DLL_LOCAL * | value_to_target_port (Value &tp) |
Value LSM_DLL_LOCAL | target_port_to_value (lsm_target_port *tp) |
int LSM_DLL_LOCAL | values_to_uint32_array (Value &value, uint32_t **uint32_array, uint32_t *count) |
Value LSM_DLL_LOCAL | uint32_array_to_value (uint32_t *uint32_array, uint32_t count) |
Variables | |
const char | CLASS_NAME_SYSTEM [] = "System" |
const char | CLASS_NAME_POOL [] = "Pool" |
const char | CLASS_NAME_VOLUME [] = "Volume" |
const char | CLASS_NAME_BLOCK_RANGE [] = "BlockRange" |
const char | CLASS_NAME_ACCESS_GROUP [] = "AccessGroup" |
const char | CLASS_NAME_FILE_SYSTEM [] = "FileSystem" |
const char | CLASS_NAME_DISK [] = "Disk" |
const char | CLASS_NAME_FS_SNAPSHOT [] = "FsSnapshot" |
const char | CLASS_NAME_FS_EXPORT [] = "NfsExport" |
const char | CLASS_NAME_CAPABILITIES [] = "Capabilities" |
const char | CLASS_NAME_TARGET_PORT [] = "TargetPort" |
Definition at line 41 of file lsm_convert.hpp.
#define IS_CLASS_ACCESS_GROUP | ( | x | ) | IS_CLASS(x, CLASS_NAME_ACCESS_GROUP) |
Definition at line 47 of file lsm_convert.hpp.
#define IS_CLASS_BLOCK_RANGE | ( | x | ) | IS_CLASS(x, CLASS_NAME_BLOCK_RANGE) |
Definition at line 46 of file lsm_convert.hpp.
#define IS_CLASS_FILE_SYSTEM | ( | x | ) | IS_CLASS(x, CLASS_NAME_FILE_SYSTEM) |
Definition at line 48 of file lsm_convert.hpp.
#define IS_CLASS_FS_EXPORT | ( | x | ) | IS_CLASS(x, CLASS_NAME_FS_EXPORT) |
Definition at line 50 of file lsm_convert.hpp.
#define IS_CLASS_FS_SNAPSHOT | ( | x | ) | IS_CLASS(x, CLASS_NAME_FS_SNAPSHOT) |
Definition at line 49 of file lsm_convert.hpp.
#define IS_CLASS_POOL | ( | x | ) | IS_CLASS(x, CLASS_NAME_POOL) |
Definition at line 44 of file lsm_convert.hpp.
#define IS_CLASS_SYSTEM | ( | x | ) | IS_CLASS(x, CLASS_NAME_SYSTEM) |
Definition at line 43 of file lsm_convert.hpp.
#define IS_CLASS_VOLUME | ( | x | ) | IS_CLASS(x, CLASS_NAME_VOLUME) |
Definition at line 45 of file lsm_convert.hpp.
Value LSM_DLL_LOCAL access_group_list_to_value | ( | lsm_access_group ** | group, | |
uint32_t | count | |||
) |
Converts an array of lsm_access_group to Value(s)
group | Pointer to an array of lsm_access_group | |
count | Number of items in array. |
Definition at line 408 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL access_group_to_value | ( | lsm_access_group * | group | ) |
Converts a lsm_access_group to a Value
group | Group to convert |
Definition at line 349 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL block_range_list_to_value | ( | lsm_block_range ** | brl, | |
uint32_t | count | |||
) |
Converts an array of lsm_block_range to Value
brl | An array of lsm_block_range | |
count | Number of items in input |
Definition at line 471 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL block_range_to_value | ( | lsm_block_range * | br | ) |
Converts a lsm_block_range to a Value
br | lsm_block_range to convert |
Definition at line 437 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL capabilities_to_value | ( | lsm_storage_capabilities * | cap | ) |
Converts a lsm_storage_capabilities to a value
cap | lsm_storage_capabilities to convert to value |
Definition at line 639 of file lsm_convert.cpp.
Converts a lsm_disk to a value
disk | lsm_disk to convert to value |
Definition at line 145 of file lsm_convert.cpp.
Converts a lsm_fs pointer to a Value
fs | File system pointer to convert |
Definition at line 503 of file lsm_convert.cpp.
bool LSM_DLL_LOCAL is_expected_object | ( | Value & | obj, | |
std::string | class_name | |||
) |
Checks to see if a value is an expected object instance
obj | Value to check | |
class_name | Class name to check |
Definition at line 24 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL nfs_export_to_value | ( | lsm_nfs_export * | exp | ) |
Converts a lsm_nfs_export pointer to a Value
exp | NFS export pointer to convert |
Definition at line 605 of file lsm_convert.cpp.
Converts a lsm_pool * to Value
pool | Pool pointer to convert |
Definition at line 232 of file lsm_convert.cpp.
Converts a lsm_ss pointer to a Value
ss | Snapshot pointer to convert |
Definition at line 537 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL string_list_to_value | ( | lsm_string_list * | sl | ) |
Converts a lsm_string_list to a Value
sl | String list to convert |
Definition at line 309 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL system_to_value | ( | lsm_system * | system | ) |
Converts a lsm_system * to a Value
system | pointer to convert to Value |
Definition at line 269 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL target_port_to_value | ( | lsm_target_port * | tp | ) |
Converts a lsm_target_port to a value
tp | lsm_target_port to convert to value |
Definition at line 672 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL uint32_array_to_value | ( | uint32_t * | uint32_array, | |
uint32_t | count | |||
) |
Converts an array of uint32 to a value.
Definition at line 721 of file lsm_convert.cpp.
int LSM_DLL_LOCAL value_array_to_access_groups | ( | Value & | group, | |
lsm_access_group ** | ag_list[], | |||
uint32_t * | count | |||
) |
Converts an access group list to an array of access group pointers
[in] | group | Value representing a std::vector of access groups |
[out] | ag_list | Access group array |
[out] | count | Number of items in the returned array. |
Definition at line 365 of file lsm_convert.cpp.
int LSM_DLL_LOCAL value_array_to_disks | ( | Value & | disk_values, | |
lsm_disk ** | disks[], | |||
uint32_t * | count | |||
) |
Converts a vector of disk values to an array.
[in] | disk_values | Vector of values that represents disks |
[out] | disks | An array of disk pointers |
[out] | count | Number of disks |
Definition at line 163 of file lsm_convert.cpp.
int LSM_DLL_LOCAL value_array_to_volumes | ( | Value & | volume_values, | |
lsm_volume ** | volumes[], | |||
uint32_t * | count | |||
) |
Converts a vector of volume values to an array
volume_values | Vector of values that represents volumes | |
volumes | An array of volume pointers | |
count | Number of volumes |
Definition at line 78 of file lsm_convert.cpp.
lsm_access_group LSM_DLL_LOCAL* value_to_access_group | ( | Value & | group | ) |
Converts a Value to a lsm_access_group
group | to convert to lsm_access_group* |
Definition at line 323 of file lsm_convert.cpp.
lsm_block_range LSM_DLL_LOCAL* value_to_block_range | ( | Value & | br | ) |
Converts a Value to a lsm_block_range
br | Value representing a block range |
Definition at line 422 of file lsm_convert.cpp.
lsm_block_range LSM_DLL_LOCAL** value_to_block_range_list | ( | Value & | brl, | |
uint32_t * | count | |||
) |
Converts a Value to an array of lsm_block_range
[in] | brl | Value representing block range(s) |
[out] | count | Number of items in the resulting array |
Definition at line 450 of file lsm_convert.cpp.
lsm_storage_capabilities LSM_DLL_LOCAL* value_to_capabilities | ( | Value & | exp | ) |
Converts a Value to a lsm_storage_capabilities
exp | Value representing a storage capabilities |
Definition at line 627 of file lsm_convert.cpp.
Converts a Value to a lsm_disk
disk | Value representing a disk |
Definition at line 124 of file lsm_convert.cpp.
Converts a value to a lsm_fs *
fs | Value representing a FS to be converted |
Definition at line 484 of file lsm_convert.cpp.
lsm_nfs_export LSM_DLL_LOCAL* value_to_nfs_export | ( | Value & | exp | ) |
Converts a value to a lsm_nfs_export *
exp | Value representing a nfs export to be converted |
Definition at line 551 of file lsm_convert.cpp.
Converts a value to a pool
pool | To convert to lsm_pool * |
Definition at line 209 of file lsm_convert.cpp.
Converts a value to a lsm_ss *
ss | Value representing a snapshot to be converted |
Definition at line 521 of file lsm_convert.cpp.
lsm_string_list LSM_DLL_LOCAL* value_to_string_list | ( | Value & | list | ) |
Converts an array of Values to a lsm_string_list
list | List represented as an vector of strings. |
Definition at line 284 of file lsm_convert.cpp.
lsm_system LSM_DLL_LOCAL* value_to_system | ( | Value & | system | ) |
Converts a value to a system
system | to convert to lsm_system * |
Definition at line 252 of file lsm_convert.cpp.
lsm_target_port LSM_DLL_LOCAL* value_to_target_port | ( | Value & | tp | ) |
Convert a Value representation to lsm_target_port
tp | Value to convert to lsm_target_port |
Definition at line 653 of file lsm_convert.cpp.
lsm_volume LSM_DLL_LOCAL* value_to_volume | ( | Value & | vol | ) |
Converts a volume to a volume.
vol | Value to convert. |
Definition at line 36 of file lsm_convert.cpp.
int LSM_DLL_LOCAL values_to_uint32_array | ( | Value & | value, | |
uint32_t ** | uint32_array, | |||
uint32_t * | count | |||
) |
Converts a value to array of uint32.
Definition at line 690 of file lsm_convert.cpp.
Value LSM_DLL_LOCAL volume_to_value | ( | lsm_volume * | vol | ) |
Converts a lsm_volume *to a Value
vol | lsm_volume to convert |
Definition at line 59 of file lsm_convert.cpp.
const char CLASS_NAME_ACCESS_GROUP[] = "AccessGroup" |
Definition at line 32 of file lsm_convert.hpp.
const char CLASS_NAME_BLOCK_RANGE[] = "BlockRange" |
Definition at line 31 of file lsm_convert.hpp.
const char CLASS_NAME_CAPABILITIES[] = "Capabilities" |
Definition at line 37 of file lsm_convert.hpp.
const char CLASS_NAME_DISK[] = "Disk" |
Definition at line 34 of file lsm_convert.hpp.
const char CLASS_NAME_FILE_SYSTEM[] = "FileSystem" |
Definition at line 33 of file lsm_convert.hpp.
const char CLASS_NAME_FS_EXPORT[] = "NfsExport" |
Definition at line 36 of file lsm_convert.hpp.
const char CLASS_NAME_FS_SNAPSHOT[] = "FsSnapshot" |
Definition at line 35 of file lsm_convert.hpp.
const char CLASS_NAME_POOL[] = "Pool" |
Definition at line 29 of file lsm_convert.hpp.
const char CLASS_NAME_SYSTEM[] = "System" |
Class names for serialized json
Definition at line 28 of file lsm_convert.hpp.
const char CLASS_NAME_TARGET_PORT[] = "TargetPort" |
Definition at line 38 of file lsm_convert.hpp.
const char CLASS_NAME_VOLUME[] = "Volume" |
Definition at line 30 of file lsm_convert.hpp.