Skip to content

Declared in <galanthus/c_api/gln_capi.h>.

GLN_API const char* GLN_CALL gln_get_error_detail_plugin_searched_path_at(
    const gln_error_detail_t* in_detail,
    size_t                    in_index);
  • Family: Count and at accessors
  • Return type: const char*

Purpose

Returns one searched plugin path from a GLN_ERROR_DETAIL_PLUGIN_NOT_FOUND payload.

Return

Returns the borrowed row or entry at in_index, or NULL when the handle is NULL or the index is out of range.

TypeNullabilityOwnership
const char*nullableborrowed

Parameters

NameDirectionTypeNullabilityOwnership
in_detailinputconst gln_error_detail_t*nullableborrowed
in_indexinputsize_tvaluevalue

Notes

Passing NULL for in_detail is allowed and returns NULL.

The accessor returns NULL for any detail kind other than GLN_ERROR_DETAIL_PLUGIN_NOT_FOUND, or when in_index is outside gln_get_error_detail_plugin_searched_path_count(in_detail).

This accessor documents the supported plugin-not-found payload shape; it does not imply that a current public operation produces that payload.

The returned string is borrowed from the owning detail object. Copy it before calling gln_release_error on the owning error or destroying the backend result envelope that owns that error.

See Also