Home | History | Annotate | Download | only in citadel
      1 /*
      2  * Copyright (c) 2016, 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 package android.hardware.citadel;
     18 
     19 interface ICitadeld {
     20     /**
     21      * Call into a Nugget app running on Citadel.
     22      *
     23      * @param app_id   The ID of the app to call.
     24      * @param arg      Argument to pass to the app.
     25      * @param request  Data to send to the app.
     26      * @param response Buffer to receive data from the app.
     27      * @return         Status code from the app.
     28      */
     29     int callApp(int appId, int arg, in byte[] request, out byte[] response);
     30 
     31     /** Reset Citadel by pulling the reset line. */
     32     boolean reset();
     33 }
     34