Refactor am services

Use the new service naming scheme.
Remove redundant casts and template specifiers in response.Push.
This commit is contained in:
Billy Laws
2020-02-19 20:35:54 +00:00
committed by ◱ PixelyIon
parent 616222a6db
commit 4af37c4367
39 changed files with 714 additions and 562 deletions

View File

@ -0,0 +1,19 @@
#pragma once
#include <services/base_service.h>
#include <services/serviceman.h>
namespace skyline::service::am {
/**
* @brief This has functions that are used to notify an application about it's state (https://switchbrew.org/wiki/Applet_Manager_services#IApplicationFunctions)
*/
class IApplicationFunctions : public BaseService {
public:
IApplicationFunctions(const DeviceState &state, ServiceManager &manager);
/**
* @brief This returns if the application is running or not, always returns true (https://switchbrew.org/wiki/Applet_Manager_services#NotifyRunning)
*/
void NotifyRunning(type::KSession &session, ipc::IpcRequest &request, ipc::IpcResponse &response);
};
}