32 lines
739 B
C++
32 lines
739 B
C++
/*
|
|
* Copyright (c) 2014 Amlogic, Inc. All rights reserved.
|
|
*
|
|
* This source code is subject to the terms and conditions defined in the
|
|
* file 'LICENSE' which is part of this source code package.
|
|
*
|
|
* Description: header file
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "resourcemanage.h"
|
|
|
|
class CTvResman {
|
|
public:
|
|
static CTvResman *getInstance();
|
|
static void onResPreemptCallback(void* param);
|
|
int getResmanHandle();
|
|
bool Resman_Request(int app_type, int res_type, int timeout,const char *arg);
|
|
int Resman_Query(void * res_status);
|
|
void Resman_FreeRes(int res_type);
|
|
void Resman_Release();
|
|
|
|
private:
|
|
static CTvResman *mInstance;
|
|
CTvResman();
|
|
~CTvResman();
|
|
|
|
int mResmanFd;
|
|
bool mOnPreemptRegistered;
|
|
};
|