1f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent/*
2f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * Copyright (C) 2014 The Android Open Source Project
3f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent *
4f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * Licensed under the Apache License, Version 2.0 (the "License");
5f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * you may not use this file except in compliance with the License.
6f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * You may obtain a copy of the License at
7f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent *
8f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent *      http://www.apache.org/licenses/LICENSE-2.0
9f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent *
10f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * Unless required by applicable law or agreed to in writing, software
11f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * distributed under the License is distributed on an "AS IS" BASIS,
12f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * See the License for the specific language governing permissions and
14f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent * limitations under the License.
15f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent */
16f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent
17f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent#include "AudioPolicyManager.h"
18f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent
19f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurentnamespace android {
20f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent
21f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurentextern "C" AudioPolicyInterface* createAudioPolicyManager(
22f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent        AudioPolicyClientInterface *clientInterface)
23f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent{
24f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent    return new AudioPolicyManager(clientInterface);
25f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent}
26f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent
27f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurentextern "C" void destroyAudioPolicyManager(AudioPolicyInterface *interface)
28f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent{
29f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent    delete interface;
30f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent}
31f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent
32f269b8e0e9ab950fc6652b9594b7a3431c81630cEric Laurent}; // namespace android
33