Function anjay_get_objlnk

Function Documentation

int anjay_get_objlnk(anjay_input_ctx_t *ctx, anjay_oid_t *out_oid, anjay_iid_t *out_iid)

Reads an object link (Object ID/Object Instance ID pair) from the request content.

In case of error, out_oid and out_iid are guaranteed to be left untouched.

Parameters:
  • ctx – Input context to operate on.

  • out_oid[out] Object ID part of the returned value.

  • out_iid[out] Object Instance ID part of the returned value.

Returns:

0 on success, a negative value in case of error.