X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bus%2Fkdbus-d.h;h=7bbab6904bc69b75870555cf956380bc0748a347;hb=c1a77d2c58c78abc606f1cb7918704596ebf2bfe;hp=4254db9c6a29b05a5d04705b18a1390c0ad0ae7d;hpb=1def1f65df3762b279b11ebd4f7326d662e36f80;p=platform%2Fupstream%2Fdbus.git diff --git a/bus/kdbus-d.h b/bus/kdbus-d.h index 4254db9..7bbab69 100644 --- a/bus/kdbus-d.h +++ b/bus/kdbus-d.h @@ -1,10 +1,26 @@ -/* - * kdbus-d.h +/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ +/* kdbus-d.h kdbus related daemon functions * - * Created on: Sep 4, 2013 - * Author: r.pajak + * Copyright (C) 2013 Samsung Electronics * - * kdbus add-on to dbus daemon + * Licensed under the Academic Free License version 2.1 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version and 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. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * */ @@ -17,22 +33,31 @@ #include #include #include +#include __u64 sender_name_to_id(const char* name, DBusError* error); -char* make_kdbus_bus(DBusBusType type, DBusError *error); +char* make_kdbus_bus(DBusBusType type, const char* address, DBusError *error); DBusServer* empty_server_init(char* address); -DBusConnection* daemon_as_client(DBusBusType type, char* address, DBusError *error); + dbus_bool_t kdbus_register_policy (const DBusString *service_name, DBusConnection* connection); dbus_uint32_t kdbus_request_name(DBusConnection* connection, const DBusString *service_name, dbus_uint32_t flags, __u64 sender_id); dbus_uint32_t kdbus_release_name(DBusConnection* connection, const DBusString *service_name, __u64 sender_id); dbus_bool_t kdbus_list_services (DBusConnection* connection, char ***listp, int *array_len); +dbus_bool_t kdbus_list_queued (DBusConnection *connection, DBusList **return_list, const char *name, DBusError *error); dbus_bool_t kdbus_add_match_rule (DBusConnection* connection, DBusMessage* message, const char* text, DBusError* error); dbus_bool_t kdbus_remove_match (DBusConnection* connection, DBusMessage* message, DBusError* error); -dbus_bool_t kdbus_get_connection_unix_user(DBusConnection* connection, DBusMessage* message, unsigned long* uid, DBusError* error); -dbus_bool_t kdbus_get_connection_unix_process_id(DBusConnection* connection, DBusMessage* message, unsigned long* pid, DBusError* error); + +dbus_bool_t add_match_kdbus (DBusTransport* transport, __u64 id, const char *rule); +dbus_bool_t remove_match_kdbus (DBusTransport* transport, __u64 id); + +int kdbus_get_name_owner(DBusConnection* connection, const char* name, char* owner); dbus_bool_t kdbus_get_connection_unix_selinux_security_context(DBusConnection* connection, DBusMessage* message, DBusMessage* reply, DBusError* error); +DBusConnection* daemon_as_client(DBusBusType type, char* address, DBusError *error); +dbus_bool_t register_daemon_name(DBusConnection* connection); DBusConnection* create_phantom_connection(DBusConnection* connection, const char* unique_name, DBusError* error); dbus_bool_t register_kdbus_starters(DBusConnection* connection); +dbus_bool_t update_kdbus_starters(DBusConnection* connection); + void handleNameOwnerChanged(DBusMessage *msg, BusTransaction *transaction, DBusConnection *connection); #endif /* KDBUS_H_ */