LCOV - code coverage report
Current view: top level - shared - spawn-polkit-agent.h (source / functions) Hit Total Coverage
Test: main_coverage.info Lines: 0 6 0.0 %
Date: 2019-08-22 15:41:25 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /* SPDX-License-Identifier: LGPL-2.1+ */
       2             : #pragma once
       3             : 
       4             : #include "bus-util.h"
       5             : 
       6             : int polkit_agent_open(void);
       7             : void polkit_agent_close(void);
       8             : 
       9           0 : static inline int polkit_agent_open_if_enabled(
      10             :                 BusTransport transport,
      11             :                 bool ask_password) {
      12             : 
      13             :         /* Open the polkit agent as a child process if necessary */
      14             : 
      15           0 :         if (transport != BUS_TRANSPORT_LOCAL)
      16           0 :                 return 0;
      17             : 
      18           0 :         if (!ask_password)
      19           0 :                 return 0;
      20             : 
      21           0 :         return polkit_agent_open();
      22             : }

Generated by: LCOV version 1.14