iPXE
netbios.h
Go to the documentation of this file.
1 #ifndef _IPXE_NETBIOS_H
2 #define _IPXE_NETBIOS_H
3 
4 /** @file
5  *
6  * NetBIOS user names
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 FILE_SECBOOT ( PERMITTED );
12 
13 extern const char * netbios_domain ( char **username );
14 
15 /**
16  * Restore NetBIOS [domain\]username
17  *
18  * @v domain NetBIOS domain name
19  * @v username NetBIOS user name
20  *
21  * Restore the separator in a NetBIOS [domain\]username as split by
22  * netbios_domain().
23  */
24 static inline void netbios_domain_undo ( const char *domain, char *username ) {
25 
26  /* Restore separator, if applicable */
27  if ( domain )
28  username[-1] = '\\';
29 }
30 
31 #endif /* _IPXE_NETBIOS_H */
static void netbios_domain_undo(const char *domain, char *username)
Restore NetBIOS [domain]username.
Definition: netbios.h:24
const char * netbios_domain(char **username)
Split NetBIOS [domain]username into separate domain and username fields.
Definition: netbios.c:47
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
FILE_SECBOOT(PERMITTED)
static struct dynamic_item username
Definition: login_ui.c:36