blob: 8606acf991b4f07a1bfe03ef27f0dca8c37e86bc [file] [log] [blame]
/* libnih
*
* Copyright © 2009 Scott James Remnant <scott@netsplit.com>.
*
* 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.
*
* 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 St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef NIH_DBUS_PROXY_H
#define NIH_DBUS_PROXY_H
#include <nih/macros.h>
#include <dbus/dbus.h>
/**
* NihDBusProxy:
* @name: D-Bus name of object owner,
* @path: path of object,
* @conn: associated connection.
*
* Instances of this structure may be created for remote objects that you
* wish to use. Fundamentally they combine the three elements of data
* necessary into one easy object that is bound to the lifetime of the
* associated connection.
**/
typedef struct nih_dbus_proxy {
char *name;
char *path;
DBusConnection *conn;
} NihDBusProxy;
NIH_BEGIN_EXTERN
NihDBusProxy *nih_dbus_proxy_new (const void *parent, DBusConnection *conn,
const char *name, const char *path)
__attribute__ ((malloc));
NIH_END_EXTERN
#endif /* NIH_DBUS_PROXY_H */