LCOV - code coverage report
Current view: top level - source4/rpc_server/common - loadparm.c (source / functions) Hit Total Coverage
Test: coverage report for master 2b515b7d Lines: 7 7 100.0 %
Date: 2024-02-28 12:06:22 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /*
       2             :    Unix SMB/CIFS implementation.
       3             :    DCERPC server info param function
       4             :    Moved into rpc_server/common to break dependencies to rpc_server from param
       5             :    Copyright (C) Karl Auer 1993-1998
       6             : 
       7             :    Largely re-written by Andrew Tridgell, September 1994
       8             : 
       9             :    Copyright (C) Simo Sorce 2001
      10             :    Copyright (C) Alexander Bokovoy 2002
      11             :    Copyright (C) Stefan (metze) Metzmacher 2002
      12             :    Copyright (C) Jim McDonough (jmcd@us.ibm.com)  2003.
      13             :    Copyright (C) James Myers 2003 <myersjj@samba.org>
      14             :    Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
      15             : 
      16             :    This program is free software; you can redistribute it and/or modify
      17             :    it under the terms of the GNU General Public License as published by
      18             :    the Free Software Foundation; either version 3 of the License, or
      19             :    (at your option) any later version.
      20             : 
      21             :    This program is distributed in the hope that it will be useful,
      22             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      23             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      24             :    GNU General Public License for more details.
      25             : 
      26             :    You should have received a copy of the GNU General Public License
      27             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      28             : */
      29             : 
      30             : #include "includes.h"
      31             : #include "lib/param/param.h"
      32             : #include "rpc_server/common/common.h"
      33             : 
      34        1558 : _PUBLIC_ struct dcerpc_server_info *lpcfg_dcerpc_server_info(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx)
      35             : {
      36        1558 :         struct dcerpc_server_info *ret = talloc_zero(mem_ctx, struct dcerpc_server_info);
      37             : 
      38        1558 :         ret->domain_name = talloc_reference(mem_ctx, lpcfg_workgroup(lp_ctx));
      39        1558 :         ret->version_major = lpcfg_parm_int(lp_ctx, NULL, "server_info", "version_major", 5);
      40        1558 :         ret->version_minor = lpcfg_parm_int(lp_ctx, NULL, "server_info", "version_minor", 2);
      41        1558 :         ret->version_build = lpcfg_parm_int(lp_ctx, NULL, "server_info", "version_build", 3790);
      42             : 
      43        1558 :         return ret;
      44             : }
      45             : 

Generated by: LCOV version 1.14