diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-06-11 10:31:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:59 -0500 |
commit | c29896d0ae66f7ad19d32ded6d0333dbadcb51e2 (patch) | |
tree | 8400fb5f1c6f268d9b17c56e71e33c90ee4f5a91 /source4 | |
parent | a4b58b091bd3b5f4964940605318bc9d3215c5da (diff) | |
download | samba-c29896d0ae66f7ad19d32ded6d0333dbadcb51e2.tar.gz samba-c29896d0ae66f7ad19d32ded6d0333dbadcb51e2.tar.bz2 samba-c29896d0ae66f7ad19d32ded6d0333dbadcb51e2.zip |
r7490: Rename functions and prefices s/rpc_composite/libnet_rpc/
This makes more clear where the functions belong to. Also
the rule will be that lowercased function names are not
part of "official" libnet API (though it doesn't mean one
absolutely cannot use them).
rafal
(This used to be commit f6ef7b882acc6ee07422944a417a8d9013c9d8d2)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/include/structs.h | 8 | ||||
-rw-r--r-- | source4/libnet/composite.h | 8 | ||||
-rw-r--r-- | source4/libnet/domain.c | 22 | ||||
-rw-r--r-- | source4/libnet/libnet_user.c | 8 | ||||
-rw-r--r-- | source4/libnet/userinfo.c | 16 | ||||
-rw-r--r-- | source4/libnet/userman.c | 32 |
6 files changed, 47 insertions, 47 deletions
diff --git a/source4/include/structs.h b/source4/include/structs.h index 5ec7509e76..ddc572982d 100644 --- a/source4/include/structs.h +++ b/source4/include/structs.h @@ -175,10 +175,10 @@ struct smb_composite_sesssetup; struct smb_composite_fetchfile; struct smb_composite_appendacl; struct smb_composite_fsinfo; -struct rpc_composite_userinfo; -struct rpc_composite_useradd; -struct rpc_composite_userdel; -struct rpc_composite_domain_open; +struct libnet_rpc_userinfo; +struct libnet_rpc_useradd; +struct libnet_rpc_userdel; +struct libnet_rpc_domain_open; struct nbt_name; struct nbt_name_packet; diff --git a/source4/libnet/composite.h b/source4/libnet/composite.h index b983117adc..89ad1c4446 100644 --- a/source4/libnet/composite.h +++ b/source4/libnet/composite.h @@ -22,7 +22,7 @@ composite function io definitions */ -struct rpc_composite_userinfo { +struct libnet_rpc_userinfo { struct { struct policy_handle domain_handle; const char *sid; @@ -34,7 +34,7 @@ struct rpc_composite_userinfo { }; -struct rpc_composite_useradd { +struct libnet_rpc_useradd { struct { struct policy_handle domain_handle; const char *username; @@ -45,7 +45,7 @@ struct rpc_composite_useradd { }; -struct rpc_composite_userdel { +struct libnet_rpc_userdel { struct { struct policy_handle domain_handle; const char *username; @@ -56,7 +56,7 @@ struct rpc_composite_userdel { }; -struct rpc_composite_domain_open { +struct libnet_rpc_domain_open { struct { const char *domain_name; uint32_t access_mask; diff --git a/source4/libnet/domain.c b/source4/libnet/domain.c index 802a3f12c0..eec2a31e3d 100644 --- a/source4/libnet/domain.c +++ b/source4/libnet/domain.c @@ -19,7 +19,7 @@ */ /* - a composite function for getting user information via samr pipe + a composite function for domain handling */ #include "includes.h" @@ -142,9 +142,9 @@ static void domain_open_handler(struct rpc_request *req) } -struct composite_context *rpc_composite_domain_open_send(struct dcerpc_pipe *p, - struct rpc_composite_domain_open *io, - void (*monitor)(struct monitor_msg*)) +struct composite_context *libnet_rpc_domain_open_send(struct dcerpc_pipe *p, + struct libnet_rpc_domain_open *io, + void (*monitor)(struct monitor_msg*)) { struct composite_context *c; struct domain_open_state *s; @@ -185,8 +185,8 @@ failure: } -NTSTATUS rpc_composite_domain_open_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, - struct rpc_composite_domain_open *io) +NTSTATUS libnet_rpc_domain_open_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, + struct libnet_rpc_domain_open *io) { NTSTATUS status; struct domain_open_state *s; @@ -203,10 +203,10 @@ NTSTATUS rpc_composite_domain_open_recv(struct composite_context *c, TALLOC_CTX } -NTSTATUS rpc_composite_domain_open(struct dcerpc_pipe *p, - TALLOC_CTX *mem_ctx, - struct rpc_composite_domain_open *io) +NTSTATUS libnet_rpc_domain_open(struct dcerpc_pipe *p, + TALLOC_CTX *mem_ctx, + struct libnet_rpc_domain_open *io) { - struct composite_context *c = rpc_composite_domain_open_send(p, io, NULL); - return rpc_composite_domain_open_recv(c, mem_ctx, io); + struct composite_context *c = libnet_rpc_domain_open_send(p, io, NULL); + return libnet_rpc_domain_open_recv(c, mem_ctx, io); } diff --git a/source4/libnet/libnet_user.c b/source4/libnet/libnet_user.c index 23560ea7e6..6df3fd555d 100644 --- a/source4/libnet/libnet_user.c +++ b/source4/libnet/libnet_user.c @@ -31,8 +31,8 @@ NTSTATUS libnet_CreateUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru union libnet_rpc_connect cn; union libnet_find_pdc fp; struct dcerpc_pipe *pipe; - struct rpc_composite_domain_open dom_io; - struct rpc_composite_useradd user_io; + struct libnet_rpc_domain_open dom_io; + struct libnet_rpc_useradd user_io; /* find domain pdc */ fp.generic.level = LIBNET_FIND_PDC_GENERIC; @@ -62,7 +62,7 @@ NTSTATUS libnet_CreateUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru dom_io.in.domain_name = r->in.domain_name; dom_io.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; - status = rpc_composite_domain_open(ctx->samr, mem_ctx, &dom_io); + status = libnet_rpc_domain_open(ctx->samr, mem_ctx, &dom_io); if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, "Creating user account failed: %s\n", @@ -76,7 +76,7 @@ NTSTATUS libnet_CreateUser(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru user_io.in.username = r->in.user_name; user_io.in.domain_handle = dom_io.out.domain_handle; - status = rpc_composite_useradd(ctx->samr, mem_ctx, &user_io); + status = libnet_rpc_useradd(ctx->samr, mem_ctx, &user_io); if (!NT_STATUS_IS_OK(status)) { r->out.error_string = talloc_asprintf(mem_ctx, "Creating user account failed: %s\n", diff --git a/source4/libnet/userinfo.c b/source4/libnet/userinfo.c index 4241c899b0..cb28f9a115 100644 --- a/source4/libnet/userinfo.c +++ b/source4/libnet/userinfo.c @@ -173,8 +173,8 @@ static void userinfo_handler(struct rpc_request *req) * @param p dce/rpc call pipe * @param io arguments and results of the call */ -struct composite_context *rpc_composite_userinfo_send(struct dcerpc_pipe *p, - struct rpc_composite_userinfo *io, +struct composite_context *libnet_rpc_userinfo_send(struct dcerpc_pipe *p, + struct libnet_rpc_userinfo *io, void (*monitor)(struct monitor_msg*)) { struct composite_context *c; @@ -228,8 +228,8 @@ failure: * @return nt status code of execution */ -NTSTATUS rpc_composite_userinfo_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, - struct rpc_composite_userinfo *io) +NTSTATUS libnet_rpc_userinfo_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, + struct libnet_rpc_userinfo *io) { NTSTATUS status; struct userinfo_state *s; @@ -258,10 +258,10 @@ NTSTATUS rpc_composite_userinfo_recv(struct composite_context *c, TALLOC_CTX *me * @return nt status code of execution */ -NTSTATUS rpc_composite_userinfo(struct dcerpc_pipe *pipe, +NTSTATUS libnet_rpc_userinfo(struct dcerpc_pipe *pipe, TALLOC_CTX *mem_ctx, - struct rpc_composite_userinfo *io) + struct libnet_rpc_userinfo *io) { - struct composite_context *c = rpc_composite_userinfo_send(pipe, io, NULL); - return rpc_composite_userinfo_recv(c, mem_ctx, io); + struct composite_context *c = libnet_rpc_userinfo_send(pipe, io, NULL); + return libnet_rpc_userinfo_recv(c, mem_ctx, io); } diff --git a/source4/libnet/userman.c b/source4/libnet/userman.c index a6556e13ec..8d2cc0de02 100644 --- a/source4/libnet/userman.c +++ b/source4/libnet/userman.c @@ -104,8 +104,8 @@ static void useradd_handler(struct rpc_request *req) * @param io arguments and results of the call */ -struct composite_context *rpc_composite_useradd_send(struct dcerpc_pipe *p, - struct rpc_composite_useradd *io, +struct composite_context *libnet_rpc_useradd_send(struct dcerpc_pipe *p, + struct libnet_rpc_useradd *io, void (*monitor)(struct monitor_msg*)) { struct composite_context *c; @@ -157,8 +157,8 @@ failure: * @return nt status code of execution */ -NTSTATUS rpc_composite_useradd_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, - struct rpc_composite_useradd *io) +NTSTATUS libnet_rpc_useradd_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, + struct libnet_rpc_useradd *io) { NTSTATUS status; struct useradd_state *s; @@ -185,12 +185,12 @@ NTSTATUS rpc_composite_useradd_recv(struct composite_context *c, TALLOC_CTX *mem * @return nt status code of execution */ -NTSTATUS rpc_composite_useradd(struct dcerpc_pipe *pipe, +NTSTATUS libnet_rpc_useradd(struct dcerpc_pipe *pipe, TALLOC_CTX *mem_ctx, - struct rpc_composite_useradd *io) + struct libnet_rpc_useradd *io) { - struct composite_context *c = rpc_composite_useradd_send(pipe, io, NULL); - return rpc_composite_useradd_recv(c, mem_ctx, io); + struct composite_context *c = libnet_rpc_useradd_send(pipe, io, NULL); + return libnet_rpc_useradd_recv(c, mem_ctx, io); } @@ -327,8 +327,8 @@ static void userdel_handler(struct rpc_request *req) * @param io arguments and results of the call */ -struct composite_context *rpc_composite_userdel_send(struct dcerpc_pipe *p, - struct rpc_composite_userdel *io) +struct composite_context *libnet_rpc_userdel_send(struct dcerpc_pipe *p, + struct libnet_rpc_userdel *io) { struct composite_context *c; struct userdel_state *s; @@ -377,8 +377,8 @@ failure: * @return nt status code of execution */ -NTSTATUS rpc_composite_userdel_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, - struct rpc_composite_userdel *io) +NTSTATUS libnet_rpc_userdel_recv(struct composite_context *c, TALLOC_CTX *mem_ctx, + struct libnet_rpc_userdel *io) { NTSTATUS status; struct userdel_state *s; @@ -404,10 +404,10 @@ NTSTATUS rpc_composite_userdel_recv(struct composite_context *c, TALLOC_CTX *mem * @return nt status code of execution */ -NTSTATUS rpc_composite_userdel(struct dcerpc_pipe *pipe, +NTSTATUS libnet_rpc_userdel(struct dcerpc_pipe *pipe, TALLOC_CTX *mem_ctx, - struct rpc_composite_userdel *io) + struct libnet_rpc_userdel *io) { - struct composite_context *c = rpc_composite_userdel_send(pipe, io); - return rpc_composite_userdel_recv(c, mem_ctx, io); + struct composite_context *c = libnet_rpc_userdel_send(pipe, io); + return libnet_rpc_userdel_recv(c, mem_ctx, io); } |