s4-smbtorture: add ndr test for nbt_netlogon_packet to avoid future regressions.
[Samba/gebeck_regimport.git] / lib / util / internal_module.h
blob9cbddeae032cbbb607da6e02e6c26045f85820d1
1 /*
2 Unix SMB/CIFS implementation.
3 Handling of idle/exit events
4 Copyright (C) Stefan (metze) Metzmacher 2003
5 Copyright (C) Andrew Bartlett 2011
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _INTERNAL_MODULES_H
22 #define _INTERNAL_MODULES_H
24 #include "lib/util/samba_module.h"
26 /**
27 * Obtain the init function from a shared library file.
29 * The handle to dlclose() in case of error is returns in *handle if handle is not NULL
31 samba_module_init_fn load_module(const char *path, bool is_probe, void **handle);
33 int smb_load_modules(const char **modules);
34 NTSTATUS smb_probe_module(const char *subsystem, const char *module);
36 /**
37 * Obtain list of init functions from the modules in the specified
38 * directory
40 samba_module_init_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path);
42 #endif /* _INTERNAL_MODULES_H */