LCOV - code coverage report
Current view: top level - providers - dp_sbus.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 6 0.0 %
Date: 2012-11-29 Functions: 0 1 0.0 %
Branches: 0 2 0.0 %

           Branch data     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                 :            : #include "confdb/confdb.h"
      26                 :            : #include "sbus/sssd_dbus.h"
      27                 :            : #include "providers/data_provider.h"
      28                 :            : 
      29                 :          0 : int dp_get_sbus_address(TALLOC_CTX *mem_ctx,
      30                 :            :                         char **address, const char *domain_name)
      31                 :            : {
      32                 :            :     char *default_address;
      33                 :            : 
      34                 :          0 :     *address = NULL;
      35                 :          0 :     default_address = talloc_asprintf(mem_ctx, "unix:path=%s/%s_%s",
      36                 :            :                                       PIPE_PATH, DATA_PROVIDER_PIPE,
      37                 :            :                                       domain_name);
      38         [ #  # ]:          0 :     if (default_address == NULL) {
      39                 :            :         return ENOMEM;
      40                 :            :     }
      41                 :            : 
      42                 :          0 :     *address = default_address;
      43                 :          0 :     return EOK;
      44                 :            : }
      45                 :            : 

Generated by: LCOV version 1.9