diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-10-08 12:25:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:31:15 -0500 |
commit | 3c3b9afe7f229a69d051db8a08ece6ec9349e0a0 (patch) | |
tree | f766b0c27a3897ce0d7c0109d3ec63ba59d9c049 /source3/winbindd/winbindd_locator.c | |
parent | 971cc997debc82a86a653757d0fb16c8d748345f (diff) | |
download | samba-3c3b9afe7f229a69d051db8a08ece6ec9349e0a0.tar.gz samba-3c3b9afe7f229a69d051db8a08ece6ec9349e0a0.tar.bz2 samba-3c3b9afe7f229a69d051db8a08ece6ec9349e0a0.zip |
r25571: split up child_dispatch_table into domain, idmap and locator tables
metze
(This used to be commit abbb36a37c1dba2218a6c7ec31739eba5f250127)
Diffstat (limited to 'source3/winbindd/winbindd_locator.c')
-rw-r--r-- | source3/winbindd/winbindd_locator.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_locator.c b/source3/winbindd/winbindd_locator.c index 52b6dc06f1..ade2c1539b 100644 --- a/source3/winbindd/winbindd_locator.c +++ b/source3/winbindd/winbindd_locator.c @@ -26,11 +26,17 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_WINBIND + +static const struct winbindd_child_dispatch_table locator_dispatch_table[]; + static struct winbindd_child static_locator_child; void init_locator_child(void) { - setup_domain_child(NULL, &static_locator_child, "locator"); + setup_domain_child(NULL, + &static_locator_child, + locator_dispatch_table, + "locator"); } struct winbindd_child *locator_child(void) @@ -49,8 +55,8 @@ void winbindd_dsgetdcname(struct winbindd_cli_state *state) sendto_child(state, locator_child()); } -enum winbindd_result winbindd_dual_dsgetdcname(struct winbindd_domain *domain, - struct winbindd_cli_state *state) +static enum winbindd_result dual_dsgetdcname(struct winbindd_domain *domain, + struct winbindd_cli_state *state) { NTSTATUS result; struct DS_DOMAIN_CONTROLLER_INFO *info = NULL; @@ -88,3 +94,9 @@ enum winbindd_result winbindd_dual_dsgetdcname(struct winbindd_domain *domain, return WINBINDD_OK; } + +static const struct winbindd_child_dispatch_table locator_dispatch_table[] = { + { WINBINDD_DSGETDCNAME, dual_dsgetdcname, "DSGETDCNAME" }, + + { WINBINDD_NUM_CMDS, NULL, "NONE" } +}; |