{
  "library": "libscorpiox-scorpioplayer-webdav-client",
  "version": "1.1.0",
  "abi": "sprch v1 + scorpiox_http v1 (proposed)",
  "runtime_type": "WebDAV",
  "caps": 43,
  "exports": [
    {
      "name": "sprch_get",
      "signature": "const sprch_handler *sprch_get(void)"
    },
    {
      "name": "spwd_set_io",
      "signature": "__declspec(dllexport) # else # define SPWD_API __declspec(dllimport) # endif #else # define SPWD_API __attribute__((visibility(\"default\"))) #endif #define SPWD_VERSION \"1.1.0\" /*---- error taxonomy (SPEC D15) ---- */ #define SPWD_OK 0 #define SPWD_ERR_TRANSPORT -1 #define SPWD_ERR_HTTP -2 #define SPWD_ERR_XML -3 #define SPWD_ERR_AUTH -4 #define SPWD_ERR_NOT_FOUND -5 #define SPWD_ERR_CONFLICT -6 #define SPWD_ERR_NOT_ARMED -7 #define SPWD_ERR_UNSAFE_PATH -8 #define SPWD_ERR_NO_IO -9 #define SPWD_ERR_INVALID_ARG -10 #define SPWD_ERR_OOM -11 #define SPWD_MAX_CHUNK (16u *1024u *1024u) /*SPEC D17: one range read */ /*---- transport (SPEC D1, D2) ---- */ SPWD_API int spwd_set_io(const scorpiox_io *io)"
    },
    {
      "name": "spwd_set_http",
      "signature": "int spwd_set_http(const scorpiox_http *http)"
    },
    {
      "name": "spwd_bind_http",
      "signature": "int spwd_bind_http(const scorpiox_io *io, const scorpiox_http *http)"
    },
    {
      "name": "spwd_use_curl",
      "signature": "int spwd_use_curl(void)"
    },
    {
      "name": "spwd_use_fake",
      "signature": "int spwd_use_fake(void)"
    },
    {
      "name": "spwd_io_curl",
      "signature": "const scorpiox_io *spwd_io_curl(void)"
    },
    {
      "name": "spwd_io_fake",
      "signature": "const scorpiox_io *spwd_io_fake(void)"
    },
    {
      "name": "spwd_set_server",
      "signature": "int spwd_set_server(const char *url)"
    },
    {
      "name": "spwd_set_base_path",
      "signature": "int spwd_set_base_path(const char *path)"
    },
    {
      "name": "spwd_set_credentials",
      "signature": "int spwd_set_credentials(const char *user, const char *password)"
    },
    {
      "name": "spwd_set_user_agent",
      "signature": "int spwd_set_user_agent(const char *ua)"
    },
    {
      "name": "spwd_add_header",
      "signature": "int spwd_add_header(const char *name, const char *value)"
    },
    {
      "name": "spwd_clear_headers",
      "signature": "void spwd_clear_headers(void)"
    },
    {
      "name": "spwd_set_propfind_mode",
      "signature": "int spwd_set_propfind_mode(int prop_list)"
    },
    {
      "name": "spwd_list",
      "signature": "int spwd_list(const char *path, int depth)"
    },
    {
      "name": "spwd_stat",
      "signature": "int spwd_stat(const char *path)"
    },
    {
      "name": "spwd_item_count",
      "signature": "int spwd_item_count(void)"
    },
    {
      "name": "spwd_item_href",
      "signature": "const char *spwd_item_href(int i)"
    },
    {
      "name": "spwd_item_path",
      "signature": "const char *spwd_item_path(int i)"
    },
    {
      "name": "spwd_item_display_name",
      "signature": "const char *spwd_item_display_name(int i)"
    },
    {
      "name": "spwd_item_is_collection",
      "signature": "int spwd_item_is_collection(int i)"
    },
    {
      "name": "spwd_item_content_length",
      "signature": "long long spwd_item_content_length(int i)"
    },
    {
      "name": "spwd_item_content_type",
      "signature": "const char *spwd_item_content_type(int i)"
    },
    {
      "name": "spwd_item_etag",
      "signature": "const char *spwd_item_etag(int i)"
    },
    {
      "name": "spwd_item_last_modified",
      "signature": "long long spwd_item_last_modified(int i)"
    },
    {
      "name": "spwd_item_creation_date",
      "signature": "long long spwd_item_creation_date(int i)"
    },
    {
      "name": "spwd_item_is_hidden",
      "signature": "int spwd_item_is_hidden(int i)"
    },
    {
      "name": "spwd_download_range",
      "signature": "int spwd_download_range(const char *path, long long start, long long end)"
    },
    {
      "name": "spwd_data",
      "signature": "const unsigned char *spwd_data(size_t *len)"
    },
    {
      "name": "spwd_range_total",
      "signature": "long long spwd_range_total(void)"
    },
    {
      "name": "spwd_download_to_file",
      "signature": "int spwd_download_to_file(const char *path, const char *local_file)"
    },
    {
      "name": "spwd_arm_writes",
      "signature": "int spwd_arm_writes(int armed)"
    },
    {
      "name": "spwd_writes_armed",
      "signature": "int spwd_writes_armed(void)"
    },
    {
      "name": "spwd_upload",
      "signature": "int spwd_upload(const char *path, const unsigned char *data, size_t n)"
    },
    {
      "name": "spwd_upload_range",
      "signature": "int spwd_upload_range(const char *path, const unsigned char *data, size_t n, long long start, long long end)"
    },
    {
      "name": "spwd_mkcol",
      "signature": "int spwd_mkcol(const char *path)"
    },
    {
      "name": "spwd_delete",
      "signature": "int spwd_delete(const char *path)"
    },
    {
      "name": "spwd_move",
      "signature": "int spwd_move(const char *src, const char *dst)"
    },
    {
      "name": "spwd_copy",
      "signature": "int spwd_copy(const char *src, const char *dst)"
    },
    {
      "name": "spwd_last_http_code",
      "signature": "int spwd_last_http_code(void)"
    },
    {
      "name": "spwd_last_error",
      "signature": "const char *spwd_last_error(void)"
    },
    {
      "name": "spwd_result_json",
      "signature": "const char *spwd_result_json(void)"
    },
    {
      "name": "spwd_warning_count",
      "signature": "int spwd_warning_count(void)"
    },
    {
      "name": "spwd_warning",
      "signature": "const char *spwd_warning(int i)"
    },
    {
      "name": "spwd_strerror",
      "signature": "const char *spwd_strerror(int code)"
    },
    {
      "name": "spwd_version",
      "signature": "const char *spwd_version(void)"
    },
    {
      "name": "spwd_sprch_validate",
      "signature": "int spwd_sprch_validate(const char *settings_json, char *out_json, int cap)"
    },
    {
      "name": "spwd_sprch_list",
      "signature": "int spwd_sprch_list(const char *settings_json, const char *folder_id, char *out_json, int cap)"
    },
    {
      "name": "spwd_sprch_stream_url",
      "signature": "int spwd_sprch_stream_url(const char *settings_json, const char *entry_json, char *out_json, int cap)"
    },
    {
      "name": "spwd_sprch_download",
      "signature": "int spwd_sprch_download(const char *settings_json, const char *config_json, char *out_json, int cap)"
    },
    {
      "name": "spwd_fake_reset",
      "signature": "void spwd_fake_reset(void)"
    },
    {
      "name": "spwd_fake_set",
      "signature": "int spwd_fake_set(const char *method, const char *url, int http_code, const char *headers, const char *body)"
    },
    {
      "name": "spwd_fake_file",
      "signature": "int spwd_fake_file(const char *url, const unsigned char *data, size_t n, int range_support)"
    },
    {
      "name": "spwd_fake_fail",
      "signature": "int spwd_fake_fail(const char *method, const char *url, const char *transport_error)"
    },
    {
      "name": "spwd_fake_calls",
      "signature": "int spwd_fake_calls(const char *method, const char *url)"
    },
    {
      "name": "spwd_fake_writes_sent",
      "signature": "int spwd_fake_writes_sent(void)"
    },
    {
      "name": "spwd_fake_last_request",
      "signature": "const char *spwd_fake_last_request(void)"
    }
  ]
}
