Skip to content

Commit

Permalink
Clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
avoitenko-logitech committed Jul 26, 2024
1 parent eb95cd7 commit d3a9f29
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/ipc-client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extern call_return_t g_fn;
extern void *g_data;
extern int64_t g_cbid;

typedef void (*call_on_freeze_t)(const std::string& app_state_path, const std::string& call_name, int total_time, int obs_time);
typedef void (*call_on_freeze_t)(const std::string &app_state_path, const std::string &call_name, int total_time, int obs_time);

namespace ipc {
class client {
Expand Down
2 changes: 1 addition & 1 deletion include/ipc-server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class server {

public: // Client -> Server
bool client_call_function(int64_t cid, const std::string &cname, const std::string &fname, std::vector<ipc::value> &args, std::vector<ipc::value> &rval,
std::string &errormsg, std::chrono::high_resolution_clock::duration& call_duration);
std::string &errormsg, std::chrono::high_resolution_clock::duration &call_duration);

friend class server_instance;
};
Expand Down
2 changes: 1 addition & 1 deletion source/ipc-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ bool ipc::server::register_collection(std::shared_ptr<ipc::collection> cls)
}

bool ipc::server::client_call_function(int64_t cid, const std::string &cname, const std::string &fname, std::vector<ipc::value> &args,
std::vector<ipc::value> &rval, std::string &errormsg, std::chrono::high_resolution_clock::duration& call_duration)
std::vector<ipc::value> &rval, std::string &errormsg, std::chrono::high_resolution_clock::duration &call_duration)
{
if (m_classes.count(cname) == 0) {
errormsg = "Class '" + cname + "' is not registered.";
Expand Down
8 changes: 4 additions & 4 deletions source/ipc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ size_t ipc::message::function_call::deserialize(std::vector<char> &buf, size_t o

size_t ipc::message::function_reply::size()
{
size_t size = sizeof(size_t) + uid.size() /* timestamp */
+ obs_call_duration_ms.size() /* call duration */
+ error.size() /* error */
+ sizeof(uint32_t) /* values */;
size_t size = sizeof(size_t) + uid.size() /* timestamp */
+ obs_call_duration_ms.size() /* call duration */
+ error.size() /* error */
+ sizeof(uint32_t) /* values */;

for (ipc::value &v : values) {
size += v.size();
Expand Down

0 comments on commit d3a9f29

Please sign in to comment.