summaryrefslogtreecommitdiff
path: root/src/dkp-daemon.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-08-01 12:07:56 +0100
committerRichard Hughes <richard@hughsie.com>2008-08-01 12:07:56 +0100
commit4f934ad2dfa319c9bdfe0706442833df95cc1129 (patch)
tree02abd7f403330dc6167889bef9f8688ab6cee644 /src/dkp-daemon.h
parentcbaa6851d4e5c69a9b797c9379446388a989b4b0 (diff)
downloadupower-4f934ad2dfa319c9bdfe0706442833df95cc1129.tar.gz
convert spaces to tabs, and make sure functions have sensible names
Diffstat (limited to 'src/dkp-daemon.h')
-rw-r--r--src/dkp-daemon.h63
1 files changed, 31 insertions, 32 deletions
diff --git a/src/dkp-daemon.h b/src/dkp-daemon.h
index ad019e1..36afdf9 100644
--- a/src/dkp-daemon.h
+++ b/src/dkp-daemon.h
@@ -1,4 +1,4 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2008 David Zeuthen <david@fubar.dk>
*
@@ -27,10 +27,10 @@
G_BEGIN_DECLS
-#define DKP_SOURCE_TYPE_DAEMON (dkp_daemon_get_type ())
-#define DKP_DAEMON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DKP_SOURCE_TYPE_DAEMON, DkpDaemon))
-#define DKP_DAEMON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), DKP_SOURCE_TYPE_DAEMON, DkpDaemonClass))
-#define DKP_IS_DAEMON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DKP_SOURCE_TYPE_DAEMON))
+#define DKP_SOURCE_TYPE_DAEMON (dkp_daemon_get_type ())
+#define DKP_DAEMON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), DKP_SOURCE_TYPE_DAEMON, DkpDaemon))
+#define DKP_DAEMON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), DKP_SOURCE_TYPE_DAEMON, DkpDaemonClass))
+#define DKP_IS_DAEMON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), DKP_SOURCE_TYPE_DAEMON))
#define DKP_IS_DAEMON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), DKP_SOURCE_TYPE_DAEMON))
#define DKP_DAEMON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), DKP_SOURCE_TYPE_DAEMON, DkpDaemonClass))
@@ -38,21 +38,21 @@ typedef struct DkpDaemonPrivate DkpDaemonPrivate;
typedef struct
{
- GObject parent;
- DkpDaemonPrivate *priv;
+ GObject parent;
+ DkpDaemonPrivate *priv;
} DkpDaemon;
typedef struct
{
- GObjectClass parent_class;
+ GObjectClass parent_class;
} DkpDaemonClass;
typedef enum
{
- DKP_DAEMON_ERROR_GENERAL,
- DKP_DAEMON_ERROR_NOT_SUPPORTED,
- DKP_DAEMON_ERROR_NO_SUCH_DEVICE,
- DKP_DAEMON_NUM_ERRORS
+ DKP_DAEMON_ERROR_GENERAL,
+ DKP_DAEMON_ERROR_NOT_SUPPORTED,
+ DKP_DAEMON_ERROR_NO_SUCH_DEVICE,
+ DKP_DAEMON_NUM_ERRORS
} DkpDaemonError;
#define DKP_DAEMON_ERROR dkp_daemon_error_quark ()
@@ -60,32 +60,31 @@ typedef enum
GType dkp_daemon_error_get_type (void);
#define DKP_DAEMON_TYPE_ERROR (dkp_daemon_error_get_type ())
-GQuark dkp_daemon_error_quark (void);
-GType dkp_daemon_get_type (void);
-DkpDaemon *dkp_daemon_new (void);
+GQuark dkp_daemon_error_quark (void);
+GType dkp_daemon_get_type (void);
+DkpDaemon *dkp_daemon_new (void);
/* local methods */
-PolKitCaller *dkp_daemon_local_get_caller_for_context (DkpDaemon *daemon,
- DBusGMethodInvocation *context);
+PolKitCaller *dkp_daemon_local_get_caller_for_context (DkpDaemon *daemon,
+ DBusGMethodInvocation *context);
-gboolean dkp_daemon_local_check_auth (DkpDaemon *daemon,
- PolKitCaller *pk_caller,
- const char *action_id,
- DBusGMethodInvocation *context);
+gboolean dkp_daemon_local_check_auth (DkpDaemon *daemon,
+ PolKitCaller *pk_caller,
+ const char *action_id,
+ DBusGMethodInvocation *context);
/* exported methods */
-
-gboolean dkp_daemon_enumerate_devices (DkpDaemon *daemon,
- DBusGMethodInvocation *context);
-gboolean dkp_daemon_get_on_battery (DkpDaemon *daemon,
- DBusGMethodInvocation *context);
-gboolean dkp_daemon_get_low_battery (DkpDaemon *daemon,
- DBusGMethodInvocation *context);
-gboolean dkp_daemon_suspend (DkpDaemon *daemon,
- DBusGMethodInvocation *context);
-gboolean dkp_daemon_hibernate (DkpDaemon *daemon,
- DBusGMethodInvocation *context);
+gboolean dkp_daemon_enumerate_devices (DkpDaemon *daemon,
+ DBusGMethodInvocation *context);
+gboolean dkp_daemon_get_on_battery (DkpDaemon *daemon,
+ DBusGMethodInvocation *context);
+gboolean dkp_daemon_get_low_battery (DkpDaemon *daemon,
+ DBusGMethodInvocation *context);
+gboolean dkp_daemon_suspend (DkpDaemon *daemon,
+ DBusGMethodInvocation *context);
+gboolean dkp_daemon_hibernate (DkpDaemon *daemon,
+ DBusGMethodInvocation *context);
G_END_DECLS