addMedium
Adds an IONetworkMedium object to a dictionary.
Declaration
static bool addMedium(
OSDictionary *dict,
const IONetworkMedium *medium);Parameters
- dict:
An OSDictionary object where the medium object should be added as a new entry.
- medium:
The IONetworkMedium object to add to the dictionary.
Return Value
Returns true on success, false otherwise.
Overview
A helper function to add an IONetworkMedium object to a given dictionary. The name of the medium is used as the key for the new dictionary entry.