2020-02-17 20:53:42 +00:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// \file provider/operation/error.h
|
|
|
|
/// \brief Respond with error code.
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2019-03-26 22:04:53 +00:00
|
|
|
#ifndef WFP_OPERATION_ERROR_H
|
|
|
|
#define WFP_OPERATION_ERROR_H
|
|
|
|
|
2020-06-16 21:39:45 +00:00
|
|
|
#include "webfuse_provider/api.h"
|
|
|
|
#include "webfuse_provider/status.h"
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct wfp_request;
|
|
|
|
|
2020-02-17 20:53:42 +00:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
/// \brief Respond to a request with an error.
|
|
|
|
///
|
|
|
|
/// A client's callback must respond with exactly one responde, either with a
|
|
|
|
/// valid reponse regarding to the concrete request or with an error response.
|
|
|
|
///
|
|
|
|
/// \param request pointer to request
|
|
|
|
/// \param status error code
|
|
|
|
//------------------------------------------------------------------------------
|
2019-03-26 22:04:53 +00:00
|
|
|
extern WFP_API void wfp_respond_error(
|
|
|
|
struct wfp_request * request,
|
2020-06-16 21:57:41 +00:00
|
|
|
wfp_status status);
|
2019-03-26 22:04:53 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|