mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
8c3b62e623
Command line tools need acccess to the same messaging context provided by server_messaging_context, as common code for db_open uses that context. We want to have additional checking for command line tools without having that code part of the servers. Introduce a wrapper library to use for command line tools with the additional checks, that then acquires the server_messaging_context. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13465 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
28 lines
960 B
C
28 lines
960 B
C
/*
|
|
Unix SMB/CIFS implementation.
|
|
cmdline context wrapper.
|
|
|
|
Copyright (C) Christof Schmitt <cs@samba.org> 2018
|
|
|
|
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 3 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, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _LIB_CMDLINE_CONTEXTS_H
|
|
#define _LIB_CMDLINE_CONTEXTS_H
|
|
|
|
struct messaging_context *cmdline_messaging_context(const char *config_file);
|
|
void cmdline_messaging_context_free(void);
|
|
|
|
#endif
|