xo-reader2: + init_reader2 + reader2_register_types

This commit is contained in:
Roland Conybeare 2026-01-18 19:09:48 -05:00
commit a96196b365
5 changed files with 111 additions and 3 deletions

View 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 */

View 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 */