Function anjay_dm_emit_res

Function Documentation

void anjay_dm_emit_res(anjay_dm_resource_list_ctx_t *ctx, anjay_rid_t rid, anjay_dm_resource_kind_t kind, anjay_dm_resource_presence_t presence)

Used to return Resource entries from anjay_dm_list_resources_t .

This function returns no value. Any errors that may occur are handled internally by the library after the calling handler returns.

Parameters:
  • ctx – Context passed to the iteration handler.

  • rid – ID of the returned Resource. MUST NOT be ANJAY_ID_INVALID (65535).

  • kind – Kind of the returned Resource.

  • presence – Flag that indicates whether the Resource is PRESENT.