Files
2ine-tms34010/native/quecalls.c
T
Ryan C. Gordon 6821de5ed7 Automate handling of support code for OS/2 binaries.
Now a perl script parses our headers and generates glue code, export tables,
etc. This automates all the macro nonsense and bridge code, and separates
out all the stuff you need for binary compat with OS/2, so you can remove it
all from the build if you want to just build native libraries that supply
the OS/2 API to native apps (like Winelib vs Wine).

This makes upkeep details less nasty, and easier to build native binaries
when implementing and improving APIs, so you can debug directly without
a lot of drama.
2018-02-27 03:25:21 -05:00

73 lines
2.1 KiB
C

/**
* 2ine; an OS/2 emulator for Linux.
*
* Please see the file LICENSE.txt in the source's root directory.
*
* This file written by Ryan C. Gordon.
*/
#include "os2native.h"
#include "quecalls.h"
#include "quecalls-lx.h"
APIRET DosCreateQueue(PHQUEUE phq, ULONG priority, PSZ pszName)
{
TRACE_NATIVE("DosCreateQueue(%p, %u, '%s')", phq, priority, pszName);
FIXME("write me");
return ERROR_QUE_NO_MEMORY;
} // DosCreateQueue
APIRET DosCloseQueue(HQUEUE hq)
{
TRACE_NATIVE("DosCloseQueue(%u)", (uint) hq);
FIXME("write me");
return ERROR_QUE_INVALID_HANDLE;
} // DosCloseQueue
APIRET DosOpenQueue(PPID ppid, PHQUEUE phq, PSZ pszName)
{
TRACE_NATIVE("DosOpenQueue(%p, %p, '%s')", ppid, phq, pszName);
FIXME("write me");
return ERROR_QUE_NO_MEMORY;
} // DosOpenQueue
APIRET DosPeekQueue(HQUEUE hq, PREQUESTDATA pRequest, PULONG pcbData, PPVOID ppbuf, PULONG element, BOOL32 nowait, PBYTE ppriority, HEV hsem)
{
TRACE_NATIVE("DosPeekQueue(%u, %p, %p, %p, %p, %u, %p, %u)", (uint) hq, pRequest, pcbData, ppbuf, element, (uint) nowait, ppriority, (uint) hsem);
FIXME("write me");
return ERROR_QUE_INVALID_HANDLE;
} // DosPeekQueue
APIRET DosPurgeQueue(HQUEUE hq)
{
TRACE_NATIVE("DosPurgeQueue(%u)", (uint) hq);
FIXME("write me");
return ERROR_QUE_INVALID_HANDLE;
} // DosCloseQueue
APIRET DosQueryQueue(HQUEUE hq, PULONG pcbEntries)
{
TRACE_NATIVE("DosQueryQueue(%u, %p)", (uint) hq, pcbEntries);
FIXME("write me");
return ERROR_QUE_INVALID_HANDLE;
} // DosQueryQueue
APIRET DosReadQueue(HQUEUE hq, PREQUESTDATA pRequest, PULONG pcbData, PPVOID ppbuf, ULONG element, BOOL32 wait, PBYTE ppriority, HEV hsem)
{
TRACE_NATIVE("DosReadQueue(%u, %p, %p, %p, %u, %u, %p, %u)", (uint) hq, pRequest, pcbData, ppbuf, (uint) element, (uint) wait, ppriority, (uint) hsem);
FIXME("write me");
return ERROR_QUE_INVALID_HANDLE;
} // DosReadQueue
APIRET DosWriteQueue(HQUEUE hq, ULONG request, ULONG cbData, PVOID pbData, ULONG priority)
{
TRACE_NATIVE("DosWriteQueue(%u)", (uint) hq);
FIXME("write me");
return ERROR_QUE_INVALID_HANDLE;
} // DosWriteQueue
// end of quecalls.c ...