htc: implement htcmisc service object commands
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user