diff --git a/src/dbus.c b/src/dbus.c index 35fcc00..6196a1e 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -135,7 +135,7 @@ static notification *dbus_message_to_notification(const gchar *sender, GVariant notification *n = notification_create(); - n->actions = g_malloc0(sizeof(Actions)); + n->actions = g_malloc0(sizeof(struct actions)); n->dbus_client = g_strdup(sender); { diff --git a/src/notification.c b/src/notification.c index badd82b..cc7511d 100644 --- a/src/notification.c +++ b/src/notification.c @@ -186,7 +186,7 @@ int notification_is_duplicate(const notification *a, const notification *b) } /* see notification.h */ -void actions_free(Actions *a) +void actions_free(struct actions *a) { if (!a) return; diff --git a/src/notification.h b/src/notification.h index 74ddcb6..e6ef0ae 100644 --- a/src/notification.h +++ b/src/notification.h @@ -36,11 +36,11 @@ typedef struct _raw_image { unsigned char *data; } RawImage; -typedef struct _actions { +struct actions { char **actions; char *dmenu_str; gsize count; -} Actions; +}; typedef struct _notification { int id; @@ -59,7 +59,7 @@ typedef struct _notification { gint64 timestamp; /**< arrival time */ gint64 timeout; /**< time to display */ - Actions *actions; + struct actions *actions; enum markup_mode markup; const char *format; @@ -106,9 +106,9 @@ void notification_init(notification *n); /** * Free the actions structure * - * @param a (nullable): Pointer to #Actions + * @param a (nullable): Pointer to #actions */ -void actions_free(Actions *a); +void actions_free(struct actions *a); /** * Free a #RawImage