r24538: merge from SAMBA_4_0:
authorStefan Metzmacher <metze@samba.org>
Sat, 18 Aug 2007 10:33:44 +0000 (10:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:55 +0000 (12:29 -0500)
rename struct dcerpc_interface_call -> struct ndr_interface_call
and move it to librpc/ndr/libndr.h

metze
(This used to be commit 24e096b3659c3070a1ce029174fba51ae59e89ad)

15 files changed:
source3/include/dcerpc.h
source3/librpc/gen_ndr/ndr_dfs.c
source3/librpc/gen_ndr/ndr_echo.c
source3/librpc/gen_ndr/ndr_epmapper.c
source3/librpc/gen_ndr/ndr_eventlog.c
source3/librpc/gen_ndr/ndr_initshutdown.c
source3/librpc/gen_ndr/ndr_lsa.c
source3/librpc/gen_ndr/ndr_netlogon.c
source3/librpc/gen_ndr/ndr_srvsvc.c
source3/librpc/gen_ndr/ndr_svcctl.c
source3/librpc/gen_ndr/ndr_unixinfo.c
source3/librpc/gen_ndr/ndr_winreg.c
source3/librpc/gen_ndr/ndr_wkssvc.c
source3/librpc/ndr/libndr.h
source3/librpc/tools/ndrdump.c

index a98971ddd46310c83ad87488b85e3576b2da0584..a050dd8020c34d7951f6f29e04e6654e4b18a851 100644 (file)
@@ -1,17 +1,5 @@
 /* unused.  Stub to make the pidl generated NDR parsers compile */
 
-/*
-  this is used to find pointers to calls
-*/
-struct dcerpc_interface_call {
-        const char *name;
-        size_t struct_size;
-        ndr_push_flags_fn_t ndr_push;
-        ndr_pull_flags_fn_t ndr_pull;
-        ndr_print_function_t ndr_print;
-        BOOL async;
-};
-
 struct dcerpc_endpoint_list {
         uint32_t count;
         const char * const *names;
@@ -27,7 +15,7 @@ struct dcerpc_interface_table {
         struct ndr_syntax_id syntax_id;
         const char *helpstring;
         uint32_t num_calls;
-        const struct dcerpc_interface_call *calls;
+        const struct ndr_interface_call *calls;
         const struct dcerpc_endpoint_list *endpoints;
         const struct dcerpc_authservice_list *authservices;
 };
index 137c189c46124269eaa39aa3fee328e9dc51ed31..1ec20d562cf3e54aa82ac4a2582ab9d19793205e 100644 (file)
@@ -5121,7 +5121,7 @@ _PUBLIC_ void ndr_print_dfs_SetInfo2(struct ndr_print *ndr, const char *name, in
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call netdfs_calls[] = {
+const struct ndr_interface_call netdfs_calls[] = {
        {
                "dfs_GetManagerVersion",
                sizeof(struct dfs_GetManagerVersion),
index 8c2695ab2097c9b79c14d1c1e038025ce410b292..a3a4e0818aaf0dcb2eb7a6d5f052a18a310ce5a6 100644 (file)
@@ -1340,7 +1340,7 @@ _PUBLIC_ void ndr_print_echo_TestDoublePointer(struct ndr_print *ndr, const char
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call rpcecho_calls[] = {
+const struct ndr_interface_call rpcecho_calls[] = {
        {
                "echo_AddOne",
                sizeof(struct echo_AddOne),
index 1ef21a414c0abec42ebf5c12928644fcfe178b78..6e26533b55edb509d684533df9ab26828243c562 100644 (file)
@@ -2582,7 +2582,7 @@ _PUBLIC_ void ndr_print_epm_MapAuth(struct ndr_print *ndr, const char *name, int
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call epmapper_calls[] = {
+const struct ndr_interface_call epmapper_calls[] = {
        {
                "epm_Insert",
                sizeof(struct epm_Insert),
index dc29a2ae651bf5f2151d629b29a2377bd84f6ccb..9f7294819cb736e17edd41003fe09106148dd0a0 100644 (file)
@@ -1414,7 +1414,7 @@ _PUBLIC_ void ndr_print_eventlog_FlushEventLog(struct ndr_print *ndr, const char
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call eventlog_calls[] = {
+const struct ndr_interface_call eventlog_calls[] = {
        {
                "eventlog_ClearEventLogW",
                sizeof(struct eventlog_ClearEventLogW),
index aa35a8dd050c1eb03558f3928f5802d3f004f937..76e7878ae46fc1e778399ff9fe7ba9938fee9569 100644 (file)
@@ -367,7 +367,7 @@ _PUBLIC_ void ndr_print_initshutdown_InitEx(struct ndr_print *ndr, const char *n
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call initshutdown_calls[] = {
+const struct ndr_interface_call initshutdown_calls[] = {
        {
                "initshutdown_Init",
                sizeof(struct initshutdown_Init),
index 205d37454991db566427892c55ecc7a9a5efd1b8..d6863c3fb95bb6a32b6ed4a3ab5f769338606cd9 100644 (file)
@@ -10376,7 +10376,7 @@ _PUBLIC_ void ndr_print_lsa_LSARADTREPORTSECURITYEVENT(struct ndr_print *ndr, co
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call lsarpc_calls[] = {
+const struct ndr_interface_call lsarpc_calls[] = {
        {
                "lsa_Close",
                sizeof(struct lsa_Close),
index 0e0fa196e81ad901eff1551a5946627bf383e814..0566df8946672f08b9f76e99e1b2f87c8ed27b4a 100644 (file)
@@ -12713,7 +12713,7 @@ _PUBLIC_ void ndr_print_netr_NETRSERVERGETTRUSTINFO(struct ndr_print *ndr, const
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call netlogon_calls[] = {
+const struct ndr_interface_call netlogon_calls[] = {
        {
                "netr_LogonUasLogon",
                sizeof(struct netr_LogonUasLogon),
index 4377b7acfbd2d5da15dfebf569186ee31f08b01d..76c542c67598916d61c7715d0364855acc770dc0 100644 (file)
@@ -19097,7 +19097,7 @@ _PUBLIC_ void ndr_print_srvsvc_NETRSERVERTRANSPORTDELEX(struct ndr_print *ndr, c
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call srvsvc_calls[] = {
+const struct ndr_interface_call srvsvc_calls[] = {
        {
                "srvsvc_NetCharDevEnum",
                sizeof(struct srvsvc_NetCharDevEnum),
index 789503346e544fd926298ec8b84ab0cca052aa29..ed3b96ae274548dc7c40eb639fd403305d68e627 100644 (file)
@@ -5291,7 +5291,7 @@ _PUBLIC_ void ndr_print_svcctl_SCSendTSMessage(struct ndr_print *ndr, const char
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call svcctl_calls[] = {
+const struct ndr_interface_call svcctl_calls[] = {
        {
                "svcctl_CloseServiceHandle",
                sizeof(struct svcctl_CloseServiceHandle),
index b85cc0319a98879d8ee84fcbad92372471c53d21..cec9c18945953cc611eabfd660d5f319a562eb9d 100644 (file)
@@ -446,7 +446,7 @@ _PUBLIC_ void ndr_print_unixinfo_GetPWUid(struct ndr_print *ndr, const char *nam
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call unixinfo_calls[] = {
+const struct ndr_interface_call unixinfo_calls[] = {
        {
                "unixinfo_SidToUid",
                sizeof(struct unixinfo_SidToUid),
index 2168167de9c3b0fae82cf00821ac07041025684d..d973060c1bc707e38fcb0fdeb82aec800d54b89e 100644 (file)
@@ -4099,7 +4099,7 @@ _PUBLIC_ void ndr_print_winreg_QueryMultipleValues2(struct ndr_print *ndr, const
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call winreg_calls[] = {
+const struct ndr_interface_call winreg_calls[] = {
        {
                "winreg_OpenHKCR",
                sizeof(struct winreg_OpenHKCR),
index 88bc59b2936d71de927ff0774609e96fd6bd633a..a663cb6a2b9233431600f3dd3f235398d7cddab7 100644 (file)
@@ -4501,7 +4501,7 @@ _PUBLIC_ void ndr_print_WKSSVC_NETRENUMERATECOMPUTERNAMES(struct ndr_print *ndr,
        ndr->depth--;
 }
 
-const struct dcerpc_interface_call wkssvc_calls[] = {
+const struct ndr_interface_call wkssvc_calls[] = {
        {
                "wkssvc_NetWkstaGetInfo",
                sizeof(struct wkssvc_NetWkstaGetInfo),
index fa9c1b02b6f77a9f7a7834151b64fbd8f021b636..2d7c89dfad34bf44fe033277df4f98168c9818da 100644 (file)
@@ -287,6 +287,15 @@ typedef void (*ndr_print_function_t)(struct ndr_print *, const char *, int, cons
 extern const struct ndr_syntax_id ndr_transfer_syntax;
 extern const struct ndr_syntax_id ndr64_transfer_syntax;
 
+struct ndr_interface_call {
+        const char *name;
+        size_t struct_size;
+        ndr_push_flags_fn_t ndr_push;
+        ndr_pull_flags_fn_t ndr_pull;
+        ndr_print_function_t ndr_print;
+        BOOL async;
+};
+
 #include "dcerpc.h"
 
 #endif /* __LIBNDR_H__ */
index ab7853fd41494ca1e25efc72d16e15ef14e1871a..cbc97cab9835e067e5e87261a37dd33812f49c09 100644 (file)
@@ -27,7 +27,7 @@
 #include "librpc/rpc/dcerpc_table.h"
 #endif
 
-static const struct dcerpc_interface_call *find_function(
+static const struct ndr_interface_call *find_function(
        const struct dcerpc_interface_table *p,
        const char *function)
 {
@@ -133,7 +133,7 @@ static const struct dcerpc_interface_table *load_iface_from_plugin(const char *p
  int main(int argc, const char *argv[])
 {
        const struct dcerpc_interface_table *p = NULL;
-       const struct dcerpc_interface_call *f;
+       const struct ndr_interface_call *f;
        const char *pipe_name, *function, *inout, *filename;
        uint8_t *data;
        size_t size;