LCOV - code coverage report
Current view: top level - source4/lib/events - tevent_s4.c (source / functions) Hit Total Coverage
Test: coverage report for master 2f515e9b Lines: 7 7 100.0 %
Date: 2024-04-21 15:09:00 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /* 
       2             :    Unix SMB/CIFS implementation.
       3             :    Copyright (C) Andrew Tridgell 2003
       4             :    
       5             :    This program is free software; you can redistribute it and/or modify
       6             :    it under the terms of the GNU General Public License as published by
       7             :    the Free Software Foundation; either version 3 of the License, or
       8             :    (at your option) any later version.
       9             :    
      10             :    This program is distributed in the hope that it will be useful,
      11             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      12             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      13             :    GNU General Public License for more details.
      14             :    
      15             :    You should have received a copy of the GNU General Public License
      16             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      17             : */
      18             : 
      19             : #include "includes.h"
      20             : #define TEVENT_DEPRECATED 1
      21             : #include "lib/events/events.h"
      22             : 
      23             : /*
      24             :   create a event_context structure. This must be the first events
      25             :   call, and all subsequent calls pass this event_context as the first
      26             :   element. Event handlers also receive this as their first argument.
      27             : 
      28             :   This samba4 specific call sets the samba4 debug handler.
      29             : */
      30      424487 : struct tevent_context *s4_event_context_init(TALLOC_CTX *mem_ctx)
      31             : {
      32        6217 :         struct tevent_context *ev;
      33             : 
      34      424487 :         ev = samba_tevent_context_init(mem_ctx);
      35      424487 :         if (ev) {
      36      424487 :                 samba_tevent_set_debug(ev, "s4_tevent");
      37      424487 :                 tevent_loop_allow_nesting(ev);
      38             :         }
      39      424487 :         return ev;
      40             : }
      41             : 

Generated by: LCOV version 1.14