update: libubus-cpp

This commit is contained in:
jbnadal
2018-04-24 17:35:57 +02:00
parent 3d1b4c7182
commit 60da11013f
14 changed files with 622 additions and 30 deletions

View File

@@ -1,5 +1,4 @@
/*!
* UbusCall.h
*
* Copyright (c) 2015-2018, NADAL Jean-Baptiste. All rights reserved.
*
@@ -30,6 +29,16 @@
#include <string>
/*---------------------------------- DEFINE ----------------------------------*/
#define kExecSuccess 0
#define kExecFailed -6
#define kExecInvalidArguments -5
/*---------------------------------- DEPS ----------------------------------*/
class UBusExecReceiver;
/*---------------------------------- CLASS ----------------------------------*/
class UBusCall
@@ -40,6 +49,8 @@ public:
int exec (const std::string &a_path, const std::string &a_method,
const std::string &a_parameter, std::string &a_result);
int exec_async (struct ubus_context *a_ctx, uint32_t an_object, const std::string &a_method, const std::string &a_parameter, UBusExecReceiver *a_receiver);
int set_timeout (int a_timeout);
int set_result (const std::string &a_result);