summaryrefslogtreecommitdiff
path: root/source/browserd
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-01-30 21:48:17 +0000
committerLuke Leighton <lkcl@samba.org>2000-01-30 21:48:17 +0000
commitca1ea09aff877d843680c7a04e87028c93e7e224 (patch)
treecb0520bda70d267aab790f95e58158d546623646 /source/browserd
parent8f4a8dab3e31d7ce582ff1708e814045db3b65d6 (diff)
downloadsamba-ca1ea09aff877d843680c7a04e87028c93e7e224.tar.gz
patch from sean millichamp for brs_query_info conversion
Diffstat (limited to 'source/browserd')
-rw-r--r--source/browserd/browserd.c22
-rw-r--r--source/browserd/srv_browserd_nt.c53
2 files changed, 75 insertions, 0 deletions
diff --git a/source/browserd/browserd.c b/source/browserd/browserd.c
index a6ae53c7afe..0f5ccb987af 100644
--- a/source/browserd/browserd.c
+++ b/source/browserd/browserd.c
@@ -115,3 +115,25 @@ msrpc_service_fns *get_service_fns(void)
{
return &fn_table;
}
+
+/*******************************************************************
+ create_brs_info_100
+ ********************************************************************/
+static void create_brs_info_100(BRS_INFO_100 *inf)
+{
+ make_brs_info_100(inf);
+}
+
+/*******************************************************************
+ _brs_query_info
+
+ only supports info level 100 at the moment.
+
+ ********************************************************************/
+uint32 _brs_query_info( const UNISTR2 *srv_name, uint16 switch_value,
+ void *id)
+{
+ create_brs_info_100(id);
+
+ return 0x0;
+}
diff --git a/source/browserd/srv_browserd_nt.c b/source/browserd/srv_browserd_nt.c
new file mode 100644
index 00000000000..a4fc179f323
--- /dev/null
+++ b/source/browserd/srv_browserd_nt.c
@@ -0,0 +1,53 @@
+/*
+ Unix SMB/Netbios implementation.
+ Version 1.9.
+ Main SMB server routines
+ Copyright (C) Andrew Tridgell 1992-2000
+ Copyright (C) Luke Kenneth Casson Leighton 1996-2000
+ Copyright (C) Sean Millichamp 2000
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#include "includes.h"
+
+
+/*******************************************************************
+ create_brs_info_100
+ ********************************************************************/
+static void create_brs_info_100(BRS_INFO_100 *inf)
+{
+ make_brs_info_100(inf);
+}
+
+/*******************************************************************
+ _brs_query_info
+
+ only supports info level 100 at the moment.
+
+ ********************************************************************/
+uint32 _brs_query_info( const UNISTR2 *srv_name, uint16 switch_value,
+ void *id)
+{
+ switch (switch_value)
+ {
+ case 100:
+ {
+ create_brs_info_100(id);
+ return 0x0;
+ }
+ }
+ return NT_STATUS_INVALID_INFO_CLASS;
+}