mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 23:59:49 -04:00
htc: implement htcmisc service object commands
This commit is contained in:
parent
8b32b9eadf
commit
b5ab491603
13 changed files with 302 additions and 41 deletions
|
@ -61,7 +61,7 @@ namespace ams::htc::server::rpc {
|
|||
Task::Complete();
|
||||
}
|
||||
|
||||
Result GetEnvironmentVariableTask::GetResult(size_t *out, char *dst, size_t size) {
|
||||
Result GetEnvironmentVariableTask::GetResult(size_t *out, char *dst, size_t size) const {
|
||||
/* Check our task state. */
|
||||
AMS_ASSERT(this->GetTaskState() == RpcTaskState::Completed);
|
||||
|
||||
|
@ -166,7 +166,7 @@ namespace ams::htc::server::rpc {
|
|||
Task::Complete();
|
||||
}
|
||||
|
||||
Result GetEnvironmentVariableLengthTask::GetResult(size_t *out) {
|
||||
Result GetEnvironmentVariableLengthTask::GetResult(size_t *out) const {
|
||||
/* Check our task state. */
|
||||
AMS_ASSERT(this->GetTaskState() == RpcTaskState::Completed);
|
||||
|
||||
|
@ -241,7 +241,7 @@ namespace ams::htc::server::rpc {
|
|||
Task::Complete();
|
||||
}
|
||||
|
||||
Result RunOnHostTask::GetResult(int *out) {
|
||||
Result RunOnHostTask::GetResult(int *out) const {
|
||||
*out = m_host_result;
|
||||
return ResultSuccess();
|
||||
}
|
||||
|
@ -290,5 +290,4 @@ namespace ams::htc::server::rpc {
|
|||
return m_system_event.GetBase();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ namespace ams::htc::server::rpc {
|
|||
|
||||
Result SetArguments(const char *args, size_t size);
|
||||
void Complete(HtcmiscResult result, const char *data, size_t size);
|
||||
Result GetResult(size_t *out, char *dst, size_t size);
|
||||
Result GetResult(size_t *out, char *dst, size_t size) const;
|
||||
|
||||
const char *GetName() const { return m_name; }
|
||||
int GetNameSize() const { return m_name_size; }
|
||||
|
@ -110,7 +110,7 @@ namespace ams::htc::server::rpc {
|
|||
|
||||
Result SetArguments(const char *args, size_t size);
|
||||
void Complete(HtcmiscResult result, const char *data, size_t size);
|
||||
Result GetResult(size_t *out);
|
||||
Result GetResult(size_t *out) const;
|
||||
|
||||
const char *GetName() const { return m_name; }
|
||||
int GetNameSize() const { return m_name_size; }
|
||||
|
@ -133,7 +133,7 @@ namespace ams::htc::server::rpc {
|
|||
|
||||
Result SetArguments(const char *args, size_t size);
|
||||
void Complete(int host_result);
|
||||
Result GetResult(int *out);
|
||||
Result GetResult(int *out) const;
|
||||
|
||||
const char *GetCommand() const { return m_command; }
|
||||
int GetCommandSize() const { return m_command_size; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue