Debian Codegraph @

amtk/actions-menus-toolbars/amtk-action-info-central-store.h

raw symbols SCIP
1 /* SPDX-FileCopyrightText: 2017 - Sébastien Wilmet <[email protected]>
2 * SPDX-License-Identifier: LGPL-3.0-or-later
3 */
4
5 #ifndef AMTK_ACTION_INFO_CENTRAL_STORE_H
6 #define AMTK_ACTION_INFO_CENTRAL_STORE_H
7
8 #if !defined (AMTK_H_INSIDE) && !defined (AMTK_COMPILATION)
9 #error "Only <amtk/amtk.h> can be included directly."
10 #endif
11
12 #include <glib-object.h>
13 #include <amtk/actions-menus-toolbars/amtk-action-info.h>
14
15 G_BEGIN_DECLS
16
17 #define AMTK_TYPE_ACTION_INFO_CENTRAL_STORE (amtk_action_info_central_store_get_type ())
18 #define AMTK_ACTION_INFO_CENTRAL_STORE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AMTK_TYPE_ACTION_INFO_CENTRAL_STORE, AmtkActionInfoCentralStore))
19 #define AMTK_ACTION_INFO_CENTRAL_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AMTK_TYPE_ACTION_INFO_CENTRAL_STORE, AmtkActionInfoCentralStoreClass))
20 #define AMTK_IS_ACTION_INFO_CENTRAL_STORE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AMTK_TYPE_ACTION_INFO_CENTRAL_STORE))
21 #define AMTK_IS_ACTION_INFO_CENTRAL_STORE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AMTK_TYPE_ACTION_INFO_CENTRAL_STORE))
22 #define AMTK_ACTION_INFO_CENTRAL_STORE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AMTK_TYPE_ACTION_INFO_CENTRAL_STORE, AmtkActionInfoCentralStoreClass))
23
24 typedef struct _AmtkActionInfoCentralStore AmtkActionInfoCentralStore;
25 typedef struct _AmtkActionInfoCentralStoreClass AmtkActionInfoCentralStoreClass;
26 typedef struct _AmtkActionInfoCentralStorePrivate AmtkActionInfoCentralStorePrivate;
27
28 struct _AmtkActionInfoCentralStore
29 {
30 GObject parent;
31
32 AmtkActionInfoCentralStorePrivate *priv;
33 };
34
35 struct _AmtkActionInfoCentralStoreClass
36 {
37 GObjectClass parent_class;
38
39 gpointer padding[12];
40 };
41
42 G_MODULE_EXPORT
43 GType amtk_action_info_central_store_get_type (void);
44
45 G_MODULE_EXPORT
46 AmtkActionInfoCentralStore *
47 amtk_action_info_central_store_get_singleton (void);
48
49 G_MODULE_EXPORT
50 AmtkActionInfo *amtk_action_info_central_store_lookup (AmtkActionInfoCentralStore *central_store,
51 const gchar *action_name);
52
53 G_GNUC_INTERNAL
54 void _amtk_action_info_central_store_add (AmtkActionInfoCentralStore *central_store,
55 AmtkActionInfo *info);
56
57 G_GNUC_INTERNAL
58 void _amtk_action_info_central_store_unref_singleton (void);
59
60 G_END_DECLS
61
62 #endif /* AMTK_ACTION_INFO_CENTRAL_STORE_H */