/*
- * Copyright (c) 2017-2020 Samsung Electronics Co., Ltd. All rights reserved
+ * Copyright (c) 2017-2023 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return PRIVACY_PRIVILEGE_MANAGER_CALL_CAUSE_ERROR;
}
- return ASKUSER_CALL_CAUSE_ERROR;
+ return PRIVACY_PRIVILEGE_MANAGER_CALL_CAUSE_ERROR;
}
static int g_io_condition_to_askuser_events(GIOCondition cond)
}
ppm_call_cause_e ppm_cause = askuser_client_request_cause_to_ppm(cause);
- ppm_check_result_e ppm_result = askuser_client_request_result_to_ppm(result);
+ ppm_request_result_e ppm_result = askuser_client_request_result_to_ppm(result);
callback_closure->callback(ppm_cause, ppm_result, privilege, callback_closure->user_data);
ppm_request_result_e *ppm_results = malloc(privileges_count * sizeof(ppm_request_result_e));
if (!ppm_results) {
- callback_closure->callback(ASKUSER_CALL_CAUSE_ERROR, NULL, privileges, privileges_count, callback_closure->user_data);
+ callback_closure->callback(PRIVACY_PRIVILEGE_MANAGER_CALL_CAUSE_ERROR, NULL, privileges, privileges_count, callback_closure->user_data);
free(callback_closure);
return;
}
/*
- * Copyright (c) 2017-2020 Samsung Electronics Co., Ltd. All rights reserved
+ * Copyright (c) 2017-2023 Samsung Electronics Co., Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <functional>
#include <map>
#include <set>
+#include <stdexcept>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>