
# HG changeset patch # User Heidi Eckhart <heidieck@linux.vnet.ibm.com> # Date 1204806486 -3600 # Node ID dc2deb288f0077c92bc61fb27de3f8558712bae6 # Parent 0b7289fc81a8965c8376d69f0b0d43ff37e76de0 Device: rename device_type_from_classname to res_type_from_device_classname for consistency with the other providers. Signed-off-by: Heidi Eckhart <heidieck@linux.vnet.ibm.com> diff -r 0b7289fc81a8 -r dc2deb288f00 src/Virt_Device.c --- a/src/Virt_Device.c Thu Mar 06 13:28:05 2008 +0100 +++ b/src/Virt_Device.c Thu Mar 06 13:28:06 2008 +0100 @@ -268,7 +268,7 @@ static CMPIInstance *device_instance(con return instance; } -uint16_t device_type_from_classname(const char *classname) +uint16_t res_type_from_device_classname(const char *classname) { if (strstr(classname, "NetworkPort")) return CIM_RES_TYPE_NET; @@ -381,7 +381,7 @@ static CMPIStatus return_enum_devices(co inst_list_init(&list); s = enum_devices(_BROKER, reference, NULL, - device_type_from_classname(CLASSNAME(reference)), + res_type_from_device_classname(CLASSNAME(reference)), &list); if (s.rc != CMPI_RC_OK) goto out; @@ -525,7 +525,7 @@ CMPIStatus get_device_by_ref(const CMPIB s = get_device_by_name(broker, reference, name, - device_type_from_classname(CLASSNAME(reference)), + res_type_from_device_classname(CLASSNAME(reference)), &inst); if (s.rc != CMPI_RC_OK) goto out; diff -r 0b7289fc81a8 -r dc2deb288f00 src/Virt_Device.h --- a/src/Virt_Device.h Thu Mar 06 13:28:05 2008 +0100 +++ b/src/Virt_Device.h Thu Mar 06 13:28:06 2008 +0100 @@ -69,7 +69,7 @@ CMPIStatus get_device_by_name(const CMPI const uint16_t type, CMPIInstance **_inst); -uint16_t device_type_from_classname(const char *classname); +uint16_t res_type_from_device_classname(const char *classname); #endif