Skip to content

Commit

Permalink
[core] Move MethodCallbackT to v5/ecal_callback.h (#1938)
Browse files Browse the repository at this point in the history
  • Loading branch information
KerstinKeller authored Jan 23, 2025
1 parent b09ed97 commit dcd7363
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ecal/core/include/ecal/service/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,6 @@ namespace eCAL
};
using ServiceIDResponseVecT = std::vector<SServiceIDResponse>; //!< vector of multiple service responses

/**
* @brief Service method callback function type (low level server interface). (deprecated)
*
* @param method_ The method name.
* @param req_type_ The type of the method request.
* @param resp_type_ The type of the method response.
* @param request_ The request.
* @param response_ The response returned from the method call.
**/
using MethodCallbackT = std::function<int(const std::string& method_, const std::string& req_type_, const std::string& resp_type_, const std::string& request_, std::string& response_)>;

/**
* @brief Service method callback function type (low level server interface).
*
Expand Down
12 changes: 12 additions & 0 deletions ecal/core/include/ecal/v5/ecal_callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ namespace eCAL
**/
using ResponseCallbackT = std::function<void(const struct v5::SServiceResponse& service_response_)>;

/**
* @brief Service method callback function type (low level server interface). (deprecated)
*
* @param method_ The method name.
* @param req_type_ The type of the method request.
* @param resp_type_ The type of the method response.
* @param request_ The request.
* @param response_ The response returned from the method call.
**/
using MethodCallbackT = std::function<int(const std::string& method_, const std::string& req_type_, const std::string& resp_type_, const std::string& request_, std::string& response_)>;


/**
* @brief eCAL server event callback struct.
**/
Expand Down

0 comments on commit dcd7363

Please sign in to comment.