diff options
author | Richard Hughes <richard@hughsie.com> | 2010-01-18 12:32:06 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2010-01-18 12:32:06 +0000 |
commit | 2562bc6aa6fe9b5f422e01c92aef9745bed5204f (patch) | |
tree | d10c9a7213be49fdba6805b742395d1dcae46eb7 /src/up-backend.h | |
parent | 15ac5102c8abcbeac6e8da007056e493d4fef1e6 (diff) | |
download | upower-2562bc6aa6fe9b5f422e01c92aef9745bed5204f.tar.gz |
trivial: DkpBackend -> UpBackend (no ABI or API break)
Diffstat (limited to 'src/up-backend.h')
-rw-r--r-- | src/up-backend.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/up-backend.h b/src/up-backend.h index 8c92835..d413bb4 100644 --- a/src/up-backend.h +++ b/src/up-backend.h @@ -19,8 +19,8 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef __DKP_BACKEND_H -#define __DKP_BACKEND_H +#ifndef __UP_BACKEND_H +#define __UP_BACKEND_H #include <glib-object.h> #include <dkp-enum.h> @@ -30,45 +30,45 @@ G_BEGIN_DECLS -#define DKP_TYPE_BACKEND (dkp_backend_get_type ()) -#define DKP_BACKEND(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DKP_TYPE_BACKEND, DkpBackend)) -#define DKP_BACKEND_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), DKP_TYPE_BACKEND, DkpBackendClass)) -#define DKP_IS_BACKEND(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DKP_TYPE_BACKEND)) -#define DKP_IS_BACKEND_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DKP_TYPE_BACKEND)) -#define DKP_BACKEND_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DKP_TYPE_BACKEND, DkpBackendClass)) -#define DKP_BACKEND_ERROR (dkp_backend_error_quark ()) -#define DKP_BACKEND_TYPE_ERROR (dkp_backend_error_get_type ()) +#define UP_TYPE_BACKEND (up_backend_get_type ()) +#define UP_BACKEND(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_BACKEND, UpBackend)) +#define UP_BACKEND_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), UP_TYPE_BACKEND, UpBackendClass)) +#define UP_IS_BACKEND(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_BACKEND)) +#define UP_IS_BACKEND_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_BACKEND)) +#define UP_BACKEND_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_BACKEND, UpBackendClass)) +#define UP_BACKEND_ERROR (up_backend_error_quark ()) +#define UP_BACKEND_TYPE_ERROR (up_backend_error_get_type ()) -typedef struct DkpBackendPrivate DkpBackendPrivate; +typedef struct UpBackendPrivate UpBackendPrivate; typedef struct { GObject parent; - DkpBackendPrivate *priv; -} DkpBackend; + UpBackendPrivate *priv; +} UpBackend; typedef struct { GObjectClass parent_class; - void (* device_added) (DkpBackend *backend, + void (* device_added) (UpBackend *backend, GObject *native, DkpDevice *device); - void (* device_changed) (DkpBackend *backend, + void (* device_changed) (UpBackend *backend, GObject *native, DkpDevice *device); - void (* device_removed) (DkpBackend *backend, + void (* device_removed) (UpBackend *backend, GObject *native, DkpDevice *device); -} DkpBackendClass; +} UpBackendClass; -GType dkp_backend_get_type (void); -DkpBackend *dkp_backend_new (void); -void dkp_backend_test (gpointer user_data); +GType up_backend_get_type (void); +UpBackend *up_backend_new (void); +void up_backend_test (gpointer user_data); -gboolean dkp_backend_coldplug (DkpBackend *backend, +gboolean up_backend_coldplug (UpBackend *backend, DkpDaemon *daemon); G_END_DECLS -#endif /* __DKP_BACKEND_H */ +#endif /* __UP_BACKEND_H */ |