Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions dll/lmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@

namespace lmgr {

int CDECL lc_checkout() {
HOST_CONTEXT_GUARD();
DEBUG_LOG("lc_checkout()\n");
return 0;
}

int CDECL lc_set_attr() {
HOST_CONTEXT_GUARD();
DEBUG_LOG("lc_set_attr()\n");
return 0;
}

int CDECL lc_new_job() {
HOST_CONTEXT_GUARD();
DEBUG_LOG("lc_new_job()\n");
return 0;
}

int CDECL lc_free_job() {
HOST_CONTEXT_GUARD();
DEBUG_LOG("lc_free_job()\n");
return 0;
}

int CDECL lc_checkin() {
HOST_CONTEXT_GUARD();
DEBUG_LOG("lc_checkin()\n");
return 0;
}

int CDECL lp_checkout(int a, int b, LPCSTR c, LPCSTR d, int e, LPCSTR f, int *out) {
HOST_CONTEXT_GUARD();
DEBUG_LOG("lp_checkout(%d, %d, %s, %s, %d, %s)\n", a, b, c, d, e, f);
Expand All @@ -25,10 +55,20 @@ int CDECL lp_checkin() {

static void *resolveByOrdinal(uint16_t ordinal) {
switch (ordinal) {
case 33:
return (void *)thunk_lmgr_lc_checkin;
case 34:
return (void *)thunk_lmgr_lc_checkout;
case 43:
return (void *)thunk_lmgr_lc_free_job;
case 61:
return (void *)thunk_lmgr_lc_set_attr;
case 189:
return (void *)thunk_lmgr_lp_checkin;
case 190:
return (void *)thunk_lmgr_lp_checkout;
case 249:
return (void *)thunk_lmgr_lc_new_job;
}
return 0;
}
Expand Down
6 changes: 6 additions & 0 deletions dll/lmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

namespace lmgr {

int CDECL lc_checkout();
int CDECL lc_set_attr();
int CDECL lc_new_job();
int CDECL lc_free_job();
int CDECL lc_checkin();

int CDECL lp_checkout(int a, int b, LPCSTR c, LPCSTR d, int e, LPCSTR f, int *out);
int CDECL lp_checkin();

Expand Down