Mercurial > games > semicongine
diff fuhtark_test/include/winapi/wshisotp.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/wshisotp.h Wed Nov 26 21:36:48 2025 +0700 @@ -0,0 +1,41 @@ +/** + * 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 _WSHISOTP_ +#define _WSHISOTP_ + +#define ISOPROTO_TP0 25 +#define ISOPROTO_TP1 26 +#define ISOPROTO_TP2 27 +#define ISOPROTO_TP3 28 +#define ISOPROTO_TP4 29 +#define ISOPROTO_TP ISOPROTO_TP4 +#define ISOPROTO_CLTP 30 +#define ISOPROTO_CLNP 31 +#define ISOPROTO_X25 32 +#define ISOPROTO_INACT_NL 33 +#define ISOPROTO_ESIS 34 +#define ISOPROTO_INTRAISIS 35 + +#define IPPROTO_RAW 255 +#define IPPROTO_MAX 256 + +#define ISO_MAX_ADDR_LENGTH 64 +#define ISO_HIERARCHICAL 0 +#define ISO_NON_HIERARCHICAL 1 + +typedef struct sockaddr_tp { + u_short tp_family; + u_short tp_addr_type; + u_short tp_taddr_len; + u_short tp_tsel_len; + u_char tp_addr[ISO_MAX_ADDR_LENGTH]; +} SOCKADDR_TP,*PSOCKADDR_TP,*LPSOCKADDR_TP; + +#define ISO_SET_TP_ADDR(sa_tp,port,portlen,node,nodelen) (sa_tp)->tp_family = AF_ISO; (sa_tp)->tp_addr_type = ISO_HIERARCHICAL; (sa_tp)->tp_tsel_len = (portlen); (sa_tp)->tp_taddr_len = (portlen) + (nodelen); memcpy(&(sa_tp)->tp_addr,(port),(portlen)); memcpy(&(sa_tp)->tp_addr[portlen],(node),(nodelen)); + +#define ISO_EXP_DATA_USE 00 +#define ISO_EXP_DATA_NUSE 01 +#endif
