search for: hostname_c

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

Did you mean: hostname_v
2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...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 hostname(hostname_c); + management_object->set_hostname(hostname); + + // Hypervisor, arch, memory + management_object-&...