Function: set_attr_data_type
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the data type of a specified attribute.
Prototype
- C Prototype
1aclError aclopSetAttrDataType(aclopAttr *attr, const char *attrName, aclDataType attrValue)
- Python Function
1attr, ret = acl.op.set_attr_data_type(attr, attr_name, attr_value)
Parameter Description
Parameter |
Description |
|---|---|
attr |
Int, pointer address of the data of the aclopAttr type. Call acl.op.create_attr to create data of the aclopAttr type in advance. |
attr_name |
Str, attribute name. |
attr_value |
Int, attribute value. |
Return Value Description
Return Value |
Description |
|---|---|
attr |
Int, pointer address of the aclopAttr type. Call create_attr to create data of the aclopAttr type in advance. |
ret |
Int, error code.
|
Parent topic: aclopAttr