Skip to content

Improve IpcParsedCommand domain message info. - #112

Merged
yellows8 merged 3 commits into
switchbrew:masterfrom
Atmosphere-NX:ipc_domain
Jun 25, 2018
Merged

Improve IpcParsedCommand domain message info.#112
yellows8 merged 3 commits into
switchbrew:masterfrom
Atmosphere-NX:ipc_domain

Conversation

@SciresM

@SciresM SciresM commented Jun 11, 2018

Copy link
Copy Markdown
Contributor

Currently it's hard to use IpcParsedCommand for domain messages.

This fixes that.

DomainMessageType_Invalid = 0,
DomainMessageType_SendMessage = 1,
DomainMessageType_Close = 2,
} DomainMessageType;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ipc prefix missing + elsewhere.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was matching the existing style -- @plutooo called the domain header type "DomainMessageHeader", does that also need to change?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NVM then.

Comment thread nx/include/switch/kernel/ipc.h Outdated
case DomainMessageType_Close:
break;
default:
return 0xF601;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does official sw return this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed to return what official sw does.

Output errcode for parse now matches official sw for the error cases we check.
Comment thread nx/include/switch/kernel/ipc.h Outdated
break;
default:
return 0xF601;
return 0x1A60A;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change these to a new libnx error.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is supposed to match official sw, not sure.

@yellows8
yellows8 merged commit 773ff46 into switchbrew:master Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants