[Yunq] Return status from client calls.
This commit is contained in:
parent
700f3f94cb
commit
c209925a3c
25 changed files with 102 additions and 112 deletions
|
|
@ -23,11 +23,11 @@ class {{interface.name}}Client {
|
|||
|
||||
{% for method in interface.methods %}
|
||||
{% if method.request == None %}
|
||||
[[nodiscard]] glcr::ErrorCode {{method.name}}({{method.response}}& response);
|
||||
[[nodiscard]] glcr::Status {{method.name}}({{method.response}}& response);
|
||||
{% elif method.response == None %}
|
||||
[[nodiscard]] glcr::ErrorCode {{method.name}}(const {{method.request}}& request);
|
||||
[[nodiscard]] glcr::Status {{method.name}}(const {{method.request}}& request);
|
||||
{% else %}
|
||||
[[nodiscard]] glcr::ErrorCode {{method.name}}(const {{method.request}}& request, {{method.response}}& response);
|
||||
[[nodiscard]] glcr::Status {{method.name}}(const {{method.request}}& request, {{method.response}}& response);
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue