1/*
2 * Copyright (C) 2019 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 [email protected];
18
19import @1.1::ICasListener;
20import StatusEvent;
21
22interface ICasListener extends @1.1::ICasListener {
23    /**
24     * Notify the listener that the status of CAS system has changed.
25     *
26     * @param event the event type of status change.
27     * @param number value for status event.
28     *               For PLUGIN_PHYSICAL_MODULE_CHANGED event:
29     *               the positive number presents how many plugins are inserted;
30     *               the negative number presents how many plugins are removed.
31     *               Client must enumerate plugins after receive the event.
32     *               For PLUGIN_SESSION_NUMBER_CHANGED event:
33     *               the number presents how many sessions are supported
34     *               in the plugin.
35     */
36    onStatusUpdate(StatusEvent event, int32_t number);
37};
38