1 /* 2 * Copyright (C) 2014 Amlogic Corporation. 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 #ifndef PLAYER_ID_MGT__ 18 #define PLAYER_ID_MGT__ 19 20 int player_request_pid(void); 21 int player_release_pid(int pid); 22 int player_init_pid_data(int pid, void * data); 23 void * player_open_pid_data(int pid); 24 int player_close_pid_data(int pid); 25 int player_id_pool_init(void); 26 int player_list_pid(char id[], int size); 27 28 #endif 29 30 31