Hcon_Bill_Of_Materials_Get()
Abstract
Get a bill of materials count for a given list of devices.
Syntax
Hcon_Bill_Of_Materials_Get (devices)
| Argument | Type | Description |
|---|---|---|
devices |
PrgT_List * |
list of devices (list of HconT_Device *) for which a bill of materials is needed |
Return Type
PrgT_List *
List of HconT_Device_Usage *
Header
hcon.h
Details
This function returns the bill of materials for the requested devices.
Assume, for example, that the devices argument you passed in listed three Cisco 7500 routers and two Cisco 7000 routers. Assume further that each of these routers has two components of type A, that each Cisco 7500 router has one component of type B, and that each Cisco 7000 router has three components of type C.
The function returns a list of three elements (HconT_Device_Usage *). The first element shows a count of 10 for component A, the second element shows a count of 3 for component B, and the third element shows a count of 6 for component C.
The following is the type definition for HconT_Device_Usage,
typedef struct {
char vendor [256];
char model [256];
int num_needed;
double unit_cost;
} HconT_Device_Usage;