Hcon_Demand_Devices_Needed_Add()
Abstract
Specifies what new devices are needed in a demand.
Syntax
Hcon_Demand_Devices_Needed_Add (demand, library, level, vendor, model, num_needed)
| Argument | Type | Description |
|---|---|---|
demand |
HconT_Demand * |
the demand to add device needed to |
library |
HconT_Library * |
the device library where the device needed belong |
level |
int |
which level the device sits within the device library’s hierarchy |
vendor |
char * |
the device’s vendor name |
model |
char * |
the device’s model number |
num_needed |
int |
how many are needed for the device |
Return Type
void
no return value
Header
hcon.h
Details
To specify what devices are needed in a demand, you add required devices to the demand, one type at a time, by calling this function repeatedly. Sample calling sequence (this will create a demand for 4 DS3 ports and 3 OC48 ports):
Hcon_Demand_Devices_Needed_Add (demand, devlib, 0, "Port", "DS3", 4);
Hcon_Demand_Devices_Needed_Add (demand, devlib, 0, "Port", "OC48", 3);