search for: uuid_c

Displaying 1 result from an estimated 1 matches for "uuid_c".

Did you mean: uuid_t
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...bHalContext *hal_ctx; + int ret; + + // Get our HAL Context or die trying + hal_ctx = get_hal_ctx(); + if (!hal_ctx) + throw runtime_error("Unable to get HAL Context Structure."); + + try { + NICWrapper::fillNICInfo(this->nics, agent, hal_ctx); + + // Host UUID + char *uuid_c = get_uuid(hal_ctx); + string uuid(uuid_c); + management_object->set_uuid(uuid); + + // Hostname + char hostname_c[HOST_NAME_MAX]; + ret = gethostname(hostname_c, sizeof(hostname_c)); + if (ret != 0) + throw runtime_error("Unable to get hostname"); + string ho...