1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

api: fix compiler error

This commit is contained in:
Steffen Vogel 2020-10-16 11:43:24 +02:00
parent e08ebfaf2c
commit 751f941304
3 changed files with 5 additions and 1 deletions

View file

@ -44,11 +44,14 @@ namespace api {
/* Forward declarations */
class Request;
class Response;
class StatusRequest;
/** A connection via HTTP REST or WebSockets to issue API requests. */
class Session {
public:
friend StatusRequest; /**< Requires access to wsi */
enum State {
ESTABLISHED,
SHUTDOWN

View file

@ -21,6 +21,7 @@
*********************************************************************************/
#include <villas/config.h>
#include <villas/plugin.h>
#include <villas/hook.hpp>
#include <villas/api/request.hpp>
#include <villas/api/response.hpp>

View file

@ -90,7 +90,7 @@ public:
fclose(configFile);
}
elif (json_config != nullptr)
else if (json_config != nullptr)
throw BadRequest("Parameter 'config' must be either a URL (string) or a configuration (object)");
}
else /* If no config is provided via request, we will use the previous one */