21 return ::calloc(1,
size);
27 if (newMem &&
size > oldSize)
83 if (
pdb->string_buffer)
85 if (
pdb->string_lookup)
133 const char* LevelStr;
161#define TICKSPERSEC 10000000
163#define TICKSTO1970 0x019db1ded53e8000LL
165#define TICKSTO1970 0x019db1ded53e8000i64
181 sdbstring outputW(output.begin(), output.end());
191 return std::string(
argv[
i] + 2);
195 return std::string();
207 std::string
input, output;
227 if (
input.empty() || output.empty())
232 printf(
"Failed converting '%s' to '%s'\n",
input.c_str(), output.c_str());
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP size_t __cdecl fwrite(_In_reads_bytes_(_Size *_Count) const void *_Str, _In_ size_t _Size, _In_ size_t _Count, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vprintf(_In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
void __cdecl srand(_In_ unsigned int _Seed)
#define memcpy(s1, s2, n)
static PLARGE_INTEGER Time
enum _SHIM_LOG_LEVEL SHIM_LOG_LEVEL
#define SHIM_INFO(fmt,...)
#define SHIM_WARN(fmt,...)
#define SHIM_ERR(fmt,...)
void SdbpTableDestroy(struct SdbStringHashTable **pTable)
void WINAPI SdbCloseDatabase(PDB pdb)
BOOL WINAPIV ShimDbgPrint(SHIM_LOG_LEVEL Level, PCSTR FunctionName, PCSTR Format,...)
BOOL WINAPI SdbpCheckTagType(TAG tag, WORD type)
TAG WINAPI SdbGetTagFromTagID(PDB pdb, TAGID tagid)
BOOL WINAPI SdbpReadData(PDB pdb, PVOID dest, DWORD offset, DWORD num)
VOID NTAPI RtlSecondsSince1970ToTime(IN ULONG SecondsSince1970, OUT PLARGE_INTEGER Time)
static void update_loglevel(int argc, char *argv[], int &i)
static std::string get_strarg(int argc, char *argv[], int &i)
LPVOID WINAPI SdbpReAlloc(LPVOID mem, SIZE_T size, SIZE_T oldSize)
bool xml_2_db(const char *xml, const WCHAR *sdb)
void WINAPI SdbpFree(LPVOID mem)
void WINAPI SdbpFlush(PDB pdb)
static bool run_one(std::string &input, std::string &output)
LPVOID WINAPI SdbpAlloc(SIZE_T size)
BOOL WINAPI SdbpCheckTagIDType(PDB pdb, TAGID tagid, WORD type)
DWORD WINAPI SdbpStrsize(PCWSTR string)
DWORD SdbpStrlen(PCWSTR string)
PDB WINAPI SdbpCreate(LPCWSTR path, PATH_TYPE type, BOOL write)
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
std::basic_string< WCHAR > sdbstring