/usr/include/nih-dbus/dbus_object.h is in libnih-dbus-dev 1.0.3-4ubuntu25.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | /* libnih
*
* Copyright © 2009 Scott James Remnant <scott@netsplit.com>.
* Copyright © 2009 Canonical Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, as
* published by the Free Software Foundation.
*
* 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.
*/
#ifndef NIH_DBUS_OBJECT_H
#define NIH_DBUS_OBJECT_H
#include <nih/macros.h>
#include <nih-dbus/dbus_interface.h>
#include <dbus/dbus.h>
/**
* NihDBusObject:
* @path: path of object,
* @connection: associated connection,
* @data: pointer to object data,
* @interfaces: NULL-terminated array of interfaces the object supports,
* @registered: TRUE while the object is registered.
*
* This structure represents an object visible on the given @connection
* at @path and being handled by libnih-dbus. It connects the @data
* pointer to the individual method and property handler functions
* defined by the @interfaces.
*
* Automatic introspection is provided based on @interfaces.
*
* No reference is held to @connection, therefore you may not assume that
* it is valid. In general, the object will be automatically freed should
* @connection be cleaned up.
**/
struct nih_dbus_object {
char * path;
DBusConnection * connection;
void * data;
const NihDBusInterface **interfaces;
int registered;
};
NIH_BEGIN_EXTERN
NihDBusObject *nih_dbus_object_new (const void *parent,
DBusConnection *connection,
const char *path,
const NihDBusInterface **interfaces,
void *data);
NIH_END_EXTERN
#endif /* NIH_DBUS_OBJECT_H */
|