taisei/src/dynstage.h
Andrei Alexeyev dcb630b37d
stageinfo,stage: implement stage hot-reloading
POSIX platforms only. Must be enabled via -Dstages_live_reload=true.
2022-02-05 17:58:42 +02:00

21 lines
612 B
C

/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
*/
#pragma once
#include "taisei.h"
#include "stages/stages.h"
void dynstage_init(void);
void dynstage_init_monitoring(void);
void dynstage_shutdown(void);
bool dynstage_reload_library(void);
StagesExports *dynstage_get_exports(void);
// NOTE: represents the amount of times the on-disk shared object was seen changing.
uint32_t dynstage_get_generation(void);