change buffer size for gethostname() to HOST_NAME_MAX to avoid accidently truncating...
[systembsd.git] / src / interfaces / localed / localed-gen.h
... / ...
CommitLineData
1/*
2 * Generated by gdbus-codegen 2.40.0. DO NOT EDIT.
3 *
4 * The license of this code is the same as for the source it was derived from.
5 */
6
7#ifndef __SRC_INTERFACES_LOCALED_LOCALED_GEN_H__
8#define __SRC_INTERFACES_LOCALED_LOCALED_GEN_H__
9
10#include <gio/gio.h>
11
12G_BEGIN_DECLS
13
14
15/* ------------------------------------------------------------------------ */
16/* Declarations for org.freedesktop.locale1 */
17
18#define TYPE_LOCALE1 (locale1_get_type ())
19#define LOCALE1(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LOCALE1, Locale1))
20#define IS_LOCALE1(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LOCALE1))
21#define LOCALE1_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_LOCALE1, Locale1Iface))
22
23struct _Locale1;
24typedef struct _Locale1 Locale1;
25typedef struct _Locale1Iface Locale1Iface;
26
27struct _Locale1Iface
28{
29 GTypeInterface parent_iface;
30
31
32 gboolean (*handle_set_locale) (
33 Locale1 *object,
34 GDBusMethodInvocation *invocation,
35 const gchar *const *arg_locale,
36 gboolean arg_user_interaction);
37
38 gboolean (*handle_set_vconsole_keyboard) (
39 Locale1 *object,
40 GDBusMethodInvocation *invocation,
41 const gchar *arg_keymap,
42 const gchar *arg_keymap_toggle,
43 gboolean arg_convert,
44 gboolean arg_user_interaction);
45
46 gboolean (*handle_set_x11_keyboard) (
47 Locale1 *object,
48 GDBusMethodInvocation *invocation,
49 const gchar *arg_layout,
50 const gchar *arg_model,
51 const gchar *arg_variant,
52 const gchar *arg_options,
53 gboolean arg_convert,
54 gboolean arg_user_interaction);
55
56 const gchar *const * (*get_locale) (Locale1 *object);
57
58 const gchar * (*get_vconsole_keymap) (Locale1 *object);
59
60 const gchar * (*get_vconsole_keymap_toggle) (Locale1 *object);
61
62 const gchar * (*get_x11_layout) (Locale1 *object);
63
64 const gchar * (*get_x11_model) (Locale1 *object);
65
66 const gchar * (*get_x11_options) (Locale1 *object);
67
68 const gchar * (*get_x11_variant) (Locale1 *object);
69
70};
71
72GType locale1_get_type (void) G_GNUC_CONST;
73
74GDBusInterfaceInfo *locale1_interface_info (void);
75guint locale1_override_properties (GObjectClass *klass, guint property_id_begin);
76
77
78/* D-Bus method call completion functions: */
79void locale1_complete_set_locale (
80 Locale1 *object,
81 GDBusMethodInvocation *invocation);
82
83void locale1_complete_set_vconsole_keyboard (
84 Locale1 *object,
85 GDBusMethodInvocation *invocation);
86
87void locale1_complete_set_x11_keyboard (
88 Locale1 *object,
89 GDBusMethodInvocation *invocation);
90
91
92
93/* D-Bus method calls: */
94void locale1_call_set_locale (
95 Locale1 *proxy,
96 const gchar *const *arg_locale,
97 gboolean arg_user_interaction,
98 GCancellable *cancellable,
99 GAsyncReadyCallback callback,
100 gpointer user_data);
101
102gboolean locale1_call_set_locale_finish (
103 Locale1 *proxy,
104 GAsyncResult *res,
105 GError **error);
106
107gboolean locale1_call_set_locale_sync (
108 Locale1 *proxy,
109 const gchar *const *arg_locale,
110 gboolean arg_user_interaction,
111 GCancellable *cancellable,
112 GError **error);
113
114void locale1_call_set_vconsole_keyboard (
115 Locale1 *proxy,
116 const gchar *arg_keymap,
117 const gchar *arg_keymap_toggle,
118 gboolean arg_convert,
119 gboolean arg_user_interaction,
120 GCancellable *cancellable,
121 GAsyncReadyCallback callback,
122 gpointer user_data);
123
124gboolean locale1_call_set_vconsole_keyboard_finish (
125 Locale1 *proxy,
126 GAsyncResult *res,
127 GError **error);
128
129gboolean locale1_call_set_vconsole_keyboard_sync (
130 Locale1 *proxy,
131 const gchar *arg_keymap,
132 const gchar *arg_keymap_toggle,
133 gboolean arg_convert,
134 gboolean arg_user_interaction,
135 GCancellable *cancellable,
136 GError **error);
137
138void locale1_call_set_x11_keyboard (
139 Locale1 *proxy,
140 const gchar *arg_layout,
141 const gchar *arg_model,
142 const gchar *arg_variant,
143 const gchar *arg_options,
144 gboolean arg_convert,
145 gboolean arg_user_interaction,
146 GCancellable *cancellable,
147 GAsyncReadyCallback callback,
148 gpointer user_data);
149
150gboolean locale1_call_set_x11_keyboard_finish (
151 Locale1 *proxy,
152 GAsyncResult *res,
153 GError **error);
154
155gboolean locale1_call_set_x11_keyboard_sync (
156 Locale1 *proxy,
157 const gchar *arg_layout,
158 const gchar *arg_model,
159 const gchar *arg_variant,
160 const gchar *arg_options,
161 gboolean arg_convert,
162 gboolean arg_user_interaction,
163 GCancellable *cancellable,
164 GError **error);
165
166
167
168/* D-Bus property accessors: */
169const gchar *const *locale1_get_locale (Locale1 *object);
170gchar **locale1_dup_locale (Locale1 *object);
171void locale1_set_locale (Locale1 *object, const gchar *const *value);
172
173const gchar *locale1_get_vconsole_keymap (Locale1 *object);
174gchar *locale1_dup_vconsole_keymap (Locale1 *object);
175void locale1_set_vconsole_keymap (Locale1 *object, const gchar *value);
176
177const gchar *locale1_get_vconsole_keymap_toggle (Locale1 *object);
178gchar *locale1_dup_vconsole_keymap_toggle (Locale1 *object);
179void locale1_set_vconsole_keymap_toggle (Locale1 *object, const gchar *value);
180
181const gchar *locale1_get_x11_layout (Locale1 *object);
182gchar *locale1_dup_x11_layout (Locale1 *object);
183void locale1_set_x11_layout (Locale1 *object, const gchar *value);
184
185const gchar *locale1_get_x11_model (Locale1 *object);
186gchar *locale1_dup_x11_model (Locale1 *object);
187void locale1_set_x11_model (Locale1 *object, const gchar *value);
188
189const gchar *locale1_get_x11_variant (Locale1 *object);
190gchar *locale1_dup_x11_variant (Locale1 *object);
191void locale1_set_x11_variant (Locale1 *object, const gchar *value);
192
193const gchar *locale1_get_x11_options (Locale1 *object);
194gchar *locale1_dup_x11_options (Locale1 *object);
195void locale1_set_x11_options (Locale1 *object, const gchar *value);
196
197
198/* ---- */
199
200#define TYPE_LOCALE1_PROXY (locale1_proxy_get_type ())
201#define LOCALE1_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LOCALE1_PROXY, Locale1Proxy))
202#define LOCALE1_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LOCALE1_PROXY, Locale1ProxyClass))
203#define LOCALE1_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LOCALE1_PROXY, Locale1ProxyClass))
204#define IS_LOCALE1_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LOCALE1_PROXY))
205#define IS_LOCALE1_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LOCALE1_PROXY))
206
207typedef struct _Locale1Proxy Locale1Proxy;
208typedef struct _Locale1ProxyClass Locale1ProxyClass;
209typedef struct _Locale1ProxyPrivate Locale1ProxyPrivate;
210
211struct _Locale1Proxy
212{
213 /*< private >*/
214 GDBusProxy parent_instance;
215 Locale1ProxyPrivate *priv;
216};
217
218struct _Locale1ProxyClass
219{
220 GDBusProxyClass parent_class;
221};
222
223GType locale1_proxy_get_type (void) G_GNUC_CONST;
224
225void locale1_proxy_new (
226 GDBusConnection *connection,
227 GDBusProxyFlags flags,
228 const gchar *name,
229 const gchar *object_path,
230 GCancellable *cancellable,
231 GAsyncReadyCallback callback,
232 gpointer user_data);
233Locale1 *locale1_proxy_new_finish (
234 GAsyncResult *res,
235 GError **error);
236Locale1 *locale1_proxy_new_sync (
237 GDBusConnection *connection,
238 GDBusProxyFlags flags,
239 const gchar *name,
240 const gchar *object_path,
241 GCancellable *cancellable,
242 GError **error);
243
244void locale1_proxy_new_for_bus (
245 GBusType bus_type,
246 GDBusProxyFlags flags,
247 const gchar *name,
248 const gchar *object_path,
249 GCancellable *cancellable,
250 GAsyncReadyCallback callback,
251 gpointer user_data);
252Locale1 *locale1_proxy_new_for_bus_finish (
253 GAsyncResult *res,
254 GError **error);
255Locale1 *locale1_proxy_new_for_bus_sync (
256 GBusType bus_type,
257 GDBusProxyFlags flags,
258 const gchar *name,
259 const gchar *object_path,
260 GCancellable *cancellable,
261 GError **error);
262
263
264/* ---- */
265
266#define TYPE_LOCALE1_SKELETON (locale1_skeleton_get_type ())
267#define LOCALE1_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_LOCALE1_SKELETON, Locale1Skeleton))
268#define LOCALE1_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_LOCALE1_SKELETON, Locale1SkeletonClass))
269#define LOCALE1_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_LOCALE1_SKELETON, Locale1SkeletonClass))
270#define IS_LOCALE1_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_LOCALE1_SKELETON))
271#define IS_LOCALE1_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_LOCALE1_SKELETON))
272
273typedef struct _Locale1Skeleton Locale1Skeleton;
274typedef struct _Locale1SkeletonClass Locale1SkeletonClass;
275typedef struct _Locale1SkeletonPrivate Locale1SkeletonPrivate;
276
277struct _Locale1Skeleton
278{
279 /*< private >*/
280 GDBusInterfaceSkeleton parent_instance;
281 Locale1SkeletonPrivate *priv;
282};
283
284struct _Locale1SkeletonClass
285{
286 GDBusInterfaceSkeletonClass parent_class;
287};
288
289GType locale1_skeleton_get_type (void) G_GNUC_CONST;
290
291Locale1 *locale1_skeleton_new (void);
292
293
294G_END_DECLS
295
296#endif /* __SRC_INTERFACES_LOCALED_LOCALED_GEN_H__ */