Skip to content

Commit

Permalink
added LM_CALL for vmt methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rdbo committed Jan 2, 2024
1 parent 6584bc7 commit 4e23ac5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions include/libmem/libmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -811,27 +811,27 @@ LM_CodeLengthEx(lm_process_t *pproc,

/****************************************/

LM_API lm_void_t
LM_API lm_void_t LM_CALL
LM_VmtNew(lm_address_t *vtable,
lm_vmt_t *vmtbuf);

LM_API lm_bool_t
LM_API lm_bool_t LM_CALL
LM_VmtHook(lm_vmt_t *pvmt,
lm_size_t fnindex,
lm_address_t dst);

LM_API lm_void_t
LM_API lm_void_t LM_CALL
LM_VmtUnhook(lm_vmt_t *pvmt,
lm_size_t fnindex);

LM_API lm_address_t
LM_API lm_address_t LM_CALL
LM_VmtGetOriginal(const lm_vmt_t *pvmt,
lm_size_t fnindex);

LM_API lm_void_t
LM_API lm_void_t LM_CALL
LM_VmtReset(lm_vmt_t *pvmt);

LM_API lm_void_t
LM_API lm_void_t LM_CALL
LM_VmtFree(lm_vmt_t *pvmt);

#if LM_LANG == LM_LANG_CPP
Expand Down
12 changes: 6 additions & 6 deletions src/vmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ _LM_VmtSearchPrev(lm_vmt_t *pvmt,
return entry;
}

LM_API lm_void_t
LM_API lm_void_t LM_CALL
LM_VmtNew(lm_address_t *vtable,
lm_vmt_t *vmtbuf)
{
Expand All @@ -63,7 +63,7 @@ LM_VmtNew(lm_address_t *vtable,

/********************************/

LM_API lm_bool_t
LM_API lm_bool_t LM_CALL
LM_VmtHook(lm_vmt_t *pvmt,
lm_size_t fnindex,
lm_address_t dst)
Expand Down Expand Up @@ -96,7 +96,7 @@ LM_VmtHook(lm_vmt_t *pvmt,

/********************************/

LM_API lm_void_t
LM_API lm_void_t LM_CALL
LM_VmtUnhook(lm_vmt_t *pvmt,
lm_size_t fnindex)
{
Expand Down Expand Up @@ -125,7 +125,7 @@ LM_VmtUnhook(lm_vmt_t *pvmt,

/********************************/

LM_API lm_address_t
LM_API lm_address_t LM_CALL
LM_VmtGetOriginal(const lm_vmt_t *pvmt,
lm_size_t fnindex)
{
Expand All @@ -143,7 +143,7 @@ LM_VmtGetOriginal(const lm_vmt_t *pvmt,

/********************************/

LM_API lm_void_t
LM_API lm_void_t LM_CALL
LM_VmtReset(lm_vmt_t *pvmt)
{
lm_vmt_entry_t *entry;
Expand All @@ -163,7 +163,7 @@ LM_VmtReset(lm_vmt_t *pvmt)

/********************************/

LM_API lm_void_t
LM_API lm_void_t LM_CALL
LM_VmtFree(lm_vmt_t *pvmt)
{
LM_VmtReset(pvmt);
Expand Down

0 comments on commit 4e23ac5

Please sign in to comment.