1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00
falk-werner_webfuse-provider/include/webfuse_provider/operation/error.h

37 lines
1006 B
C
Raw Normal View History

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,
wfp_status status);
2019-03-26 22:04:53 +00:00
#ifdef __cplusplus
}
#endif
#endif