171typedef struct fiftyone_degrees_property_available_t {
#define FIFTYONE_DEGREES_ARRAY_TYPE(t, m)
Simple array structure definition macro used for generic types.
Definition array.h:55
#define FIFTYONE_DEGREES_PROPERTIES_INLINE
The functions below are inline, so they add no name to the library.
Definition properties.h:363
FIFTYONE_DEGREES_PROPERTIES_INLINE uint32_t fiftyoneDegreesPropertiesGetRequiredPropertyCount(const fiftyoneDegreesPropertiesAvailable *available)
Gets the number of required property indexes, which is the number of names the caller gave,...
Definition properties.h:376
fiftyoneDegreesEvidencePropertyIndexArray fiftyoneDegreesEvidenceProperties
Array of properties which are required to fetch additional evidence for a specific property.
Definition properties.h:168
fiftyoneDegreesString * fiftyoneDegreesPropertiesGetNameFromRequiredIndex(fiftyoneDegreesPropertiesAvailable *available, int requiredPropertyIndex)
Gets the name as a string from the required property index.
const 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:249
int fiftyoneDegreesPropertiesGetRequiredPropertyIndexFromName(fiftyoneDegreesPropertiesAvailable *available, const char *propertyName)
Gets the required property index of the property named, which is its place in the names the caller ga...
uint32_t(* fiftyoneDegreesEvidencePropertiesGetMethod)(void *state, fiftyoneDegreesPropertyAvailable *property, fiftyoneDegreesEvidenceProperties *evidenceProperties)
Populates the evidence properties structure with the indexes of the properties required by the proper...
Definition properties.h:267
FIFTYONE_DEGREES_PROPERTIES_INLINE int fiftyoneDegreesPropertiesGetAvailableIndex(const fiftyoneDegreesPropertiesAvailable *available, int requiredPropertyIndex)
Gets the available index of the property at the required property index.
Definition properties.h:392
FIFTYONE_DEGREES_PROPERTIES_INLINE int fiftyoneDegreesPropertiesGetPropertyIndexFromAvailableIndex(const fiftyoneDegreesPropertiesAvailable *available, int availableIndex)
Maps the available index to the index in the source data structure.
Definition properties.h:434
uint32_t fiftyoneDegreesEvidencePropertyIndex
Index in the properties collection to a property which is required to get evidence for another proper...
Definition properties.h:160
int fiftyoneDegreesPropertiesGetPropertyIndexFromRequiredIndex(fiftyoneDegreesPropertiesAvailable *available, int requiredPropertyIndex)
Maps the required property index to the index in the source data structure.
fiftyoneDegreesPropertyAvailableArray fiftyoneDegreesPropertiesAvailable
Array of properties which are available in a data set.
Definition properties.h:223
int fiftyoneDegreesPropertiesGetPropertyIndexFromName(fiftyoneDegreesPropertiesAvailable *available, const char *propertyName)
Gets the index of the property in the source data structure from the name.
FIFTYONE_DEGREES_PROPERTIES_INLINE int fiftyoneDegreesPropertiesGetAvailableIndexFromName(fiftyoneDegreesPropertiesAvailable *available, const char *propertyName)
Gets the available index of the property named.
Definition properties.h:416
bool fiftyoneDegreesPropertiesIsSetHeaderAvailable(fiftyoneDegreesPropertiesAvailable *available)
Check if the 'SetHeader' properties are included in the available required properties.
fiftyoneDegreesPropertiesAvailable * fiftyoneDegreesPropertiesCreate(fiftyoneDegreesPropertiesRequired *properties, void *state, fiftyoneDegreesPropertiesGetMethod getPropertyMethod, fiftyoneDegreesEvidencePropertiesGetMethod getEvidencePropertiesMethod)
Creates a properties result instance for use with future property operations.
void fiftyoneDegreesPropertiesFree(fiftyoneDegreesPropertiesAvailable *available)
Frees the memory and resources used by the properties results previously created using the fiftyoneDe...
Used to store a handle to the underlying item that could be used to release the item when it's finish...
Definition collection.h:315
Array of items of type fiftyoneDegreesEvidencePropertyIndex used to easily access and track the size ...
Definition properties.h:162
Defines a set of properties which are required by a caller.
Definition properties.h:229
int count
Number of properties in array.
Definition properties.h:233
const char * string
Separated list of required properties or NULL if all properties are required.
Definition properties.h:234
fiftyoneDegreesPropertiesAvailable * existing
A pointer to an existing set of property names from another instance.
Definition properties.h:236
const char ** array
Array of required properties or NULL if all properties are required.
Definition properties.h:230
Array of items of type fiftyoneDegreesPropertyAvailable used to easily access and track the size of t...
Definition properties.h:209
fiftyoneDegreesPropertyNamed * named
The names the caller gave, in the caller's order, or NULL when the caller named no property.
Definition properties.h:215
uint32_t count
Number of used items.
Definition properties.h:209
uint32_t namedCount
Number of names the caller gave, which is the number of required property indexes when the caller nam...
Definition properties.h:213
fiftyoneDegreesPropertyAvailable * items
Pointer to the first item.
Definition properties.h:209
Used to access the property item quickly without the need to search.
Definition properties.h:171
int32_t requiredPropertyIndex
Index of the property in the names the caller gave, the first if the name was given more than once.
Definition properties.h:188
fiftyoneDegreesCollectionItem name
Name of the property from strings.
Definition properties.h:174
uint32_t propertyIndex
Index of the property in the collection of all properties.
Definition properties.h:172
bool delayExecution
True if the execution any JavaScript returned as a value of this property should be delayed.
Definition properties.h:179
byte componentIndex
Index in the data set's component list of the component the property belongs to.
Definition properties.h:184
fiftyoneDegreesEvidenceProperties * evidenceProperties
Evidence properties which are required by this property.
Definition properties.h:175
A property name the caller gave, in the place the caller gave it.
Definition properties.h:197
int32_t availableIndex
Index of the property in the available properties, or -1 when the data does not have the property.
Definition properties.h:198
const fiftyoneDegreesString * name
The name as the caller gave it.
Definition properties.h:201
Definition string.h:97
