[Yunq] Add support for empty requests and responses.
This commit is contained in:
parent
6d108f6965
commit
cc4b5bd811
11 changed files with 91 additions and 22 deletions
|
|
@ -21,7 +21,13 @@ class {{interface.name}}ServerBase {
|
|||
[[nodiscard]] Thread RunServer();
|
||||
|
||||
{% for method in interface.methods %}
|
||||
{% if method.request == None %}
|
||||
[[nodiscard]] virtual glcr::ErrorCode Handle{{method.name}}({{method.response}}&) = 0;
|
||||
{% elif method.response == None %}
|
||||
[[nodiscard]] virtual glcr::ErrorCode Handle{{method.name}}(const {{method.request}}&) = 0;
|
||||
{% else %}
|
||||
[[nodiscard]] virtual glcr::ErrorCode Handle{{method.name}}(const {{method.request}}&, {{method.response}}&) = 0;
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue