iPXE
netbios.h
Go to the documentation of this file.
00001 #ifndef _IPXE_NETBIOS_H
00002 #define _IPXE_NETBIOS_H
00003 
00004 /** @file
00005  *
00006  * NetBIOS user names
00007  *
00008  */
00009 
00010 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00011 
00012 extern const char * netbios_domain ( char **username );
00013 
00014 /**
00015  * Restore NetBIOS [domain\]username
00016  *
00017  * @v domain            NetBIOS domain name
00018  * @v username          NetBIOS user name
00019  *
00020  * Restore the separator in a NetBIOS [domain\]username as split by
00021  * netbios_domain().
00022  */
00023 static inline void netbios_domain_undo ( const char *domain, char *username ) {
00024 
00025         /* Restore separator, if applicable */
00026         if ( domain )
00027                 username[-1] = '\\';
00028 }
00029 
00030 #endif /* _IPXE_NETBIOS_H */