DeviceAtlas Enterprise C API  2.0
Welcome DeviceAtlas Enterprise C API
da_status_t da_getfirstprop ( const da_deviceinfo_t info,
da_propid_t **  propid 
)

da_getfirstprop/da_getnextprop provide iteration over all properties in a search result.

Both will return DA_OK if there is a result available, and DA_NOMORE if the search is complete.

1 da_propid_t *propidp;
2 for (da_status_t status = da_getfirstprop(&result, &propidp);
3  status == DA_OK;
4  status = da_getnextprop(&result, &propidp)) {
5  const char *propname;
6  if (da_getpropname(&result, *propidp, &propname) == DA_OK)
7  fprintf("found property %s\n", propname);
8 }

returns the first property from device info

Parameters
infoDevice info
propidProperty
Returns
status