From a7ffe354b225db0b2712af41ea82743fb07758ca Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 25 May 2019 12:20:51 +0000 Subject: internals: renamed nt_debug.h --> nt_log.h, renamed interfaces accordingly. --- include/ntapi/nt_debug.h | 37 ------------------------------------- include/ntapi/nt_log.h | 37 +++++++++++++++++++++++++++++++++++++ include/ntapi/ntapi.h | 10 +++++----- 3 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 include/ntapi/nt_debug.h create mode 100644 include/ntapi/nt_log.h (limited to 'include') diff --git a/include/ntapi/nt_debug.h b/include/ntapi/nt_debug.h deleted file mode 100644 index a517a78..0000000 --- a/include/ntapi/nt_debug.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef _NT_DEBUG_H_ -#define _NT_DEBUG_H_ - -#include "nt_abi.h" -#include "nt_file.h" - -typedef ssize_t __cdecl ntapi_dbg_write( - __in void * hfile, - __in const void * buf, - __in size_t bytes); - - -typedef int32_t __cdecl ntapi_dbg_fn_call( - __in void * hfile __optional, - __in const char * fn_caller_name, - __in void * fn_callee_addr, - __in uintptr_t fn_ret, - __in ntapi_dbg_write* pfn_dbg_write __optional, - __in const char * source __optional, - __in int line __optional); - - -typedef int32_t __cdecl ntapi_dbg_msg( - __in void * hfile __optional, - __in const char * source __optional, - __in int line __optional, - __in const char * fn_caller_name, - __in const char * fmt, - __in uintptr_t arg1, - __in uintptr_t arg2, - __in uintptr_t arg3, - __in uintptr_t arg4, - __in uintptr_t arg5, - __in uintptr_t arg6, - __in ntapi_dbg_write* pfn_dbg_write __optional); - -#endif diff --git a/include/ntapi/nt_log.h b/include/ntapi/nt_log.h new file mode 100644 index 0000000..7a64564 --- /dev/null +++ b/include/ntapi/nt_log.h @@ -0,0 +1,37 @@ +#ifndef _NT_LOG_H_ +#define _NT_LOG_H_ + +#include "nt_abi.h" +#include "nt_file.h" + +typedef ssize_t __cdecl ntapi_log_write( + __in void * hfile, + __in const void * buf, + __in size_t bytes); + + +typedef int32_t __cdecl ntapi_log_fn_call( + __in void * hfile __optional, + __in const char * fn_caller_name, + __in void * fn_callee_addr, + __in uintptr_t fn_ret, + __in ntapi_log_write* pfn_log_write __optional, + __in const char * source __optional, + __in int line __optional); + + +typedef int32_t __cdecl ntapi_log_msg( + __in void * hfile __optional, + __in const char * source __optional, + __in int line __optional, + __in const char * fn_caller_name, + __in const char * fmt, + __in uintptr_t arg1, + __in uintptr_t arg2, + __in uintptr_t arg3, + __in uintptr_t arg4, + __in uintptr_t arg5, + __in uintptr_t arg6, + __in ntapi_log_write* pfn_log_write __optional); + +#endif diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h index 82491a7..ec4fb31 100644 --- a/include/ntapi/ntapi.h +++ b/include/ntapi/ntapi.h @@ -46,7 +46,7 @@ #include "nt_vfd.h" #include "nt_tty.h" #include "nt_hash.h" -#include "nt_debug.h" +#include "nt_log.h" #ifdef __cplusplus @@ -650,10 +650,10 @@ typedef struct _ntapi_vtbl { /* nt_statfs.h */ ntapi_tt_statfs * tt_statfs; - /* nt_debug.h */ - ntapi_dbg_write * dbg_write; - ntapi_dbg_fn_call * dbg_fn_call; - ntapi_dbg_msg * dbg_msg; + /* nt_log.h */ + ntapi_log_write * log_write; + ntapi_log_fn_call * log_fn_call; + ntapi_log_msg * log_msg; } ntapi_vtbl; -- cgit v1.2.3