mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-18 17:14:28 -04:00
new-ipc: implement deferral. sm now works.
This commit is contained in:
parent
f4dcd1db9b
commit
c8ed190e5c
13 changed files with 193 additions and 157 deletions
|
@ -22,7 +22,7 @@
|
|||
namespace sts::sm {
|
||||
|
||||
/* Service definition. */
|
||||
class DmntService final : public IServiceObject {
|
||||
class DmntService final : public sf::IServiceObject {
|
||||
protected:
|
||||
/* Command IDs. */
|
||||
enum class CommandId {
|
||||
|
@ -32,14 +32,14 @@ namespace sts::sm {
|
|||
};
|
||||
private:
|
||||
/* Actual commands. */
|
||||
virtual Result AtmosphereGetRecord(Out<ServiceRecord> record, ServiceName service);
|
||||
virtual void AtmosphereListRecords(OutBuffer<ServiceRecord> records, Out<u64> out_count, u64 offset);
|
||||
virtual void AtmosphereGetRecordSize(Out<u64> record_size);
|
||||
virtual Result AtmosphereGetRecord(sf::Out<ServiceRecord> record, ServiceName service);
|
||||
virtual void AtmosphereListRecords(const sf::OutArray<ServiceRecord> &records, sf::Out<u64> out_count, u64 offset);
|
||||
virtual void AtmosphereGetRecordSize(sf::Out<u64> record_size);
|
||||
public:
|
||||
DEFINE_SERVICE_DISPATCH_TABLE {
|
||||
MAKE_SERVICE_COMMAND_META(DmntService, AtmosphereGetRecord),
|
||||
MAKE_SERVICE_COMMAND_META(DmntService, AtmosphereListRecords),
|
||||
MAKE_SERVICE_COMMAND_META(DmntService, AtmosphereGetRecordSize),
|
||||
MAKE_SERVICE_COMMAND_META(AtmosphereGetRecord),
|
||||
MAKE_SERVICE_COMMAND_META(AtmosphereListRecords),
|
||||
MAKE_SERVICE_COMMAND_META(AtmosphereGetRecordSize),
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue