mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
libndr: move ndr_print_bool to ndr_basic.c
Guenther
This commit is contained in:
parent
62e1c80cf5
commit
7eac3100ea
@ -571,4 +571,6 @@ _PUBLIC_ enum ndr_err_code ndr_push_enum_uint16(struct ndr_push *ndr, int ndr_fl
|
||||
_PUBLIC_ enum ndr_err_code ndr_push_enum_uint32(struct ndr_push *ndr, int ndr_flags, uint32_t v);
|
||||
_PUBLIC_ enum ndr_err_code ndr_push_enum_uint1632(struct ndr_push *ndr, int ndr_flags, uint16_t v);
|
||||
|
||||
_PUBLIC_ void ndr_print_bool(struct ndr_print *ndr, const char *name, const bool b);
|
||||
|
||||
#endif /* __LIBNDR_H__ */
|
||||
|
@ -1208,3 +1208,8 @@ _PUBLIC_ uint32_t ndr_size_DATA_BLOB(int ret, const DATA_BLOB *data, int flags)
|
||||
if (!data) return ret;
|
||||
return ret + data->length;
|
||||
}
|
||||
|
||||
_PUBLIC_ void ndr_print_bool(struct ndr_print *ndr, const char *name, const bool b)
|
||||
{
|
||||
ndr->print(ndr, "%-25s: %s", name, b?"true":"false");
|
||||
}
|
||||
|
@ -1587,7 +1587,6 @@ void ndr_print_server_id(struct ndr_print *ndr, const char *name, const struct s
|
||||
enum ndr_err_code ndr_push_file_id(struct ndr_push *ndr, int ndr_flags, const struct file_id *r);
|
||||
enum ndr_err_code ndr_pull_file_id(struct ndr_pull *ndr, int ndr_flags, struct file_id *r);
|
||||
void ndr_print_file_id(struct ndr_print *ndr, const char *name, const struct file_id *r);
|
||||
_PUBLIC_ void ndr_print_bool(struct ndr_print *ndr, const char *name, const bool b);
|
||||
_PUBLIC_ void ndr_print_sockaddr_storage(struct ndr_print *ndr, const char *name, const struct sockaddr_storage *ss);
|
||||
const char *ndr_errstr(enum ndr_err_code err);
|
||||
extern const struct ndr_syntax_id null_ndr_syntax_id;
|
||||
|
@ -200,11 +200,6 @@ void ndr_print_file_id(struct ndr_print *ndr, const char *name, const struct fil
|
||||
ndr->depth--;
|
||||
}
|
||||
|
||||
_PUBLIC_ void ndr_print_bool(struct ndr_print *ndr, const char *name, const bool b)
|
||||
{
|
||||
ndr->print(ndr, "%-25s: %s", name, b?"true":"false");
|
||||
}
|
||||
|
||||
_PUBLIC_ void ndr_print_sockaddr_storage(struct ndr_print *ndr, const char *name, const struct sockaddr_storage *ss)
|
||||
{
|
||||
char addr[INET6_ADDRSTRLEN];
|
||||
|
Loading…
x
Reference in New Issue
Block a user