diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 01:42:02 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 01:42:02 -0400 |
commit | 56cfb8680a67c283175e7a06b437cf480f9f5c82 (patch) | |
tree | 966c13e0e3dd42e6647b19a1d607ecd14eb6fe51 /include/ingen | |
parent | f8eee81f6f94d018ab7c1133bf2b78926316edf8 (diff) | |
download | ingen-56cfb8680a67c283175e7a06b437cf480f9f5c82.tar.gz ingen-56cfb8680a67c283175e7a06b437cf480f9f5c82.tar.bz2 ingen-56cfb8680a67c283175e7a06b437cf480f9f5c82.zip |
Use consistent brace wrapping for struct definitions
Diffstat (limited to 'include/ingen')
-rw-r--r-- | include/ingen/DataAccess.hpp | 3 | ||||
-rw-r--r-- | include/ingen/InstanceAccess.hpp | 3 | ||||
-rw-r--r-- | include/ingen/Message.hpp | 48 | ||||
-rw-r--r-- | include/ingen/Serialiser.hpp | 1 |
4 files changed, 19 insertions, 36 deletions
diff --git a/include/ingen/DataAccess.hpp b/include/ingen/DataAccess.hpp index 3ea70eff..59bd80f9 100644 --- a/include/ingen/DataAccess.hpp +++ b/include/ingen/DataAccess.hpp @@ -30,8 +30,7 @@ namespace ingen { -struct DataAccess : public ingen::LV2Features::Feature -{ +struct DataAccess : public ingen::LV2Features::Feature { static void delete_feature(LV2_Feature* feature) { free(feature->data); delete feature; diff --git a/include/ingen/InstanceAccess.hpp b/include/ingen/InstanceAccess.hpp index e108d7d5..b3fcff35 100644 --- a/include/ingen/InstanceAccess.hpp +++ b/include/ingen/InstanceAccess.hpp @@ -28,8 +28,7 @@ namespace ingen { -struct InstanceAccess : public ingen::LV2Features::Feature -{ +struct InstanceAccess : public ingen::LV2Features::Feature { const char* uri() const override { return "http://lv2plug.in/ns/ext/instance-access"; } std::shared_ptr<LV2_Feature> feature(World& world, Node* node) override { diff --git a/include/ingen/Message.hpp b/include/ingen/Message.hpp index b7342eba..6731ed67 100644 --- a/include/ingen/Message.hpp +++ b/include/ingen/Message.hpp @@ -31,38 +31,32 @@ namespace ingen { -struct BundleBegin -{ +struct BundleBegin { int32_t seq; }; -struct BundleEnd -{ +struct BundleEnd { int32_t seq; }; -struct Connect -{ +struct Connect { int32_t seq; raul::Path tail; raul::Path head; }; -struct Copy -{ +struct Copy { int32_t seq; URI old_uri; URI new_uri; }; -struct Del -{ +struct Del { int32_t seq; URI uri; }; -struct Delta -{ +struct Delta { int32_t seq; URI uri; Properties remove; @@ -70,61 +64,52 @@ struct Delta Resource::Graph ctx; }; -struct Disconnect -{ +struct Disconnect { int32_t seq; raul::Path tail; raul::Path head; }; -struct DisconnectAll -{ +struct DisconnectAll { int32_t seq; raul::Path graph; raul::Path path; }; -struct Error -{ +struct Error { int32_t seq; std::string message; }; -struct Get -{ +struct Get { int32_t seq; URI subject; }; -struct Move -{ +struct Move { int32_t seq; raul::Path old_path; raul::Path new_path; }; -struct Put -{ +struct Put { int32_t seq; URI uri; Properties properties; Resource::Graph ctx; }; -struct Redo -{ +struct Redo { int32_t seq; }; -struct Response -{ +struct Response { int32_t id; Status status; std::string subject; }; -struct SetProperty -{ +struct SetProperty { int32_t seq; URI subject; URI predicate; @@ -132,8 +117,7 @@ struct SetProperty Resource::Graph ctx; }; -struct Undo -{ +struct Undo { int32_t seq; }; diff --git a/include/ingen/Serialiser.hpp b/include/ingen/Serialiser.hpp index 37eda462..f028ffe1 100644 --- a/include/ingen/Serialiser.hpp +++ b/include/ingen/Serialiser.hpp @@ -98,6 +98,7 @@ public: private: struct Impl; + std::unique_ptr<Impl> me; }; |