diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-10-15 17:45:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2019-10-15 17:45:29 +0000 |
commit | 266c9b1cefb3e33c825e6a994b8bb481654d86d1 (patch) | |
tree | afead1d5151d6ba5031740ac24ae129632744ecb /src/plugins/afb/AFBApiImpl.cpp | |
parent | c1de719af7bdae425f2e42dd3e0642550a8cd6b6 (diff) | |
parent | 62f552fe640df18320dd3afb1f141e8a1aedf2f4 (diff) |
Merge "Switch to appcontroller library" into halibuthalibut_8.0.3halibut/8.0.38.0.3
Diffstat (limited to 'src/plugins/afb/AFBApiImpl.cpp')
-rw-r--r-- | src/plugins/afb/AFBApiImpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/afb/AFBApiImpl.cpp b/src/plugins/afb/AFBApiImpl.cpp index 443a412..aab2ce6 100644 --- a/src/plugins/afb/AFBApiImpl.cpp +++ b/src/plugins/afb/AFBApiImpl.cpp @@ -21,7 +21,7 @@ extern "C" { #define AFB_BINDING_VERSION 3 -#include "afb-definitions.h" +#include <afb/afb-binding.h> } static std::string TAG = "vshlcapabilities::afb::AFBApiImpl"; @@ -36,11 +36,11 @@ using namespace vshlcapabilities::utilities::logging; namespace vshlcapabilities { namespace afb { -std::unique_ptr<AFBApiImpl> AFBApiImpl::create(AFB_ApiT api) { +std::unique_ptr<AFBApiImpl> AFBApiImpl::create(afb_api_t api) { return std::unique_ptr<AFBApiImpl>(new AFBApiImpl(api)); } -AFBApiImpl::AFBApiImpl(AFB_ApiT api) : mApi(api), mLogger(Logger::create(api)) { +AFBApiImpl::AFBApiImpl(afb_api_t api) : mApi(api), mLogger(Logger::create(api)) { } AFBApiImpl::~AFBApiImpl() { @@ -59,7 +59,7 @@ int AFBApiImpl::callSync( std::string& info) { char* errorStr = NULL; char* infoStr = NULL; - int rc = AFB_ApiSync(mApi, api.c_str(), verb.c_str(), request, result, &errorStr, &infoStr); + int rc = afb_api_call_sync(mApi, api.c_str(), verb.c_str(), request, result, &errorStr, &infoStr); if (errorStr) { error = errorStr; |