Functions | |
| static HPI_ERR | hpi_entity_check_type (const enum e_entity_type t) |
| Check if the type is a valid value for corresponding the field in the hpi_entity struct. | |
| static HPI_ERR | hpi_entity_check_role (const enum e_entity_role r) |
| Check if the role is a valid value for the corresponding field in the hpi_entity struct. | |
| static HPI_ERR | HPI_Entity_GetNext (struct hpi_entity *entity, int recursive_flag, void *guard_p, struct hpi_entity **next) |
| Get the next Entity in a sequence of entities. | |
| HPI_ERR | HPI_Entity_FindNext (struct hpi_entity *container_entity, enum e_entity_type type, enum e_entity_role role, int recursive_flag, struct hpi_entity **current_match) |
| Search for an entity with the given _type_ and _role_ in a container entity. | |
| void | HPI_Entity_Free (struct hpi_entity *entity) |
| Free an hpi_entity allocated by HPI_Universal_* and HPI_Entity_* functions. | |
| static HPI_ERR | HPI_Entity_AllocAndCopy (struct hpi_entity *src, struct hpi_entity **dst) |
| Allocates an appropriately sized buffer and copies the src entity into it. | |
| HPI_ERR | HPI_Universal_Info (const HPI_HSUBSYS *phSubSys, HPI_HCONTROL hC, struct hpi_entity **info) |
| Retrieve information associated with an universal control. | |
| HPI_ERR | HPI_Universal_Get (const HPI_HSUBSYS *phSubSys, HPI_HCONTROL hC, struct hpi_entity **value) |
| Returns the current value of an universal control as an entity. | |
| HPI_ERR | HPI_Universal_Set (const HPI_HSUBSYS *phSubSys, HPI_HCONTROL hC, struct hpi_entity *value) |
| Set the current value of an universal control. | |
| HPI_ERR | HPI_Entity_AllocAndPack (const enum e_entity_type type, const size_t item_count, const enum e_entity_role role, void *value, struct hpi_entity **entity) |
| Allocate and initialize an entity with the provided parameters. | |
| HPI_ERR | HPI_Entity_CopyValueFrom (struct hpi_entity *entity, enum e_entity_type type, size_t item_count, void *value_dst_p) |
| Copies item_count items from the Entity's value array into *value_dst_p. | |
| HPI_ERR | HPI_Entity_Unpack (struct hpi_entity *entity, enum e_entity_type *type, size_t *item_count, enum e_entity_role *role, void **value) |
| Extracts information from an entity into the specified locations. | |
|
|
Check if the type is a valid value for corresponding the field in the hpi_entity struct. It is not possible to restrict the check to the values defined by the enum e_entity_type because it would prevent the functions from accepting unknown types defined in subsequent versions
|
|
|
Check if the role is a valid value for the corresponding field in the hpi_entity struct. It is not possible to restrict the check to the values defined by the enum e_entity_role because it would prevent the functions from accepting unknown roles defined in subsequent versions
|
|
||||||||||||||||||||
|
Get the next Entity in a sequence of entities. The variable pointed by next will be updated with the address of the next Entity or set to NULL if no more entities are found. If the current entity is a sequence and the recursive_flag is non-zero then the first item in the sequence is returned. If the current entity is a sequence and the recursive_flag is zero then the first entity after the sequence is returned. In all other cases the next entity is returned.
|
|
||||||||||||||||||||||||
|
Search for an entity with the given _type_ and _role_ in a container entity. Search for an entity with the given type and role in container_entity. The search starts with the first entity inside the container_entity. If container_entity is not a sequence then the function will return immediately. The variable pointed by current_match will be updated with the address of the next Entity or set to NULL if no more entities are found. If current_match is not NULL upon call then the search resumes from the entity following current_match. The recursive_flag is honored so if current match is a sequence and recursive_flag is non-zero then searching will start with the first item in the sequence.
|------[A - entity of type sequence] |------[B] |------[C- entity of type sequence] | |---[D] | |---[E- entity of type sequence] | |---[F] | |---[G] | |------[H]
|
|
|
Free an hpi_entity allocated by HPI_Universal_* and HPI_Entity_* functions.
|
|
||||||||||||
|
Allocates an appropriately sized buffer and copies the src entity into it. The newly allocated buffer is returned in dst.
|
|
||||||||||||||||
|
Retrieve information associated with an universal control.
|
|
||||||||||||||||
|
Returns the current value of an universal control as an entity.
|
|
||||||||||||||||
|
Set the current value of an universal control.
|
|
||||||||||||||||||||||||
|
Allocate and initialize an entity with the provided parameters.
|
|
||||||||||||||||||||
|
Copies item_count items from the Entity's value array into *value_dst_p. If type is different from the type of the entity no value is copied and an error is returned. If the item_count is larger than the size the Entitiy's value array then no value is copied and an error is returned.
|
|
||||||||||||||||||||||||
|
Extracts information from an entity into the specified locations.
|
1.4.6-NO