10#if !defined(SDBWRITE_HOSTTOOL)
11#define WIN32_NO_STATUS
72 *tagid =
buf->write_iter +
sizeof(
TAG) +
sizeof(
DWORD);
76 return pdb->string_lookup !=
NULL;
106 static const DWORD version_major = 2, version_minor = 1;
107 static const char*
magic =
"sdbf";
284#if !defined(SDBWRITE_HOSTTOOL)
329 list_id =
pdb->write_iter;
ACPI_SIZE strlen(const char *String)
DWORD SdbpStrsize(PCWSTR string)
#define TAG_STRINGTABLE_ITEM
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
#define memcpy(s1, s2, n)
BOOL WINAPI SdbpCheckTagType(TAG tag, WORD type)
void WINAPI SdbpCloseMemMappedFile(PMEMMAPPED mapping)
void WINAPI SdbpFlush(PDB pdb)
BOOL WINAPI SdbpCheckTagIDType(PDB pdb, TAGID tagid, WORD type)
BOOL WINAPI SdbpOpenMemMappedFile(LPCWSTR path, PMEMMAPPED mapping)
PDB WINAPI SdbpCreate(LPCWSTR path, PATH_TYPE type, BOOL write)
#define SdbReAlloc(mem, size, oldSize)
BOOL SdbpAddStringToTable(struct SdbStringHashTable **table, const WCHAR *str, TAGID *tagid)
BOOL WINAPI SdbWriteNULLTag(PDB pdb, TAG tag)
static void WINAPI SdbpWrite(PDB pdb, const void *data, DWORD size)
TAGID WINAPI SdbBeginWriteListTag(PDB pdb, TAG tag)
BOOL WINAPI SdbWriteQWORDTag(PDB pdb, TAG tag, QWORD data)
BOOL WINAPI SdbWriteStringTag(PDB pdb, TAG tag, LPCWSTR string)
BOOL WINAPI SdbWriteStringRefTag(PDB pdb, TAG tag, TAGID tagid)
static BOOL WINAPI SdbpWriteStringtable(PDB pdb)
BOOL WINAPI SdbWriteBinaryTagFromFile(PDB pdb, TAG tag, LPCWSTR path)
BOOL WINAPI SdbWriteDWORDTag(PDB pdb, TAG tag, DWORD data)
void WINAPI SdbCloseDatabase(PDB)
static BOOL WINAPI SdbpGetOrAddStringRef(PDB pdb, LPCWSTR string, TAGID *tagid)
BOOL WINAPI SdbEndWriteListTag(PDB pdb, TAGID tagid)
BOOL WINAPI SdbWriteBinaryTag(PDB pdb, TAG tag, const BYTE *data, DWORD size)
PDB WINAPI SdbCreateDatabase(LPCWSTR path, PATH_TYPE type)
void WINAPI SdbCloseDatabaseWrite(PDB pdb)
BOOL WINAPI SdbWriteWORDTag(PDB pdb, TAG tag, WORD data)
#define TAG_TYPE_STRINGREF