From 01060b08fbf258d21d344b38d9967b9ef0b50fd5 Mon Sep 17 00:00:00 2001 From: Manuel Roman Date: Tue, 3 Jan 2012 22:03:37 -0800 Subject: Modified the constructor of EndpointBase We introduced changes to the Endpoint lifecycle. Modified the AIDL compiler to take into account the changes. Just affected the constructor, which needs now an extra parameter: placeInfo --- tools/aidl/generate_java_rpc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/aidl/generate_java_rpc.cpp') diff --git a/tools/aidl/generate_java_rpc.cpp b/tools/aidl/generate_java_rpc.cpp index 60517e8fb5cf..ecff3a1ad3e7 100644 --- a/tools/aidl/generate_java_rpc.cpp +++ b/tools/aidl/generate_java_rpc.cpp @@ -15,6 +15,8 @@ Type* RPC_BROKER_TYPE = new Type("com.android.athome.connector", "Broker", Type::BUILT_IN, false, false, false); Type* RPC_CONTAINER_TYPE = new Type("com.android.athome.connector", "ConnectorContainer", Type::BUILT_IN, false, false, false); +Type* PLACE_INFO_TYPE = new Type("android.support.place.connector", "PlaceInfo", + Type::BUILT_IN, false, false, false); // TODO: Just use Endpoint, so this works for all endpoints. Type* RPC_CONNECTOR_TYPE = new Type("com.android.athome.connector", "Connector", Type::BUILT_IN, false, false, false); @@ -475,15 +477,17 @@ EndpointBaseClass::generate_ctor() { Variable* container = new Variable(RPC_CONTAINER_TYPE, "container"); Variable* broker = new Variable(RPC_BROKER_TYPE, "broker"); + Variable* place = new Variable(PLACE_INFO_TYPE, "placeInfo"); Method* ctor = new Method; ctor->modifiers = PUBLIC; ctor->name = class_name_leaf(this->type->Name()); ctor->statements = new StatementBlock; ctor->parameters.push_back(container); ctor->parameters.push_back(broker); + ctor->parameters.push_back(place); this->elements.push_back(ctor); - ctor->statements->Add(new MethodCall("super", 2, container, broker)); + ctor->statements->Add(new MethodCall("super", 3, container, broker, place)); } // ================================================= -- cgit v1.2.3