1 // Copyright (c) 2021 - 2022 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef CREATE_CACHE_REQUEST_HANDLER_HH_
6 #define CREATE_CACHE_REQUEST_HANDLER_HH_
8 #include "abstract_request_handler.hh"
9 #include "result_parcelable.hh"
13 namespace pkgmgr_server {
14 namespace request_handler {
17 #define EXPORT_API __attribute__((visibility("default")))
20 class EXPORT_API CreateCacheRequestHandler : public AbstractRequestHandler {
22 CreateCacheRequestHandler();
23 bool HandleRequest(unsigned char* data, int size,
24 const std::string& locale) override;
25 tizen_base::Parcel ExtractResult() override;
27 void PreExec() override;
28 void PostExec() override;
33 explicit Scheduler(pid_t tid);
35 void ChangePriority();
39 int Get(int* priority);
40 int Set(int priority);
48 bool success_ = false;
52 } // namespace request_handler
53 } // namespace pkgmgr_server
55 #endif // CREATE_CACHE_REQUEST_HANDLER_HH_