IWifiNanManager.aidl revision e4c50de75273efaec4e9e8db6174e0bfc07d3105
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 17package android.net.wifi.nan; 18 19import android.app.PendingIntent; 20 21import android.net.wifi.nan.ConfigRequest; 22import android.net.wifi.nan.IWifiNanEventListener; 23import android.net.wifi.nan.IWifiNanSessionListener; 24import android.net.wifi.nan.PublishConfig; 25import android.net.wifi.nan.SubscribeConfig; 26 27/** 28 * Interface that WifiNanService implements 29 * 30 * {@hide} 31 */ 32interface IWifiNanManager 33{ 34 // client API 35 int connect(in IBinder binder, in IWifiNanEventListener listener, int events); 36 void disconnect(int clientId, in IBinder binder); 37 void requestConfig(int clientId, in ConfigRequest configRequest); 38 39 // session API 40 int createSession(int clientId, in IWifiNanSessionListener listener, int events); 41 void publish(int clientId, int sessionId, in PublishConfig publishConfig); 42 void subscribe(int clientId, int sessionId, in SubscribeConfig subscribeConfig); 43 void sendMessage(int clientId, int sessionId, int peerId, in byte[] message, int messageLength, 44 int messageId); 45 void stopSession(int clientId, int sessionId); 46 void destroySession(int clientId, int sessionId); 47} 48