-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First step towards networking support #15
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "afd_endpoint.hpp" | ||
|
||
#include "windows-emulator/windows_emulator.hpp" | ||
|
||
namespace | ||
{ | ||
struct afd_endpoint : stateless_device | ||
{ | ||
NTSTATUS io_control(const io_device_context& c) override | ||
{ | ||
c.win_emu.logger.print(color::cyan, "AFD IOCTL: %X\n", c.io_control_code); | ||
return STATUS_SUCCESS; | ||
} | ||
}; | ||
} | ||
|
||
std::unique_ptr<io_device> create_afd_endpoint() | ||
{ | ||
return std::make_unique<afd_endpoint>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#pragma once | ||
#include "../io_device.hpp" | ||
|
||
std::unique_ptr<io_device> create_afd_endpoint(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters