holdingarea/llvm/llvm-gcc4.2-2.7-x86-mingw32/include/wsnetbs.h
author Matt Plumtree <matt.plumtree@nokia.com>
Thu, 07 Oct 2010 13:58:22 +0100
branchbug235_bringup_0
changeset 55 09263774e342
parent 20 d2d6724aef32
permissions -rw-r--r--
Move GLES20 source into standard locations Move Khronos headers into their respective components, to be exported by each. Remove hostthreadadapter as nothing outside of the vghwapiwrapper, which now contains the code, needs it

#ifndef _WSNETBS_H
#define _WSNETBS_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif

#define NETBIOS_NAME_LENGTH	16
#define NETBIOS_UNIQUE_NAME	0
#define NETBIOS_GROUP_NAME	1
#define NETBIOS_TYPE_QUICK_UNIQUE	2
#define NETBIOS_TYPE_QUICK_GROUP	3

#ifndef RC_INVOKED
typedef struct sockaddr_nb {
	short	snb_family;
	u_short	snb_type;
	char	snb_name[NETBIOS_NAME_LENGTH];
} SOCKADDR_NB, *PSOCKADDR_NB, *LPSOCKADDR_NB;
#define SET_NETBIOS_SOCKADDR(_snb,_type,_name,_port) \
{ \
	register int _i; \
	register char *_n = (_name); \
	register PSOCKADDR_NB _s = (_snb); \
	_s->snb_family = AF_NETBIOS; \
	_s->snb_type = (_type); \
	for (_i=0; _n[_i] != '\0' && _i<NETBIOS_NAME_LENGTH-1; _i++) { \
		_s->snb_name[_i] = _n[_i]; \
	} \
	for (; _i<NETBIOS_NAME_LENGTH-1; _i++) { \
		_s->snb_name[_i] = ' '; \
	} \
	_s->snb_name[NETBIOS_NAME_LENGTH-1] = (_port); \
}
#endif   /* RC_INVOKED */
#endif