Mercurial > games > semicongine
diff fuhtark_test/include/winapi/winber.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fuhtark_test/include/winapi/winber.h Wed Nov 26 21:36:48 2025 +0700 @@ -0,0 +1,48 @@ +/** + * This file has no copyright assigned and is placed in the Public Domain. + * This file is part of the w64 mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within this package. + */ +#ifndef _WINBER_DEFINED_ +#define _WINBER_DEFINED_ + +#include "winldap.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef WINBERAPI +#define WINBERAPI DECLSPEC_IMPORT +#endif + +#ifndef BERAPI +#define BERAPI __cdecl +#endif + +#define LBER_ERROR 0xffffffffL +#define LBER_DEFAULT 0xffffffffL + + typedef unsigned int ber_tag_t; + typedef int ber_int_t; + typedef unsigned int ber_uint_t; + typedef int ber_slen_t; + + WINBERAPI BerElement *BERAPI ber_init(BERVAL *pBerVal); + WINBERAPI VOID BERAPI ber_free(BerElement *pBerElement,INT fbuf); + WINBERAPI VOID BERAPI ber_bvfree(BERVAL *pBerVal); + WINBERAPI VOID BERAPI ber_bvecfree(PBERVAL *pBerVal); + WINBERAPI BERVAL *BERAPI ber_bvdup(BERVAL *pBerVal); + WINBERAPI BerElement *BERAPI ber_alloc_t(INT options); + WINBERAPI ULONG BERAPI ber_skip_tag(BerElement *pBerElement,ULONG *pLen); + WINBERAPI ULONG BERAPI ber_peek_tag(BerElement *pBerElement,ULONG *pLen); + WINBERAPI ULONG BERAPI ber_first_element(BerElement *pBerElement,ULONG *pLen,CHAR **ppOpaque); + WINBERAPI ULONG BERAPI ber_next_element(BerElement *pBerElement,ULONG *pLen,CHAR *opaque); + WINBERAPI INT BERAPI ber_flatten(BerElement *pBerElement,PBERVAL *pBerVal); + WINBERAPI INT BERAPI ber_printf(BerElement *pBerElement,PCHAR fmt,...); + WINBERAPI ULONG BERAPI ber_scanf(BerElement *pBerElement,PCHAR fmt,...); + +#ifdef __cplusplus +} +#endif +#endif
