bus-internal.h revision abc5fe72503fcc30998334e73c5d8e58f9a9d85e
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen This file is part of systemd.
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen Copyright 2013 Lennart Poettering
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen systemd is free software; you can redistribute it and/or modify it
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen under the terms of the GNU Lesser General Public License as published by
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen the Free Software Foundation; either version 2.1 of the License, or
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen (at your option) any later version.
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen systemd is distributed in the hope that it will be useful, but
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen WITHOUT ANY WARRANTY; without even the implied warranty of
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen Lesser General Public License for more details.
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen You should have received a copy of the GNU Lesser General Public License
3be1d7e0c5bf60658d34eb6311d4e77c6803578cTom Gundersen along with systemd; If not, see <http://www.gnu.org/licenses/>.
unsigned prioq_idx;
struct filter_callback {
void *userdata;
unsigned last_iteration;
struct node {
char *path;
bool object_manager;
struct node_callback {
bool is_fallback;
void *userdata;
unsigned last_iteration;
struct node_enumerator {
void *userdata;
unsigned last_iteration;
struct node_vtable {
char *interface;
bool is_fallback;
void *userdata;
unsigned last_iteration;
struct vtable_member {
const char *path;
const char *interface;
const char *member;
unsigned last_iteration;
enum bus_state {
enum bus_auth {
struct sd_bus {
int message_version;
int use_memfd;
void *rbuffer;
unsigned rqueue_size;
unsigned wqueue_size;
char *unique_name;
} sockaddr;
char *kernel;
char *address;
unsigned address_index;
int last_connect_error;
unsigned auth_index;
char *auth_buffer;
int *fds;
unsigned n_fds;
char *exec_path;
char **exec_argv;
unsigned iteration_counter;
void *kdbus_buffer;
unsigned n_memfd_cache;
bool interface_name_is_valid(const char *p);
bool service_name_is_valid(const char *p);
bool member_name_is_valid(const char *p);
bool object_path_is_valid(const char *p);
char *object_path_startswith(const char *a, const char *b);