2 Unix SMB/CIFS implementation.
4 s3 compatibility routines
6 Copyright (C) Andrew Tridgell 2010
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #include "source3/smbd/globals.h"
26 _PUBLIC_ const char *s3compat_samba_version_string(void)
28 const char *samba_version_string(void);
29 return samba_version_string();
33 void s3compat_initialise(const char *config_file, bool interactive)
36 /* use stdout logging for now */
37 setup_logging("s3compat", interactive);
40 set_remote_machine_name("smbd", false);
43 lp_load_initial_only(config_file);
44 smbd_messaging_context();
45 reload_services(false);
51 memcache_set_global(smbd_memcache());
53 connections_init(True);
55 messaging_tdb_parent_init();
56 notify_internal_parent_init();
57 serverid_parent_init();
59 print_backend_init(smbd_messaging_context());
63 DEBUG(0,("s3compat: initialised samba3 version: %s\n",
64 s3compat_samba_version_string()));
68 void s3compat_set_server_fd(int fd)
75 void s3compat_set_event_ctx(struct tevent_context *ctx)
77 extern struct tevent_context *smbd_event_ctx;
82 void s3compat_smbd_process(void)
84 void smbd_process(void);