diff options
author | Richard Hughes <richard@hughsie.com> | 2010-01-18 12:51:41 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2010-01-18 12:51:41 +0000 |
commit | 6845dc144dedf4b9d730b0437e2d2b1f8f87df4b (patch) | |
tree | 1ffb801939fe4b39f0457b898fb72928e8954dcf /src/up-polkit.h | |
parent | 25e51c96136c45632091a7b240f8935ce1d239ce (diff) | |
download | upower-6845dc144dedf4b9d730b0437e2d2b1f8f87df4b.tar.gz |
trivial: DkpPolkit -> UpPolkit (no ABI or API break)
Diffstat (limited to 'src/up-polkit.h')
-rw-r--r-- | src/up-polkit.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/up-polkit.h b/src/up-polkit.h index e628890..28887bd 100644 --- a/src/up-polkit.h +++ b/src/up-polkit.h @@ -19,52 +19,52 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef __DKP_POLKIT_H -#define __DKP_POLKIT_H +#ifndef __UP_POLKIT_H +#define __UP_POLKIT_H #include <glib-object.h> #include <polkit/polkit.h> G_BEGIN_DECLS -#define DKP_TYPE_POLKIT (dkp_polkit_get_type ()) -#define DKP_POLKIT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DKP_TYPE_POLKIT, DkpPolkit)) -#define DKP_POLKIT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), DKP_TYPE_POLKIT, DkpPolkitClass)) -#define DKP_IS_POLKIT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DKP_TYPE_POLKIT)) -#define DKP_IS_POLKIT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DKP_TYPE_POLKIT)) -#define DKP_POLKIT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DKP_TYPE_POLKIT, DkpPolkitClass)) +#define UP_TYPE_POLKIT (up_polkit_get_type ()) +#define UP_POLKIT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_POLKIT, UpPolkit)) +#define UP_POLKIT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), UP_TYPE_POLKIT, UpPolkitClass)) +#define UP_IS_POLKIT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_POLKIT)) +#define UP_IS_POLKIT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_POLKIT)) +#define UP_POLKIT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_POLKIT, UpPolkitClass)) -typedef struct DkpPolkitPrivate DkpPolkitPrivate; +typedef struct UpPolkitPrivate UpPolkitPrivate; typedef struct { - GObject parent; - DkpPolkitPrivate *priv; -} DkpPolkit; + GObject parent; + UpPolkitPrivate *priv; +} UpPolkit; typedef struct { - GObjectClass parent_class; -} DkpPolkitClass; + GObjectClass parent_class; +} UpPolkitClass; -GType dkp_polkit_get_type (void); -DkpPolkit *dkp_polkit_new (void); -void dkp_polkit_test (gpointer user_data); +GType up_polkit_get_type (void); +UpPolkit *up_polkit_new (void); +void up_polkit_test (gpointer user_data); -PolkitSubject *dkp_polkit_get_subject (DkpPolkit *polkit, +PolkitSubject *up_polkit_get_subject (UpPolkit *polkit, DBusGMethodInvocation *context); -gboolean dkp_polkit_check_auth (DkpPolkit *polkit, +gboolean up_polkit_check_auth (UpPolkit *polkit, PolkitSubject *subject, const gchar *action_id, DBusGMethodInvocation *context); -gboolean dkp_polkit_get_uid (DkpPolkit *polkit, +gboolean up_polkit_get_uid (UpPolkit *polkit, PolkitSubject *subject, uid_t *uid); -gboolean dkp_polkit_get_pid (DkpPolkit *polkit, +gboolean up_polkit_get_pid (UpPolkit *polkit, PolkitSubject *subject, pid_t *pid); G_END_DECLS -#endif /* __DKP_POLKIT_H */ +#endif /* __UP_POLKIT_H */ |