AOResource_t
Addon resource
Synopsis:
#include <aoi.h>
typedef struct
{
const char *name;
const char *description;
void *value;
const void *info;
int32_t type;
} AOResource_t;
Description:
This structure defines an addon resource. It contains the following members:
- char *name
- The name of the resource.
- char *description
- A short description of the resource.
- void * parent
- The parent control for the resource.
- void *value
- A pointer to the value of the resource.
- void *info
- A pointer to typing information, such as a range, list of items, etc.
- int32_t type
- The resource type flag, which is one of:
- AOR_TYPE_LONG — a long integer; value points to an int32_t, and info points to an array of three int32_t numbers containing minimum, maximum, and increment values.
- AOR_TYPE_LONGLONG — a long long integer; value points to an int64_t, and info points to an array of three int64_t numbers containing minimum, maximum, and increment values.
- AOR_TYPE_FLOAT — a float; value points to a float, and info points to an array of three float numbers containing minimum, maximum, and increment values.
- AOR_TYPE_STRING — a string; value points to an allocated string buffer, and info points to an int32_t that contains the maximum length of the string.
- AOR_TYPE_RADIO — an enumerated value between 0 and N; value points to an int32_t within this range, and info points to a structure containing an int32_t that stores N, followed by N number of char* pointers that store human-readable descriptions of these values (e.g., for radio button labels in a UI).
- AOR_TYPE_TOGGLE — a boolean; value points to an int32_t with a boolean value, and there is no info pointer requirement.
- AOR_TYPE_POINTER — a pointer; value is the actual pointer.
Classification:
QNX NeutrinoPage updated:
