bus-slot.c revision cc65fe5e14770d0116e0f475c5dc2ef57113bc98
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2013 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "sd-bus.h"
#include "bus-control.h"
#include "bus-objects.h"
#include "bus-slot.h"
bool floating,
void *userdata) {
if (!slot)
return NULL;
if (!floating)
return slot;
}
return slot;
}
return;
case BUS_REPLY_CALLBACK:
prioq_remove(slot->bus->reply_callbacks_prioq, &slot->reply_callback, &slot->reply_callback.prioq_idx);
break;
case BUS_FILTER_CALLBACK:
break;
case BUS_MATCH_CALLBACK:
if (slot->match_added)
bus_remove_match_internal(slot->bus, slot->match_callback.match_string, slot->match_callback.cookie);
break;
case BUS_NODE_CALLBACK:
}
break;
case BUS_NODE_ENUMERATOR:
}
break;
case BUS_NODE_OBJECT_MANAGER:
LIST_REMOVE(object_managers, slot->node_object_manager.node->object_managers, &slot->node_object_manager);
}
break;
case BUS_NODE_VTABLE:
const sd_bus_vtable *v;
struct vtable_member *x = NULL;
switch (v->type) {
case _SD_BUS_VTABLE_METHOD: {
struct vtable_member key;
break;
}
case _SD_BUS_VTABLE_PROPERTY:
case _SD_BUS_VTABLE_WRITABLE_PROPERTY: {
struct vtable_member key;
break;
}}
free(x);
}
}
}
break;
default:
assert_not_reached("Wut? Unknown slot type?");
}
}
if (!slot)
return NULL;
return NULL;
}
return NULL;
}
}
}
void *ret;
return ret;
}
return NULL;
}
return NULL;
}
return NULL;
}
}
return 0;
}