OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C API referencev12.0

optris_sdk_busy_report

What the SDK knew about a busy refusal, beyond its message. Mirrors optris::sdk::DeviceBusyDetail.

Public attributes

struct_size

uint32_t struct_size

Set to sizeof(optris_sdk_busy_report).

reason

optris_sdk_device_busy_reason reason

One of the optris_sdk_device_busy_reason values. Read first.

holder

char holder[OPTRIS_SDK_MAX_NAME]

The program holding the claim, as optris_sdk_device_info::claimed_by names it. The empty string when it cannot be named, which is a real case and not a failure, and the empty string for every reason other than OPTRIS_SDK_BUSY_REASON_CLAIMED_BY_ANOTHER_PROCESS. Never a guess, and never this process's own name. Show it; do not parse it.

claim_path

char claim_path[OPTRIS_SDK_MAX_PATH]

The claim file the refusal is about, or the empty string when the refusal was not about a claim. Worth putting in a support report: a claim nobody can account for is a stale lock file, and this says which one.