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
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13extern 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 */
24static 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 */
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
static struct dynamic_item username
Definition login_ui.c:36
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