LCOV - code coverage report
Current view: top level - core - dbus-slice.c (source / functions) Hit Total Coverage
Test: systemd test coverage Lines: 0 10 0.0 %
Date: 2015-07-29 18:47:03 Functions: 0 2 0.0 %

          Line data    Source code
       1             : /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
       2             : 
       3             : /***
       4             :   This file is part of systemd.
       5             : 
       6             :   Copyright 2013 Lennart Poettering
       7             : 
       8             :   systemd is free software; you can redistribute it and/or modify it
       9             :   under the terms of the GNU Lesser General Public License as published by
      10             :   the Free Software Foundation; either version 2.1 of the License, or
      11             :   (at your option) any later version.
      12             : 
      13             :   systemd is distributed in the hope that it will be useful, but
      14             :   WITHOUT ANY WARRANTY; without even the implied warranty of
      15             :   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
      16             :   Lesser General Public License for more details.
      17             : 
      18             :   You should have received a copy of the GNU Lesser General Public License
      19             :   along with systemd; If not, see <http://www.gnu.org/licenses/>.
      20             : ***/
      21             : 
      22             : #include "unit.h"
      23             : #include "slice.h"
      24             : #include "dbus-cgroup.h"
      25             : #include "dbus-slice.h"
      26             : 
      27             : const sd_bus_vtable bus_slice_vtable[] = {
      28             :         SD_BUS_VTABLE_START(0),
      29             :         SD_BUS_VTABLE_END
      30             : };
      31             : 
      32           0 : int bus_slice_set_property(
      33             :                 Unit *u,
      34             :                 const char *name,
      35             :                 sd_bus_message *message,
      36             :                 UnitSetPropertiesMode mode,
      37             :                 sd_bus_error *error) {
      38             : 
      39           0 :         Slice *s = SLICE(u);
      40             : 
      41           0 :         assert(name);
      42           0 :         assert(u);
      43             : 
      44           0 :         return bus_cgroup_set_property(u, &s->cgroup_context, name, message, mode, error);
      45             : }
      46             : 
      47           0 : int bus_slice_commit_properties(Unit *u) {
      48           0 :         assert(u);
      49             : 
      50           0 :         unit_update_cgroup_members_masks(u);
      51           0 :         unit_realize_cgroup(u);
      52             : 
      53           0 :         return 0;
      54             : }

Generated by: LCOV version 1.11