Functions | |
| APIFUNC (TOKEN, Device_GetRoot,(int port)) APIFUNC(TOKEN | |
| int TOKEN TOKEN prev | APIFUNC (TOKEN, Property_ParseName,(int port, const char *propname)) APIFUNC(const char * |
| int TOKEN TOKEN prev int TOKEN p | APIFUNC (PropertyType, Property_GetType,(int port, TOKEN p)) APIFUNC(unsigned long |
| int TOKEN TOKEN prev int TOKEN p int TOKEN p | APIFUNC (int, Device_GetProperty,(int port, TOKEN p, PFValue *value)) APIFUNC(int |
| int TOKEN TOKEN prev int TOKEN p int TOKEN p int TOKEN char int len | APIFUNC (int, Device_SetProperty,(int port, TOKEN p, PFValue *value)) APIFUNC(int |
Variables | |
| Property_Select | |
| int TOKEN | parent |
| int TOKEN TOKEN prev | Property_GetName |
| int TOKEN TOKEN prev int TOKEN p | Property_GetFlags |
|
int TOKEN TOKEN prev int TOKEN p int TOKEN p | Device_GetProperty_String |
|
int TOKEN TOKEN prev int TOKEN p int TOKEN p int TOKEN | p |
|
int TOKEN TOKEN prev int TOKEN p int TOKEN p int TOKEN char * | outs |
|
int TOKEN TOKEN prev int TOKEN p int TOKEN p int TOKEN char int len | Device_SetProperty_String |
| int TOKEN TOKEN prev int TOKEN p int TOKEN p int TOKEN char int len APIFUNC | ( | int | , | |
| Device_SetProperty | , | |||
| (int port, TOKEN p, PFValue *value) | ||||
| ) |
Set the value of a property.
| port | Port number of the camera | |
| p | The property token whose value is to be requested | |
| value | Pointer to a PFValue containing the value to be set. |
| port | Port number of the camera | |
| p | The property token whose value is to be set | |
| string | Pointer to a string containing the value to be set. |
| int TOKEN TOKEN prev int TOKEN p int TOKEN p APIFUNC | ( | int | , | |
| Device_GetProperty | , | |||
| (int port, TOKEN p, PFValue *value) | ||||
| ) |
Get the value of a property.
By default, a property value is owned by the caller, i.e. in case of a dynamic string property, the caller is responsible for allocating the proper memory and initializing the PFValue pointer field. In case of a static string property, the string is owned by the library, so the PFValue does not need to be initialized. See also PFValue documentation.
| port | Port number of the camera | |
| p | The property token whose value is to be requested | |
| value | Pointer to a PFValue which contains the property value after successful return of this function. Note that in case of a non static string property, the property value must be initialized first. |
| port | Port number of the camera | |
| p | The property token whose value is to be requested | |
| outs | Pointer to a string which contains the property value string conversion after successful return of this function. The caller must reserve a string of the length of the expected value string. | |
| len | Length of the string that was reserved by caller |
| int TOKEN TOKEN prev int TOKEN p APIFUNC | ( | PropertyType | , | |
| Property_GetType | , | |||
| (int port, TOKEN p) | ||||
| ) |
Get the property data type by token
| port | Port number of the camera | |
| p | The property token whose type are to be queried |
| port | Port number of the camera | |
| p | The property token whose flags are to be queried |
| int TOKEN TOKEN prev APIFUNC | ( | TOKEN | , | |
| Property_ParseName | , | |||
| (int port, const char *propname) | ||||
| ) | const |
Get a property handle (TOKEN) by name.
| port | Port number of the camera * | |
| propname | Pointer to a string containing the property name |
| port | Port number of the camera | |
| p | The token of the property whose name is to be queried |
| APIFUNC | ( | TOKEN | , | |
| Device_GetRoot | , | |||
| (int port) | ||||
| ) |
Get root namespace descriptor token of current device
This function always returns a valid token.
| port | Port number of the camera |
Quick overview: To select the first child of a node, use:
child = pfProperty_Select(port, node, node);
To select the next children of that node:
next = pfProperty_Select(port, node, child);
| port | Port number of the camera | |
| parent | The parent node to be queried | |
| prev | The node whose following (next) node shall be selected If the parent node is specified, its first children is selected. |
1.5.8