diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-05-30 16:25:17 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-05-30 16:25:17 +0900 |
commit | ddfeaf3e35317e17905cbba1ee01e81111916c1a (patch) | |
tree | 5fa70739aa2868548fd85c6ca085b3b99b1a8aaa /include/binder_reply.h | |
parent | dd61aa309b3a082488c9d3c383c1601fd3efbc2a (diff) |
add als2019 source
Diffstat (limited to 'include/binder_reply.h')
-rw-r--r-- | include/binder_reply.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/binder_reply.h b/include/binder_reply.h new file mode 100644 index 0000000..44e20d0 --- /dev/null +++ b/include/binder_reply.h @@ -0,0 +1,34 @@ +// Copyright 2017 AW SOFTWARE CO.,LTD +// Copyright 2017 AISIN AW CO.,LTD + +#pragma once + +#include <stdio.h> +#include <stdbool.h> +#include <string> +#include <map> +#include <vector> +#include <json-c/json.h> + +/** + * @brief Response to return to Binder client. + */ +typedef struct APIResponse_ +{ + bool isSuccess; + std::string errMessage; + json_object* json_data; +}APIResponse; + +/** + * @brief Convert information acquired by Genevi API to JSON format. + */ +class BinderReply +{ +public: + APIResponse ReplyNavicoreGetPosition( std::map<int32_t, double>& posList ); + APIResponse ReplyNavicoreGetAllRoutes( std::vector< uint32_t > &allRoutes ); + APIResponse ReplyNavicoreCreateRoute( uint32_t route ); + APIResponse ReplyNavicoreGetAllSessions( std::map<uint32_t, std::string> &allSessions ); +}; + |