summaryrefslogtreecommitdiffstats
path: root/source/gtk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-12-27 14:28:01 +0000
committerJelmer Vernooij <jelmer@samba.org>2005-12-27 14:28:01 +0000
commit56e0f15cbd56a3cbb0505fbeadfcb9620ff0fc3d (patch)
tree399b1cc50755aa184917a6ae41f06b9b1c4911ae /source/gtk
parentd4ed2f2a2590872f2a88c2ab697ecea554d3b315 (diff)
downloadsamba-56e0f15cbd56a3cbb0505fbeadfcb9620ff0fc3d.tar.gz
samba-56e0f15cbd56a3cbb0505fbeadfcb9620ff0fc3d.tar.xz
samba-56e0f15cbd56a3cbb0505fbeadfcb9620ff0fc3d.zip
r12510: Change the DCE/RPC interfaces to take a pointer to a
dcerpc_interface_table struct rather then a tuple of interface name, UUID and version. This removes the requirement for having a global list of DCE/RPC interfaces, except for these parts of the code that use that list explicitly (ndrdump and the scanner torture test). This should also allow us to remove the hack that put the authservice parameter in the dcerpc_binding struct as it can now be read directly from dcerpc_interface_table. I will now modify some of these functions to take a dcerpc_syntax_id structure rather then a full dcerpc_interface_table.
Diffstat (limited to 'source/gtk')
-rw-r--r--source/gtk/tools/gepdump.c4
-rw-r--r--source/gtk/tools/gwcrontab.c3
-rw-r--r--source/gtk/tools/gwsam.c2
3 files changed, 4 insertions, 5 deletions
diff --git a/source/gtk/tools/gepdump.c b/source/gtk/tools/gepdump.c
index 41d523b7cee..622d4b99aa1 100644
--- a/source/gtk/tools/gepdump.c
+++ b/source/gtk/tools/gepdump.c
@@ -196,7 +196,7 @@ static void on_connect_clicked(GtkButton *btn, gpointer user_data)
cli_credentials_set_gtk_callbacks(credentials);
status = dcerpc_pipe_connect(talloc_autofree_context(), &epmapper_pipe, bs,
- DCERPC_EPMAPPER_UUID, DCERPC_EPMAPPER_VERSION,
+ &dcerpc_table_epmapper,
credentials, NULL);
if (NT_STATUS_IS_ERR(status)) {
@@ -208,7 +208,7 @@ static void on_connect_clicked(GtkButton *btn, gpointer user_data)
refresh_eps();
- status = dcerpc_secondary_context(epmapper_pipe, &mgmt_pipe, DCERPC_MGMT_UUID, DCERPC_MGMT_VERSION);
+ status = dcerpc_secondary_context(epmapper_pipe, &mgmt_pipe, &dcerpc_table_mgmt);
if (NT_STATUS_IS_ERR(status)) {
mgmt_pipe = NULL;
diff --git a/source/gtk/tools/gwcrontab.c b/source/gtk/tools/gwcrontab.c
index 647fdd2c165..fd4f41d06fa 100644
--- a/source/gtk/tools/gwcrontab.c
+++ b/source/gtk/tools/gwcrontab.c
@@ -107,8 +107,7 @@ static void on_connect_activate(GtkMenuItem *menuitem, gpointer user_data)
status = dcerpc_pipe_connect_b(mem_ctx, &at_pipe,
gtk_rpc_binding_dialog_get_binding(d, mem_ctx),
- DCERPC_ATSVC_UUID,
- DCERPC_ATSVC_VERSION,
+ &dcerpc_table_atsvc,
credentials, NULL);
if(!NT_STATUS_IS_OK(status)) {
diff --git a/source/gtk/tools/gwsam.c b/source/gtk/tools/gwsam.c
index 644cc5c0439..f1cf8d5e857 100644
--- a/source/gtk/tools/gwsam.c
+++ b/source/gtk/tools/gwsam.c
@@ -131,7 +131,7 @@ static void connect_sam(void)
/* If connected, get list of jobs */
status = dcerpc_pipe_connect_b(mem_ctx, &sam_pipe,
gtk_rpc_binding_dialog_get_binding(d, mem_ctx),
- DCERPC_SAMR_UUID, DCERPC_SAMR_VERSION, cred, NULL);
+ &dcerpc_table_samr, cred, NULL);
if(!NT_STATUS_IS_OK(status)) {
gtk_show_ntstatus(mainwin, "While connecting to SAMR interface", status);