properties.h
150 EXTERNAL typedef struct fiftyone_degrees_properties_required_t {
EXTERNAL int fiftyoneDegreesPropertiesGetPropertyIndexFromName(fiftyoneDegreesPropertiesAvailable *available, const char *propertyName)
Gets the index of the property in the source data structure from the name.
Definition: properties.c:439
const char ** array
Array of required properties or NULL if all properties are required.
Definition: properties.h:151
EXTERNAL int fiftyoneDegreesPropertiesGetPropertyIndexFromRequiredIndex(fiftyoneDegreesPropertiesAvailable *available, int requiredPropertyIndex)
Maps the required property index to the index in the source data structure.
Definition: properties.c:407
Used to store a handle to the underlying item that could be used to release the item when it's finish...
Definition: collection.h:302
uint32_t propertyIndex
Index of the property in the collection of all properties.
Definition: properties.h:135
EXTERNAL fiftyoneDegreesPropertiesRequired fiftyoneDegreesPropertiesDefault
The default properties required to make all possible properties available.
Definition: properties.h:180
EXTERNAL void fiftyoneDegreesPropertiesFree(fiftyoneDegreesPropertiesAvailable *available)
Frees the memory and resources used by the properties results previously created using the fiftyoneDe...
Definition: properties.c:460
EXTERNAL int fiftyoneDegreesPropertiesGetRequiredPropertyIndexFromName(fiftyoneDegreesPropertiesAvailable *available, const char *propertyName)
Gets the required property index in the list of all required properties from the name.
Definition: properties.c:417
EXTERNAL fiftyoneDegreesPropertiesAvailable * fiftyoneDegreesPropertiesCreate(fiftyoneDegreesPropertiesRequired *properties, void *state, fiftyoneDegreesPropertiesGetMethod getPropertyMethod)
Creates a properties result instance for use with future property operations.
Definition: properties.c:359
fiftyoneDegreesCollectionItem name
Name of the property from strings.
Definition: properties.h:137
EXTERNAL fiftyoneDegreesString * fiftyoneDegreesPropertiesGetNameFromRequiredIndex(fiftyoneDegreesPropertiesAvailable *available, int requiredPropertyIndex)
Gets the name as a string from the required property index.
Definition: properties.c:454
fiftyoneDegreesString *(* fiftyoneDegreesPropertiesGetMethod)(void *state, uint32_t index, fiftyoneDegreesCollectionItem *item)
Returns a string for the property at the index provided or NULL if there is no property available at ...
Definition: properties.h:170
Array of items of type fiftyoneDegreesPropertyAvailable used to easily access and track the size of t...
Definition: properties.h:140
Used to access the property item quickly without the need to search.
Definition: properties.h:134
fiftyoneDegreesPropertiesAvailable * existing
A pointer to an existing set of property names from another instance.
Definition: properties.h:157
Defines a set of properties which are required by a caller.
Definition: properties.h:150
int count
Number of properties in array.
Definition: properties.h:154
#define FIFTYONE_DEGREES_ARRAY_TYPE(t, m)
Simple array structure definition macro used for generic types.
Definition: array.h:41
const char * string
Separated list of required properties or NULL if all properties are required.
Definition: properties.h:155
