Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Shims.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
3// Licensed under the Apache License, Version 2.0 (see LICENSE file)
4// Official repository: https://git.nekernel.org/src
5
6#ifndef _NE_DDK_SHIMS_H_
7#define _NE_DDK_SHIMS_H_
8
9#include <Ne/System/CAS.h>
10
11#ifndef _SHIMS
12#define _SHIMS (202605L)
13#endif
14
15struct SHANDLE;
16
17typedef Ref ShmsRef;
18typedef VoidPtr ShmsBlob;
19
20struct _SHARED SHANDLE _FINAL {
23};
24
25IMPORT_C SInt32 ShmInstallProc(_InOut SHANDLE* handle, _Input VoidPtr proc);
26IMPORT_C SInt32 ShmInstallProcII(_InOut SHANDLE* handle, _Input VoidPtr proc, _Input SInt32 flags);
27IMPORT_C SInt32 ShmInstallProcIII(_InOut SHANDLE* handle, _Input VoidPtr proc, _Input SInt32 flags, _Input SInt32 type);
28
29IMPORT_C Void ShmDestroyProc(_InOut SHANDLE* handle);
30IMPORT_C Void ShmDestroyProcII(_InOut SHANDLE* handle, _Input SInt32 flags);
31IMPORT_C Void ShmDestroyProcIII(_InOut SHANDLE* handle, _Input SInt32 flags, _Input Bool zero_out);
32
33#endif
#define flags
@ Bool
IMPORT_C Void ShmDestroyProcIII(_InOut SHANDLE *handle, _Input SInt32 flags, _Input Bool zero_out)
IMPORT_C SInt32 ShmInstallProc(_InOut SHANDLE *handle, _Input VoidPtr proc)
IMPORT_C SInt32 ShmInstallProcIII(_InOut SHANDLE *handle, _Input VoidPtr proc, _Input SInt32 flags, _Input SInt32 type)
Ref ShmsRef
Definition Shims.h:17
IMPORT_C Void ShmDestroyProc(_InOut SHANDLE *handle)
VoidPtr ShmsBlob
Definition Shims.h:18
IMPORT_C SInt32 ShmInstallProcII(_InOut SHANDLE *handle, _Input VoidPtr proc, _Input SInt32 flags)
IMPORT_C Void ShmDestroyProcII(_InOut SHANDLE *handle, _Input SInt32 flags)
#define _SHARED
Shared attribute for the host pattern.
Definition Config.h:20
The Subsystem Information for Program Loader.
Definition Config.h:46
ShmsBlob fPrivate
Mandatory for NeAnt handles.
Definition Shims.h:22
ShmsRef fHandle
Definition Shims.h:21