blob: 94a766916ba439dd59010960dbb3f37cc45143b6 [file] [log] [blame]
Steven Morelandb0057e72018-08-27 01:44:11 -07001/*
2 * Copyright (C) 2018, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19#include <memory>
20#include <string>
21
22#include "aidl_language.h"
23#include "options.h"
24
25namespace android {
26namespace aidl {
27namespace ndk {
28
29void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types,
30 const AidlDefinedType& defined_type, const IoDelegate& io_delegate);
31
32namespace internals {
33void GenerateSource(CodeWriter& out, const AidlTypenames& types, const AidlInterface& defined_type,
34 const Options& options);
Steven Moreland0cf3f082018-09-20 19:09:46 -070035void GenerateClassSource(CodeWriter& out, const AidlTypenames& types,
36 const AidlInterface& defined_type, const Options& options);
Steven Morelandb0057e72018-08-27 01:44:11 -070037void GenerateClientSource(CodeWriter& out, const AidlTypenames& types,
38 const AidlInterface& defined_type, const Options& options);
39void GenerateServerSource(CodeWriter& out, const AidlTypenames& types,
40 const AidlInterface& defined_type, const Options& options);
41void GenerateInterfaceSource(CodeWriter& out, const AidlTypenames& types,
42 const AidlInterface& defined_type, const Options& options);
43void GenerateClientHeader(CodeWriter& out, const AidlTypenames& types,
44 const AidlInterface& defined_type, const Options& options);
45void GenerateServerHeader(CodeWriter& out, const AidlTypenames& types,
46 const AidlInterface& defined_type, const Options& options);
47void GenerateInterfaceHeader(CodeWriter& out, const AidlTypenames& types,
48 const AidlInterface& defined_type, const Options& options);
49
50void GenerateParcelHeader(CodeWriter& out, const AidlTypenames& types,
51 const AidlStructuredParcelable& defined_type, const Options& options);
52void GenerateParcelSource(CodeWriter& out, const AidlTypenames& types,
53 const AidlStructuredParcelable& defined_type, const Options& options);
54
Daniel Norman37d43dd2019-09-09 17:22:34 -070055void GenerateEnumHeader(CodeWriter& out, const AidlTypenames& types,
56 const AidlEnumDeclaration& enum_decl, const Options& options);
57
Steven Morelandb0057e72018-08-27 01:44:11 -070058} // namespace internals
59} // namespace ndk
60} // namespace aidl
61} // namespace android