[Bugfix][bug-view-1352]Add whitelist clear API
Only Configure:No
Affected branch:master
Affected module:autosuspend
Is it affected on both ZXIC and MTK:only ZXIC
Self-test:Yes
Change-Id: I1f728300bd59be6f0ed00e2d6e5f74f25be8d2a6
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
index 6fbedd5..ce1b692 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-autosuspend/lynq-qser-autosuspend.cpp
@@ -8,7 +8,7 @@
#include <pthread.h>
#include <unistd.h>
-#include <lynq_autosuspend.h>
+
#include "lynq-qser-autosuspend.h"
#include "liblog/lynq_deflog.h"
#include <include/lynq_uci.h>
@@ -17,7 +17,7 @@
extern "C" {
#endif
-
+#include "lynq_autosuspend.h"
extern int lynq_autosleep_enable(void);
extern int lynq_autosleep_disable(void);
extern int release_wake_lock(char *name);
@@ -464,6 +464,15 @@
}
+int qser_whitelist_clear(void)
+{
+ int ret;
+ ret = lynq_whitelist_clear();
+ LYERRLOG("clear ret =%d\n", ret);
+ return ret;
+
+}
+
DEFINE_LYNQ_LIB_LOG(LYNQ_QSER_AUTOSUSPEND)
#ifdef __cplusplus