update: libubus-cpp
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user