| // Copyright (C) 2015 The Android Open Source Project |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| cmd u32 Add(u32 a, u32 b) { return ? } |
| cmd string EnumToString(Enum e) { return ? } |
| cmd Struct GetStruct() { return ? } |
| cmd void SetStruct(Struct s) {} |
| cmd ResourceId GetResource() { return ? } |
| cmd void UseResource(ResourceId r) {} |
| cmd Resource ResolveResource(ResourceId r) { return ? } |
| cmd ListNode* GetSingleListNode() { return ? } |
| cmd ListNode* GetListNodeChain() { return ? } |
| cmd ListNode*[] GetListNodeChainArray() { return ? } |
| cmd Base* GetBase() { return ? } |
| cmd Base* GetDerived() { return ? } |
| |
| @handle type string ResourceId |
| class Resource { |
| u32 Int |
| f32 Float |
| string String |
| } |
| |
| enum Enum { |
| One = 1, |
| Two = 2, |
| Three = 3, |
| } |
| |
| class Struct { |
| string String |
| u32 U32 |
| Enum Enum |
| } |
| |
| class ListNode { |
| string Name |
| ListNode* Next |
| } |
| |
| @Interface |
| class Base { |
| string Name |
| } |
| |
| class Derived : Base { |
| Enum Enum |
| } |