core: port NMExportedObject to gdbus

Port NMExportedObject to gdbus, and make
nm_exported_object_class_add_interface() deal with generating D-Bus
skeleton objects and attaching signal handlers and property bindings
as needed to properly handle methods, signals, and properties.
This commit is contained in:
Dan Winship
2015-04-15 14:53:30 -04:00
parent 284e15a877
commit 073991f5a8
2 changed files with 422 additions and 119 deletions

View File

@@ -21,9 +21,8 @@
#ifndef NM_EXPORTED_OBJECT_H
#define NM_EXPORTED_OBJECT_H
#include <dbus/dbus-glib.h>
#include "nm-default.h"
#include "nm-types.h"
G_BEGIN_DECLS
@@ -47,7 +46,8 @@ typedef struct {
GType nm_exported_object_get_type (void);
void nm_exported_object_class_add_interface (NMExportedObjectClass *object_class,
const DBusGObjectInfo *info);
GType dbus_skeleton_type,
...) G_GNUC_NULL_TERMINATED;
const char *nm_exported_object_export (NMExportedObject *self);
const char *nm_exported_object_get_path (NMExportedObject *self);