aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.cpp2
-rw-r--r--src/applist.cpp2
-rw-r--r--src/applist.hpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/app.cpp b/src/app.cpp
index b029601..a0e7130 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -892,7 +892,7 @@ WMError App::setRequest(const std::string& appid, const std::string &role, const
}
WMRequest req = WMRequest(appid, role, area, task);
- unsigned new_req = g_app_list.addAllocateRequest(req);
+ unsigned new_req = g_app_list.addRequest(req);
*req_num = new_req;
g_app_list.reqDump();
diff --git a/src/applist.cpp b/src/applist.cpp
index b947518..c6eaa0c 100644
--- a/src/applist.cpp
+++ b/src/applist.cpp
@@ -225,7 +225,7 @@ unsigned AppList::getRequestNumber(const string &appid) const
* @attention If the request number is different with curent request number,
* it means the previous request is not finished.
*/
-unsigned AppList::addAllocateRequest(WMRequest req)
+unsigned AppList::addRequest(WMRequest req)
{
std::lock_guard<std::mutex> lock(this->mtx);
if (this->req_list.size() == 0)
diff --git a/src/applist.hpp b/src/applist.hpp
index 9431ff6..86c9903 100644
--- a/src/applist.hpp
+++ b/src/applist.hpp
@@ -53,7 +53,7 @@ class AppList
// Request Interface
unsigned currentRequestNumber() const;
unsigned getRequestNumber(const std::string &appid) const;
- unsigned addAllocateRequest(WMRequest req);
+ unsigned addRequest(WMRequest req);
WMError setAction(unsigned req_num, const struct WMAction &action);
WMError setAction(unsigned req_num, const std::string &appid, const std::string &role, const std::string &area, TaskVisible visible);
bool setEndDrawFinished(unsigned req_num, const std::string &appid, const std::string &role);