After removing libcutils dependency, the off-target garden-app was not building. This change enables it to build and run again Change-Id: Ifb0473f5d05c156f761c72e29f6592b443ee9cb3
40 lines
751 B
C
40 lines
751 B
C
/* Copyright (c) 2013, Qualcomm Technologies, Inc. All Rights Reserved.
|
|
* Qualcomm Technologies Proprietary and Confidential.
|
|
*/
|
|
|
|
#ifndef _FAKE_SCHED_POLICY_H
|
|
#define _FAKE_SCHED_POLICY_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
SP_BACKGROUND = 0,
|
|
SP_FOREGROUND = 1,
|
|
} SchedPolicy;
|
|
|
|
/*===========================================================================
|
|
FUNCTION set_sched_policy
|
|
|
|
DESCRIPTION
|
|
Local copy of this function which bypasses android set_sched_policy
|
|
|
|
DEPENDENCIES
|
|
None
|
|
|
|
RETURN VALUE
|
|
0
|
|
|
|
SIDE EFFECTS
|
|
N/A
|
|
|
|
===========================================================================*/
|
|
int set_sched_policy(int tid, SchedPolicy policy);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _FAKE_SCHED_POLICY_H
|
|
|