mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-24 20:45:32 +00:00
mock-lfb-event: Uncrustify
This commit is contained in:
parent
d533c5dd60
commit
8b52ca5313
1 changed files with 24 additions and 24 deletions
|
@ -25,22 +25,22 @@ enum {
|
||||||
static GParamSpec *props[PROP_LAST_PROP];
|
static GParamSpec *props[PROP_LAST_PROP];
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SIGNAL_FEEDBACK_ENDED,
|
SIGNAL_FEEDBACK_ENDED,
|
||||||
N_SIGNALS,
|
N_SIGNALS,
|
||||||
};
|
};
|
||||||
static guint signals[N_SIGNALS];
|
static guint signals[N_SIGNALS];
|
||||||
|
|
||||||
typedef struct _LfbEvent {
|
typedef struct _LfbEvent {
|
||||||
GObject parent;
|
GObject parent;
|
||||||
|
|
||||||
char *event;
|
char *event;
|
||||||
gint timeout;
|
gint timeout;
|
||||||
gchar *profile;
|
gchar *profile;
|
||||||
|
|
||||||
guint id;
|
guint id;
|
||||||
LfbEventState state;
|
LfbEventState state;
|
||||||
gint end_reason;
|
gint end_reason;
|
||||||
gulong handler_id;
|
gulong handler_id;
|
||||||
} LfbEvent;
|
} LfbEvent;
|
||||||
|
|
||||||
G_DEFINE_TYPE (LfbEvent, lfb_event, G_TYPE_OBJECT);
|
G_DEFINE_TYPE (LfbEvent, lfb_event, G_TYPE_OBJECT);
|
||||||
|
@ -249,10 +249,10 @@ on_check_task_cancelled (gpointer user_data)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
lfb_event_trigger_feedback_async (LfbEvent *self,
|
lfb_event_trigger_feedback_async (LfbEvent *self,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GTask *task;
|
GTask *task;
|
||||||
g_return_if_fail (LFB_IS_EVENT (self));
|
g_return_if_fail (LFB_IS_EVENT (self));
|
||||||
|
@ -265,9 +265,9 @@ lfb_event_trigger_feedback_async (LfbEvent *self,
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
lfb_event_trigger_feedback_finish (LfbEvent *self,
|
lfb_event_trigger_feedback_finish (LfbEvent *self,
|
||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (g_task_is_valid (res, self), FALSE);
|
g_return_val_if_fail (g_task_is_valid (res, self), FALSE);
|
||||||
|
|
||||||
|
@ -275,9 +275,9 @@ lfb_event_trigger_feedback_finish (LfbEvent *self,
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
lfb_event_end_feedback_finish (LfbEvent *self,
|
lfb_event_end_feedback_finish (LfbEvent *self,
|
||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (g_task_is_valid (res, self), FALSE);
|
g_return_val_if_fail (g_task_is_valid (res, self), FALSE);
|
||||||
|
|
||||||
|
@ -285,10 +285,10 @@ lfb_event_end_feedback_finish (LfbEvent *self,
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
lfb_event_end_feedback_async (LfbEvent *self,
|
lfb_event_end_feedback_async (LfbEvent *self,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GAsyncReadyCallback callback,
|
GAsyncReadyCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
GTask *task;
|
GTask *task;
|
||||||
g_return_if_fail (LFB_IS_EVENT (self));
|
g_return_if_fail (LFB_IS_EVENT (self));
|
||||||
|
|
Loading…
Reference in a new issue