r18233: Use the autogenerated cli_unixinfo rather than the old one.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 7 Sep 2006 20:42:42 +0000 (20:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:51:17 +0000 (11:51 -0500)
source/Makefile.in
source/librpc/gen_ndr/cli_unixinfo.c [moved from source/rpc_client/cli_unixinfo.c with 98% similarity]
source/librpc/gen_ndr/cli_unixinfo.h [moved from source/rpc_client/cli_unixinfo.h with 95% similarity]
source/librpc/gen_ndr/ndr_unixinfo.c
source/rpcclient/cmd_unixinfo.c

index 3eb229214bf001b032a668edeacfde0f0b8edf71..231583469f9da84619767ee214db73f4b526905f 100644 (file)
@@ -296,7 +296,7 @@ LIBMSRPC_OBJ = rpc_client/cli_lsarpc.o rpc_client/cli_samr.o \
               rpc_client/cli_shutdown.o rpc_client/cli_svcctl.o \
               rpc_client/ndr.o
 
-LIBMSRPC_GEN_OBJ = rpc_client/cli_unixinfo.o $(LIBNDR_GEN_OBJ) $(LIBNDR_OBJ)
+LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_unixinfo.o $(LIBNDR_GEN_OBJ) $(LIBNDR_OBJ)
 
 REGOBJS_OBJ = registry/reg_objects.o
 
similarity index 98%
rename from source/rpc_client/cli_unixinfo.c
rename to source/librpc/gen_ndr/cli_unixinfo.c
index f2629bfde2e42988a970943d7caf9b31d1af9666..f84ad9175b50b311f6db92cf37af10fd0413d542 100644 (file)
@@ -4,7 +4,7 @@
  */
 
 #include "includes.h"
-#include "./cli_unixinfo.h"
+#include "librpc/gen_ndr/cli_unixinfo.h"
 
 NTSTATUS rpccli_unixinfo_SidToUid(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct dom_sid sid, uint64_t *uid)
 {
similarity index 95%
rename from source/rpc_client/cli_unixinfo.h
rename to source/librpc/gen_ndr/cli_unixinfo.h
index e854c9db9d0c027c4c85f40b1fb13f4e75e9f266..f0f2b54626b78b3fae7c64c8963779a0ebbeb75e 100644 (file)
@@ -1,4 +1,3 @@
-#include "librpc/gen_ndr/unixinfo.h"
 #include "librpc/gen_ndr/ndr_unixinfo.h"
 #ifndef __CLI_UNIXINFO__
 #define __CLI_UNIXINFO__
index e0ecdfe95e0680310597d6d1ce1cb3d70d667ca6..8b87c67b96859f9a3e19cba2cb174ae49ca4d381 100644 (file)
@@ -513,81 +513,3 @@ void ndr_print_unixinfo_GetPWUid(struct ndr_print *ndr, const char *name, int fl
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call unixinfo_calls[] = {
-       {
-               "unixinfo_SidToUid",
-               sizeof(struct unixinfo_SidToUid),
-               (ndr_push_flags_fn_t) ndr_push_unixinfo_SidToUid,
-               (ndr_pull_flags_fn_t) ndr_pull_unixinfo_SidToUid,
-               (ndr_print_function_t) ndr_print_unixinfo_SidToUid,
-               False,
-       },
-       {
-               "unixinfo_UidToSid",
-               sizeof(struct unixinfo_UidToSid),
-               (ndr_push_flags_fn_t) ndr_push_unixinfo_UidToSid,
-               (ndr_pull_flags_fn_t) ndr_pull_unixinfo_UidToSid,
-               (ndr_print_function_t) ndr_print_unixinfo_UidToSid,
-               False,
-       },
-       {
-               "unixinfo_SidToGid",
-               sizeof(struct unixinfo_SidToGid),
-               (ndr_push_flags_fn_t) ndr_push_unixinfo_SidToGid,
-               (ndr_pull_flags_fn_t) ndr_pull_unixinfo_SidToGid,
-               (ndr_print_function_t) ndr_print_unixinfo_SidToGid,
-               False,
-       },
-       {
-               "unixinfo_GidToSid",
-               sizeof(struct unixinfo_GidToSid),
-               (ndr_push_flags_fn_t) ndr_push_unixinfo_GidToSid,
-               (ndr_pull_flags_fn_t) ndr_pull_unixinfo_GidToSid,
-               (ndr_print_function_t) ndr_print_unixinfo_GidToSid,
-               False,
-       },
-       {
-               "unixinfo_GetPWUid",
-               sizeof(struct unixinfo_GetPWUid),
-               (ndr_push_flags_fn_t) ndr_push_unixinfo_GetPWUid,
-               (ndr_pull_flags_fn_t) ndr_pull_unixinfo_GetPWUid,
-               (ndr_print_function_t) ndr_print_unixinfo_GetPWUid,
-               False,
-       },
-       { NULL, 0, NULL, NULL, NULL, False }
-};
-
-const char * const unixinfo_endpoint_strings[] = {
-       "ncacn_np:[\\pipe\\unixinfo]", 
-       "ncacn_ip_tcp:", 
-       "ncalrpc:", 
-};
-
-const struct dcerpc_endpoint_list unixinfo_endpoints = {
-       .count  = 3,
-       .names  = unixinfo_endpoint_strings
-};
-
-const char * const unixinfo_authservice_strings[] = {
-       "host", 
-};
-
-const struct dcerpc_authservice_list unixinfo_authservices = {
-       .count  = 3,
-       .names  = unixinfo_authservice_strings
-};
-
-
-const struct dcerpc_interface_table dcerpc_table_unixinfo = {
-       .name           = "unixinfo",
-       .syntax_id      = {
-               {0x9c54e310,0xa955,0x4885,{0xbd,0x31},{0x78,0x78,0x71,0x47,0xdf,0xa6}},
-               DCERPC_UNIXINFO_VERSION
-       },
-       .helpstring     = DCERPC_UNIXINFO_HELPSTRING,
-       .num_calls      = 5,
-       .calls          = unixinfo_calls,
-       .endpoints      = &unixinfo_endpoints,
-       .authservices   = &unixinfo_authservices
-};
-
index 762a795bbc6652dc5cc7e09f500789741a36c681..4c95acc2d15af9dec167bf603a25c557326688f8 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "includes.h"
 #include "rpcclient.h"
-#include "rpc_client/cli_unixinfo.h"
+#include "librpc/gen_ndr/cli_unixinfo.h"
 
 static NTSTATUS cmd_unixinfo_uid2sid(struct rpc_pipe_client *cli,
                                     TALLOC_CTX *mem_ctx,