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

          Line data    Source code
       1             : /*
       2             :     Authors:
       3             :         Pavel Březina <pbrezina@redhat.com>
       4             : 
       5             :     Copyright (C) 2016 Red Hat
       6             : 
       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.
      11             : 
      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.
      16             : 
      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/>.
      19             : */
      20             : 
      21             : #include <dbus/dbus.h>
      22             : 
      23             : #include "sbus/sssd_dbus.h"
      24             : #include "providers/data_provider/dp_iface_generated.h"
      25             : #include "providers/data_provider/dp_iface.h"
      26             : #include "providers/data_provider/dp_private.h"
      27             : #include "providers/data_provider/dp.h"
      28             : 
      29             : struct iface_dp iface_dp = {
      30             :     {&iface_dp_meta, 0},
      31             :     .pamHandler = dp_pam_handler,
      32             :     .sudoHandler = dp_sudo_handler,
      33             :     .autofsHandler = dp_autofs_handler,
      34             :     .hostHandler = dp_host_handler,
      35             :     .getDomains = dp_subdomains_handler,
      36             :     .getAccountInfo = dp_get_account_info_handler
      37             : };
      38             : 
      39             : struct iface_dp_backend iface_dp_backend = {
      40             :     {&iface_dp_backend_meta, 0},
      41             :     .IsOnline = dp_backend_is_online
      42             : };
      43             : 
      44             : struct iface_dp_failover iface_dp_failover = {
      45             :     {&iface_dp_failover_meta, 0},
      46             :     .ListServices = dp_failover_list_services
      47             : };
      48             : 
      49             : static struct sbus_iface_map dp_map[] = {
      50             :     { DP_PATH, &iface_dp.vtable },
      51             :     { DP_PATH, &iface_dp_backend.vtable },
      52             :     { DP_PATH, &iface_dp_failover.vtable },
      53             :     { NULL, NULL }
      54             : };
      55             : 
      56             : errno_t
      57           0 : dp_register_sbus_interface(struct sbus_connection *conn,
      58             :                            struct dp_client *pvt)
      59             : {
      60           0 :     return sbus_conn_register_iface_map(conn, dp_map, pvt);
      61             : }

Generated by: LCOV version 1.10