0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

modules/vm: Add preliminary vm fetch unit.

This commit is contained in:
Jason Volk 2018-06-03 10:02:19 -07:00
parent c58e60c122
commit 8bd6cf05b0
3 changed files with 47 additions and 0 deletions

View file

@ -47,11 +47,13 @@ moduledir = @moduledir@
root_la_SOURCES = root.cc
console_la_SOURCES = console.cc
vm_la_SOURCES = vm.cc
vm_fetch_la_SOURCES = vm_fetch.cc
module_LTLIBRARIES = \
root.la \
console.la \
vm.la \
vm_fetch.la \
###
###############################################################################

View file

@ -60,6 +60,8 @@ ircd::m::vm::notify_hook
void
ircd::m::vm::init()
{
m::modules.emplace("vm_fetch"s, "vm_fetch"s);
id::event::buf event_id;
current_sequence = retired_sequence(event_id);
@ -75,6 +77,8 @@ ircd::m::vm::init()
void
ircd::m::vm::fini()
{
m::modules.erase("vm_fetch"s);
id::event::buf event_id;
const auto current_sequence
{

41
modules/vm_fetch.cc Normal file
View file

@ -0,0 +1,41 @@
// Matrix Construct
//
// Copyright (C) Matrix Construct Developers, Authors & Contributors
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
using namespace ircd;
m::vm::phase
fetch_phase
{
"fetch"
};
void init()
void fini();
mapi::header
IRCD_MODULE
{
"Matrix Virtual Machine: fetch unit",
init, fini
};
//
// init
//
void
init()
{
}
void
fini()
{
}