Utility/Helper functions
Functions
LIBVEM_API void * vem_malloc (size_t) wrapper on malloc. Routine is used when passing memory to vem api where it is expected to free. LIBVEM_API void vem_free_string (char **) free a string LIBVEM_API void vem_clear_masterlist (vem_masterlist_t *) Clear master list. LIBVEM_API void vem_clear_hosttypes (vem_hosttypes_t *) Clear host types. LIBVEM_API void vem_clear_hostsummary (vem_hostsummary_t *) Clear host summary. LIBVEM_API void vem_free_hostinfo (vem_hostinfo_t *, int, char **) Free host information. LIBVEM_API void vem_free_allocreply (vem_allocreply_t *) Free allocation reply message. LIBVEM_API void vem_free_allocreclaim (vem_allocreclaim_t *) Free allocation reclaim message. LIBVEM_API void vem_free_containerstatechg (vem_containerstatechg_t *) Free container state change message. LIBVEM_API void vem_free_hoststatechange (vem_hoststatechange_t *) Free host state change message. LIBVEM_API void vem_free_message (vem_message_t *) Free message. LIBVEM_API void vem_clear_message (vem_message_t *) Clear message. LIBVEM_API void vem_init_containerSpec (vem_container_spec_t *) Initialize container specification. LIBVEM_API vem_container_spec_t * vem_create_containerSpec (void) Create initialized container specification. LIBVEM_API void vem_free_containerSpec (vem_container_spec_t *) Free container specification. LIBVEM_API void vem_free_containerId (vem_container_id_t) Free container id. LIBVEM_API void vem_clear_clientinfo (vem_clientinfo_t *) Clear client info. LIBVEM_API void vem_free_clientinfo_array (vem_clientinfo_t **, int) Free client info array. LIBVEM_API void vem_clear_controlhostreq (vem_controlhostreq_t *) Clear control host request. LIBVEM_API void vem_free_uname (vem_name_t *) Free uname structure. LIBVEM_API void vem_free_role_array (vem_role_t **, int) Free role structure array. LIBVEM_API void vem_free_user_array (char ***, int) Free user structure array. LIBVEM_API vem_allocreply_t * vem_dup_allocreply (vem_allocreply_t *) Duplicate allocation reply message. LIBVEM_API vem_allocreclaim_t * vem_dup_allocreclaim (vem_allocreclaim_t *) Duplicate allocation reclaim message. LIBVEM_API vem_containerstatechg_t * vem_dup_containerstatechg (vem_containerstatechg_t *) Duplicate container state change message. LIBVEM_API vem_hoststatechange_t * vem_dup_hoststatechange (vem_hoststatechange_t *) Duplicate host state change message. LIBVEM_API void vem_clear_allocation (vem_allocation_t *) Clear allocation structure. LIBVEM_API void vem_clear_allocationInfoReply (vem_allocation_info_reply_t *) Clear vem_allocation_info_reply structure. LIBVEM_API void vem_clear_reclaimInfoReply (vem_reclaim_info_reply_t *) Clear vem_reclaim_info_reply structure. LIBVEM_API void vem_free_allocation_array (vem_allocation_t **, int) Free allocation structure array. Detailed Description
Functions to free or clear data structures.By convention, vem_free_() function frees the memory of the structure along with all nested structures. Hence, on return, the pointer passed into this function is not usable, since it will be pointing to freed memory. while, vem_clear_() frees only nested structures, and resets values to zero. This function family is useful for clearing array members or automatic variables.
Date Modified: 26 Nov 2007
Platform Computing: www.platform.com
Platform Support: support@platform.com
Platform Information Development: doc@platform.com
Copyright © 2001-2007 Platform Computing Corporation. All rights reserved.