LCOV - code coverage report
Current view: top level - providers - data_provider_req.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 14 0.0 %
Date: 2016-06-29 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /*
       2             :     SSSD
       3             : 
       4             :     Data Provider -- backend request
       5             : 
       6             :     Copyright (C) Petr Cech <pcech@redhat.com> 2015
       7             : 
       8             :     This program is free software; you can redistribute it and/or modify
       9             :     it under the terms of the GNU General Public License as published by
      10             :     the Free Software Foundation; either version 3 of the License, or
      11             :     (at your option) any later version.
      12             : 
      13             :     This program is distributed in the hope that it will be useful,
      14             :     but WITHOUT ANY WARRANTY; without even the implied warranty of
      15             :     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16             :     GNU General Public License for more details.
      17             : 
      18             :     You should have received a copy of the GNU General Public License
      19             :     along with this program.  If not, see <http://www.gnu.org/licenses/>.
      20             : */
      21             : 
      22             : #include "providers/data_provider_req.h"
      23             : 
      24             : #define be_req_to_str(be_req_t) #be_req_t
      25             : 
      26           0 : const char *be_req2str(dbus_uint32_t req_type)
      27             : {
      28           0 :     switch (req_type & BE_REQ_TYPE_MASK) {
      29             :     case BE_REQ_USER:
      30           0 :         return be_req_to_str(BE_REQ_USER);
      31             :     case BE_REQ_GROUP:
      32           0 :         return be_req_to_str(BE_REQ_GROUP);
      33             :     case BE_REQ_INITGROUPS:
      34           0 :         return be_req_to_str(BE_REQ_INITGROUPS);
      35             :     case BE_REQ_NETGROUP:
      36           0 :         return be_req_to_str(BE_REQ_NETGROUP);
      37             :     case BE_REQ_SERVICES:
      38           0 :         return be_req_to_str(BE_REQ_SERVICES);
      39             :     case BE_REQ_SUDO_FULL:
      40           0 :         return be_req_to_str(BE_REQ_SUDO_FULL);
      41             :     case BE_REQ_SUDO_RULES:
      42           0 :         return be_req_to_str(BE_REQ_SUDO_RULES);
      43             :     case BE_REQ_BY_SECID:
      44           0 :         return be_req_to_str(BE_REQ_BY_SECID);
      45             :     case BE_REQ_USER_AND_GROUP:
      46           0 :         return be_req_to_str(BE_REQ_USER_AND_GROUP);
      47             :     case BE_REQ_BY_UUID:
      48           0 :         return be_req_to_str(BE_REQ_BY_UUID);
      49             :     case BE_REQ_BY_CERT:
      50           0 :         return be_req_to_str(BE_REQ_BY_CERT);
      51             :     }
      52           0 :     return "UNKNOWN_REQ";
      53             : }

Generated by: LCOV version 1.10