xo-reader2: + init_reader2 + reader2_register_types
This commit is contained in:
parent
3198e30234
commit
a96196b365
5 changed files with 111 additions and 3 deletions
21
include/xo/reader2/init_reader2.hpp
Normal file
21
include/xo/reader2/init_reader2.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/** @file init_reader2.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Jan 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <xo/subsys/Subsystem.hpp>
|
||||
|
||||
namespace xo {
|
||||
/* tag to represent the xo-reader2/ subsystem within ordered initialization */
|
||||
enum S_reader2_tag {};
|
||||
|
||||
template <>
|
||||
struct InitSubsys<S_reader2_tag> {
|
||||
static void init();
|
||||
static InitEvidence require();
|
||||
};
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end init_reader2.hpp */
|
||||
17
include/xo/reader2/reader2_register_types.hpp
Normal file
17
include/xo/reader2/reader2_register_types.hpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/** @file reader2_register_types.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Jan 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <xo/gc/Collector.hpp>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** Register reader2 gc-aware types with collector **/
|
||||
bool reader2_register_types(obj<xo::mm::ACollector> gc);
|
||||
}
|
||||
}
|
||||
|
||||
/* end reader2_register_types.hpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue