/***
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 "alloc-util.h"
#include "bus-control.h"
#include "bus-objects.h"
#include "bus-slot.h"
#include "string-util.h"
bool floating,
void *userdata) {
if (!slot)
return NULL;
if (!floating)
return slot;
}
if (!slot)
return NULL;
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: {
break;
}
case _SD_BUS_VTABLE_PROPERTY:
case _SD_BUS_VTABLE_WRITABLE_PROPERTY: {
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;
}