LCOV - code coverage report
Current view: top level - providers - dp_sbus.c (source / functions) Hit Total Coverage
Test: .coverage.total Lines: 0 7 0.0 %
Date: 2015-10-19 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /*
       2             :    SSSD
       3             : 
       4             :    Data Provider Helpers
       5             : 
       6             :    Copyright (C) Stephen Gallagher <sgallagh@redhat.com>  2009
       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 "config.h"
      23             : #include <talloc.h>
      24             : #include <tevent.h>
      25             : 
      26             : #include "confdb/confdb.h"
      27             : #include "sbus/sssd_dbus.h"
      28             : #include "providers/data_provider.h"
      29             : 
      30           0 : int dp_get_sbus_address(TALLOC_CTX *mem_ctx,
      31             :                         char **address, const char *domain_name)
      32             : {
      33             :     char *default_address;
      34             : 
      35           0 :     *address = NULL;
      36           0 :     default_address = talloc_asprintf(mem_ctx, "unix:path=%s/%s_%s",
      37             :                                       PIPE_PATH, DATA_PROVIDER_PIPE,
      38             :                                       domain_name);
      39           0 :     if (default_address == NULL) {
      40           0 :         return ENOMEM;
      41             :     }
      42             : 
      43           0 :     *address = default_address;
      44           0 :     return EOK;
      45             : }
      46             : 

Generated by: LCOV version 1.10