Debian Codegraph @

src/polkitbackend/polkitbackendactionpool.h

raw
1 /*
2 * Copyright (C) 2008 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General
15 * Public License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
17 * Boston, MA 02111-1307, USA.
18 *
19 * Author: David Zeuthen <[email protected]>
20 */
21
22 #if !defined (_POLKIT_BACKEND_COMPILATION) || defined(_POLKIT_BACKEND_INSIDE_POLKIT_BACKEND_H)
23 #error "This is a private header file."
24 #endif
25
26 #include <glib-object.h>
27
28 #ifndef __POLKIT_BACKEND_ACTION_POOL_H
29 #define __POLKIT_BACKEND_ACTION_POOL_H
30
31 G_BEGIN_DECLS
32
33 #define POLKIT_BACKEND_TYPE_ACTION_POOL (polkit_backend_action_pool_get_type ())
34 #define POLKIT_BACKEND_ACTION_POOL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_BACKEND_TYPE_ACTION_POOL, PolkitBackendActionPool))
35 #define POLKIT_BACKEND_ACTION_POOL_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), POLKIT_BACKEND_TYPE_ACTION_POOL, PolkitBackendActionPoolClass))
36 #define POLKIT_BACKEND_ACTION_POOL_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_BACKEND_TYPE_ACTION_POOL,PolkitBackendActionPoolClass))
37 #define POLKIT_BACKEND_IS_ACTION_POOL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_BACKEND_TYPE_ACTION_POOL))
38 #define POLKIT_BACKEND_IS_ACTION_POOL_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_BACKEND_TYPE_ACTION_POOL))
39
40 typedef struct _PolkitBackendActionPool PolkitBackendActionPool;
41 typedef struct _PolkitBackendActionPoolClass PolkitBackendActionPoolClass;
42
43 struct _PolkitBackendActionPool
44 {
45 GObject parent_instance;
46 };
47
48 struct _PolkitBackendActionPoolClass
49 {
50 GObjectClass parent_class;
51
52 /*< public >*/
53
54 /*< private >*/
55 /* Padding for future expansion */
56 void (*_polkit_reserved1) (void);
57 void (*_polkit_reserved2) (void);
58 void (*_polkit_reserved3) (void);
59 void (*_polkit_reserved4) (void);
60 void (*_polkit_reserved5) (void);
61 void (*_polkit_reserved6) (void);
62 void (*_polkit_reserved7) (void);
63 void (*_polkit_reserved8) (void);
64 };
65
66 GType polkit_backend_action_pool_get_type (void) G_GNUC_CONST;
67 PolkitBackendActionPool *polkit_backend_action_pool_new (const gchar **);
68 GList *polkit_backend_action_pool_get_all_actions (PolkitBackendActionPool *pool,
69 const gchar *locale);
70
71 PolkitActionDescription *polkit_backend_action_pool_get_action (PolkitBackendActionPool *pool,
72 const gchar *action_id,
73 const gchar *locale);
74 void polkit_backend_action_pool_reload (PolkitBackendActionPool *pool);
75
76 G_END_DECLS
77
78 #endif /* __POLKIT_BACKEND_ACTION_POOL_H */
79