aboutsummaryrefslogtreecommitdiff
path: root/aidl_to_ndk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'aidl_to_ndk.cpp')
-rw-r--r--aidl_to_ndk.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/aidl_to_ndk.cpp b/aidl_to_ndk.cpp
index 56473a56..d5b00720 100644
--- a/aidl_to_ndk.cpp
+++ b/aidl_to_ndk.cpp
@@ -16,6 +16,7 @@
#include "aidl_language.h"
#include "aidl_to_cpp_common.h"
#include "logging.h"
+#include "os.h"
#include <android-base/strings.h>
@@ -28,6 +29,12 @@ namespace android {
namespace aidl {
namespace ndk {
+std::string NdkHeaderFile(const AidlDefinedType& defined_type, cpp::ClassNames name,
+ bool use_os_sep) {
+ char seperator = (use_os_sep) ? OS_PATH_SEPARATOR : '/';
+ return std::string("aidl") + seperator + cpp::HeaderFile(defined_type, name, use_os_sep);
+}
+
struct TypeInfo {
// name of the type in C++ output
std::string cpp_name;