2007-09-24 19:30:53 -07:00
|
|
|
/*! \file sqlproxy.cpp
|
|
|
|
|
* \brief SQLProxy Module
|
|
|
|
|
*
|
2026-03-07 23:19:31 -07:00
|
|
|
* With standard marshaling, the IQueryControl proxy/stub lives in libmux.
|
|
|
|
|
* This module is retained as an empty shell for backward compatibility
|
|
|
|
|
* with configurations that load it.
|
2007-09-24 19:30:53 -07:00
|
|
|
*/
|
|
|
|
|
|
2026-03-09 20:38:37 -06:00
|
|
|
#include "autoconf.h"
|
|
|
|
|
#include "config.h"
|
|
|
|
|
#include "libmux.h"
|
|
|
|
|
#include "modules.h"
|
2007-09-24 19:30:53 -07:00
|
|
|
|
Replace custom integer types (INT8..INT64, UINT8..UINT64) with <cstdint> standard types.
Remove platform-specific typedef chains and limit macros from config.h,
add #include <cstdint>, and replace all usages across 46 files with
int8_t..int64_t, uint8_t..uint64_t, uintptr_t, and standard INT*_MIN/
INT*_MAX/UINT*_MAX limit macros. Semantic aliases (UTF8, UTF16, UTF32,
MUX_CID, MUX_IID, LBUF_OFFSET, etc.) are preserved but now defined in
terms of standard types.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 16:53:58 -07:00
|
|
|
static int32_t g_cServerLocks = 0;
|
2007-09-24 19:30:53 -07:00
|
|
|
|
|
|
|
|
// The following four functions are for access by dlopen.
|
|
|
|
|
//
|
|
|
|
|
extern "C" MUX_RESULT DCL_EXPORT DCL_API mux_CanUnloadNow(void)
|
|
|
|
|
{
|
2026-03-07 23:19:31 -07:00
|
|
|
if (0 == g_cServerLocks)
|
2007-09-24 19:30:53 -07:00
|
|
|
{
|
|
|
|
|
return MUX_S_OK;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return MUX_S_FALSE;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
extern "C" MUX_RESULT DCL_EXPORT DCL_API mux_GetClassObject(MUX_CID cid, MUX_IID iid, void **ppv)
|
|
|
|
|
{
|
2026-03-07 23:19:31 -07:00
|
|
|
UNUSED_PARAMETER(cid);
|
|
|
|
|
UNUSED_PARAMETER(iid);
|
|
|
|
|
UNUSED_PARAMETER(ppv);
|
2007-09-24 19:30:53 -07:00
|
|
|
|
2026-03-07 23:19:31 -07:00
|
|
|
return MUX_E_CLASSNOTAVAILABLE;
|
2007-09-24 19:30:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
extern "C" MUX_RESULT DCL_EXPORT DCL_API mux_Register(void)
|
|
|
|
|
{
|
|
|
|
|
return MUX_S_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 23:19:31 -07:00
|
|
|
extern "C" MUX_RESULT DCL_EXPORT DCL_API mux_Unregister(void)
|
2007-09-24 19:30:53 -07:00
|
|
|
{
|
|
|
|
|
return MUX_S_OK;
|
|
|
|
|
}
|