mirror of
https://github.com/aydencharles/onionHEN.git
synced 2026-10-22 11:53:07 -05:00
Allocate unique near trampolines without MAP_FIXED, gate hooks until install completes, and make pt_attach/pt_call wait and stack alignment fail-closed so controller use during inject cannot corrupt ShellUI.
19 lines
385 B
C++
19 lines
385 B
C++
/* Copyright (C) 2026 OnionHEN */
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Hook callbacks remain pass-through until the complete install transaction commits. */
|
|
void shellui_hooks_begin_install(void);
|
|
void shellui_hooks_publish_ready(void);
|
|
void shellui_hooks_publish_failed(void);
|
|
bool shellui_hooks_are_ready(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|