summaryrefslogtreecommitdiff
path: root/src/user-awareness-monitors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user-awareness-monitors.c')
-rw-r--r--src/user-awareness-monitors.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/user-awareness-monitors.c b/src/user-awareness-monitors.c
index b0a974f..93b932a 100644
--- a/src/user-awareness-monitors.c
+++ b/src/user-awareness-monitors.c
@@ -1353,4 +1353,19 @@ int ua_get_detection_window(unsigned int* window)
return UA_ERROR_NONE;
}
+int ua_reset_database(void)
+{
+ FUNC_ENTRY;
+ int ret;
+
+ ret = _ua_get_error_code(_uam_db_reset());
+ if (UA_ERROR_NONE != ret) {
+ UA_ERR("_uam_service_remove_device returned %s",
+ _ua_get_error_string(ret));
+ return ret;
+ }
+
+ FUNC_EXIT;
+ return UA_ERROR_NONE;
+}
/* LCOV_EXCL_STOP */