Branch data Line data Source code
1 : : // SPDX-License-Identifier: GPL-3.0-or-later
2 : : // SPDX-FileCopyrightText: Andy Holmes <andrew.g.r.holmes@gmail.com>
3 : :
4 : : #pragma once
5 : :
6 : : #if !defined (VALENT_INSIDE) && !defined (VALENT_COMPILATION)
7 : : # error "Only <valent.h> can be included directly."
8 : : #endif
9 : :
10 : : #include "../core/valent-extension.h"
11 : : #include "valent-notification.h"
12 : :
13 : : G_BEGIN_DECLS
14 : :
15 : : #define VALENT_TYPE_NOTIFICATIONS_ADAPTER (valent_notifications_adapter_get_type())
16 : :
17 : : VALENT_AVAILABLE_IN_1_0
18 [ + - + - : 56 : G_DECLARE_DERIVABLE_TYPE (ValentNotificationsAdapter, valent_notifications_adapter, VALENT, NOTIFICATIONS_ADAPTER, ValentExtension)
+ - ]
19 : :
20 : : struct _ValentNotificationsAdapterClass
21 : : {
22 : : ValentExtensionClass parent_class;
23 : :
24 : : /* signals */
25 : : void (*notification_added) (ValentNotificationsAdapter *adapter,
26 : : ValentNotification *notification);
27 : : void (*notification_removed) (ValentNotificationsAdapter *adapter,
28 : : ValentNotification *notification);
29 : :
30 : : /*< private >*/
31 : : gpointer padding[8];
32 : : };
33 : :
34 : : VALENT_AVAILABLE_IN_1_0
35 : : void valent_notifications_adapter_notification_added (ValentNotificationsAdapter *adapter,
36 : : ValentNotification *notification);
37 : : VALENT_AVAILABLE_IN_1_0
38 : : void valent_notifications_adapter_notification_removed (ValentNotificationsAdapter *adapter,
39 : : ValentNotification *notification);
40 : :
41 : : G_END_DECLS
42 : :
|