summaryrefslogtreecommitdiff
path: root/vapi/liboobs-1.vapi
blob: b7788c04f25a55890e900e00d269ebe0aaf6fdb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
/* liboobs-1.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Oobs", lower_case_cprefix = "oobs_")]
namespace Oobs {
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class Group : GLib.Object {
		public void add_user (Oobs.User user);
		public void clear_users ();
		public long get_gid ();
		public unowned string get_name ();
		public unowned GLib.List get_users ();
		[CCode (has_construct_function = false)]
		public Group (string name);
		public void remove_user (Oobs.User user);
		public void set_crypted_password (string crypted_password);
		public void set_gid (long gid);
		public void set_password (string password);
		[NoAccessorMethod]
		public string crypted_password { owned get; set; }
		public int gid { get; set; }
		public string name { get; construct; }
		public string password { set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class GroupsConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public unowned Oobs.List get_groups ();
		[NoAccessorMethod]
		public int maximum_gid { get; set; }
		[NoAccessorMethod]
		public int minimum_gid { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class HostsConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public unowned GLib.List get_dns_servers ();
		public unowned string get_domainname ();
		public unowned string get_hostname ();
		public unowned GLib.List get_search_domains ();
		public unowned Oobs.List get_static_hosts ();
		public void set_dns_servers (GLib.List dns_list);
		public void set_domainname (string domainname);
		public void set_hostname (string hostname);
		public void set_search_domains (GLib.List search_domains_list);
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class Iface : GLib.Object {
		public bool get_active ();
		public bool get_auto ();
		public bool get_configured ();
		public unowned string get_device_name ();
		public virtual bool has_gateway ();
		[NoWrapper]
		public virtual bool is_configured ();
		public void set_active (bool is_active);
		public void set_auto (bool is_auto);
		public void set_configured (bool is_configured);
		public bool active { get; set; }
		public bool auto { get; set; }
		public bool configured { get; set; }
		[NoAccessorMethod]
		public string device { owned get; construct; }
		public virtual signal void state_changed ();
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class IfaceEthernet : Oobs.Iface {
		public unowned string get_broadcast_address ();
		public unowned string get_configuration_method ();
		public unowned string get_gateway_address ();
		public unowned string get_ip_address ();
		public unowned string get_network_address ();
		public unowned string get_network_mask ();
		public void set_broadcast_address (string address);
		public void set_configuration_method (string method);
		public void set_gateway_address (string address);
		public void set_ip_address (string address);
		public void set_network_address (string address);
		public void set_network_mask (string mask);
		public string broadcast_address { get; set; }
		[NoAccessorMethod]
		public string config_method { owned get; set; }
		public string gateway_address { get; set; }
		public string ip_address { get; set; }
		[NoAccessorMethod]
		public string ip_mask { owned get; set; }
		public string network_address { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class IfaceIRLan : Oobs.IfaceEthernet {
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class IfacePPP : Oobs.Iface {
		public unowned string get_apn ();
		public unowned string get_connection_type ();
		public bool get_default_gateway ();
		public Oobs.DialType get_dial_type ();
		public unowned Oobs.IfaceEthernet get_ethernet ();
		public unowned string get_login ();
		public bool get_peer_noauth ();
		public bool get_persistent ();
		public unowned string get_phone_number ();
		public unowned string get_phone_prefix ();
		public unowned string get_serial_port ();
		public bool get_use_peer_dns ();
		public Oobs.ModemVolume get_volume ();
		public void set_apn (string apn);
		public void set_connection_type (string type);
		public void set_default_gateway (bool default_gw);
		public void set_dial_type (Oobs.DialType dial_type);
		public void set_ethernet (Oobs.IfaceEthernet ethernet);
		public void set_login (string login);
		public void set_password (string password);
		public void set_peer_noauth (bool use_peer_dns);
		public void set_persistent (bool persistent);
		public void set_phone_number (string phone_number);
		public void set_phone_prefix (string phone_prefix);
		public void set_serial_port (string serial_port);
		public void set_use_peer_dns (bool use_peer_dns);
		public void set_volume (Oobs.ModemVolume volume);
		public string apn { get; set; }
		public string connection_type { get; set; }
		public bool default_gateway { get; set; }
		public Oobs.DialType dial_type { get; set; }
		public Oobs.IfaceEthernet ethernet { get; set; }
		[NoAccessorMethod]
		public string iface_section { owned get; set; }
		public string login { get; set; }
		[NoAccessorMethod]
		public string password { owned get; set; }
		public bool peer_noauth { get; set; }
		public bool persistent { get; set; }
		public string phone_number { get; set; }
		public string phone_prefix { get; set; }
		public string serial_port { get; set; }
		public bool use_peer_dns { get; set; }
		public Oobs.ModemVolume volume { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class IfacePlip : Oobs.Iface {
		public unowned string get_address ();
		public unowned string get_remote_address ();
		public void set_address (string address);
		public void set_remote_address (string address);
		public string address { get; set; }
		public string remote_address { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class IfaceWireless : Oobs.IfaceEthernet {
		public unowned string get_essid ();
		public unowned string get_key ();
		public unowned string get_key_type ();
		public void set_essid (string essid);
		public void set_key (string key);
		public void set_key_type (string key_type);
		public string essid { get; set; }
		public string key { get; set; }
		public string key_type { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class IfacesConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public unowned GLib.List get_available_configuration_methods ();
		public unowned GLib.List get_available_key_types ();
		public unowned GLib.List get_available_ppp_types ();
		public unowned Oobs.List get_ifaces (Oobs.IfaceType type);
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class List : GLib.Object {
		public void append (Oobs.ListIter iter);
		public void clear ();
		public unowned GLib.Object get (Oobs.ListIter iter);
		public bool get_iter_first (Oobs.ListIter iter);
		public int get_n_items ();
		public void insert_after (Oobs.ListIter anchor, Oobs.ListIter iter);
		public void insert_before (Oobs.ListIter anchor, Oobs.ListIter iter);
		public void prepend (Oobs.ListIter iter);
		public bool remove (Oobs.ListIter iter);
		public void set (Oobs.ListIter iter, void* data);
		public void* contained_type { construct; }
	}
	[Compact]
	[CCode (copy_function = "oobs_list_iter_copy", type_id = "OOBS_TYPE_LIST_ITER", cheader_filename = "oobs/oobs.h")]
	public class ListIter {
		public void* data;
		public uint stamp;
		public unowned Oobs.ListIter copy ();
		public static bool next (Oobs.List list, Oobs.ListIter iter);
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class NFSConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public unowned Oobs.List get_shares ();
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class NTPConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public unowned Oobs.List get_servers ();
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class NTPServer : GLib.Object {
		public unowned string get_hostname ();
		[CCode (has_construct_function = false)]
		public NTPServer (string hostname);
		public void set_hostname (string hostname);
		public string hostname { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class Object : GLib.Object {
		public virtual void commit ();
		public Oobs.Result commit_async (Oobs.ObjectAsyncFunc func, void* data);
		public void ensure_update ();
		public virtual unowned string get_authentication_action ();
		public bool has_updated ();
		public void process_requests ();
		public virtual void update ();
		public Oobs.Result update_async (Oobs.ObjectAsyncFunc func, void* data);
		public string remote_object { construct; }
		public virtual signal void changed ();
		public virtual signal void committed ();
		public virtual signal void updated ();
	}
	[Compact]
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class Platform {
		public weak string codename;
		public weak string id;
		public weak string name;
		public weak string version;
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class SMBConfig : Oobs.Object {
		public void delete_user_password (Oobs.User user);
		public static unowned Oobs.Object get ();
		public unowned string get_description ();
		public bool get_is_wins_server ();
		public unowned Oobs.List get_shares ();
		public unowned string get_wins_server ();
		public unowned string get_workgroup ();
		public void set_description (string description);
		public void set_is_wins_server (bool is_wins_server);
		public void set_user_password (Oobs.User user, string password);
		public void set_wins_server (string wins_server);
		public void set_workgroup (string workgroup);
		public bool user_has_password (Oobs.User user);
		public string description { get; set; }
		public bool is_wins_server { get; set; }
		public string wins_server { get; set; }
		public string workgroup { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class SelfConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public unowned Oobs.User get_user ();
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class Service : GLib.Object {
		public unowned string get_name ();
		public void get_runlevel_configuration (Oobs.ServicesRunlevel runlevel, Oobs.ServiceStatus status, int priority);
		public void set_runlevel_configuration (Oobs.ServicesRunlevel runlevel, Oobs.ServiceStatus status, int priority);
		public string name { get; construct; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class ServicesConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public unowned Oobs.ServicesRunlevel get_default_runlevel ();
		public unowned GLib.List get_runlevels ();
		public unowned Oobs.List get_services ();
	}
	[Compact]
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class ServicesRunlevel {
		public weak string name;
		public uint role;
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class Session : GLib.Object {
		public Oobs.Result commit ();
		public static unowned Oobs.Session get ();
		public unowned string get_authentication_action ();
		public bool get_connected ();
		public Oobs.Result get_platform (string platform);
		public Oobs.Result get_supported_platforms (GLib.List platforms);
		public void process_requests ();
		public Oobs.Result set_platform (string platform);
		public string platform { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class Share : GLib.Object {
		public unowned string get_path ();
		public void set_path (string path);
		public string path { get; set; }
	}
	[Compact]
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class ShareAclElement {
		public weak string element;
		public bool read_only;
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class ShareNFS : Oobs.Share {
		public void add_acl_element (string element, bool read_only);
		public unowned GLib.SList get_acl ();
		[CCode (type = "OobsShare*", has_construct_function = false)]
		public ShareNFS (string path);
		public void set_acl (GLib.SList acl);
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class ShareSMB : Oobs.Share {
		public unowned string get_comment ();
		public Oobs.ShareSMBFlags get_flags ();
		public unowned string get_name ();
		[CCode (type = "OobsShare*", has_construct_function = false)]
		public ShareSMB (string path, string name, string comment, Oobs.ShareSMBFlags flags);
		public void set_comment (string comment);
		public void set_flags (Oobs.ShareSMBFlags flags);
		public void set_name (string name);
		public string comment { get; set construct; }
		public Oobs.ShareSMBFlags flags { get; set construct; }
		public string name { get; set construct; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class StaticHost : GLib.Object {
		public unowned GLib.List get_aliases ();
		public unowned string get_ip_address ();
		[CCode (has_construct_function = false)]
		public StaticHost (string ip_address, GLib.List aliases);
		public void set_aliases (GLib.List aliases);
		public void set_ip_address (string ip_address);
		public string ip_address { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class TimeConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public void get_time (int year, int month, int day, int hour, int minute, int second);
		public unowned string get_timezone ();
		public long get_unix_time ();
		public void get_utc_time (int year, int month, int day, int hour, int minute, int second);
		public void set_time (int year, int month, int day, int hour, int minute, int second);
		public void set_timezone (string timezone);
		public void set_unix_time (long unix_time);
		public void set_utc_time (int year, int month, int day, int hour, int minute, int second);
		public string timezone { get; set; }
		public long unix_time { get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class User : GLib.Object {
		public bool get_active ();
		public unowned string get_full_name ();
		public unowned string get_home_directory ();
		public unowned string get_home_phone_number ();
		public unowned string get_login_name ();
		public unowned Oobs.Group get_main_group ();
		public unowned string get_other_data ();
		public unowned string get_room_number ();
		public unowned string get_shell ();
		public long get_uid ();
		public unowned string get_work_phone_number ();
		[CCode (has_construct_function = false)]
		public User (string name);
		public void set_crypted_password (string crypted_password);
		public void set_full_name (string full_name);
		public void set_home_directory (string home_directory);
		public void set_home_phone_number (string phone_number);
		public void set_main_group (Oobs.Group main_group);
		public void set_other_data (string data);
		public void set_password (string password);
		public void set_room_number (string room_number);
		public void set_shell (string shell);
		public void set_uid (long uid);
		public void set_work_phone_number (string phone_number);
		public bool active { get; }
		[NoAccessorMethod]
		public string crypted_password { owned get; set; }
		public string full_name { get; set; }
		public string home_directory { get; set; }
		[NoAccessorMethod]
		public string home_phone { owned get; set; }
		[NoAccessorMethod]
		public string name { owned get; construct; }
		public string other_data { get; set; }
		public string password { set; }
		public string room_number { get; set; }
		public string shell { get; set; }
		public int uid { get; set; }
		[NoAccessorMethod]
		public string work_phone { owned get; set; }
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public class UsersConfig : Oobs.Object {
		public static unowned Oobs.Object get ();
		public unowned GLib.List get_available_shells ();
		public unowned Oobs.Group get_default_group ();
		public unowned string get_default_home_dir ();
		public unowned string get_default_shell ();
		public long get_maximum_users_uid ();
		public long get_minimum_users_uid ();
		public unowned Oobs.List get_users ();
		public void set_default_home_dir (string home_dir);
		public void set_default_shell (string shell);
		public void set_maximum_users_uid (long uid);
		public void set_minimum_users_uid (long uid);
		public Oobs.Group default_group { get; }
		[NoAccessorMethod]
		public string default_home { owned get; set; }
		public string default_shell { get; set; }
		[NoAccessorMethod]
		public int maximum_uid { get; set; }
		[NoAccessorMethod]
		public int minimum_uid { get; set; }
		[NoAccessorMethod]
		public bool use_md5 { get; }
	}
	[CCode (cprefix = "OOBS_DIAL_TYPE_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
	public enum DialType {
		TONES,
		PULSES
	}
	[CCode (cprefix = "OOBS_IFACE_TYPE_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
	public enum IfaceType {
		ETHERNET,
		WIRELESS,
		IRLAN,
		PLIP,
		PPP
	}
	[CCode (cprefix = "OOBS_MODEM_VOLUME_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
	public enum ModemVolume {
		SILENT,
		LOW,
		MEDIUM,
		LOUD
	}
	[CCode (cprefix = "OOBS_RESULT_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
	public enum Result {
		OK,
		ACCESS_DENIED,
		NO_PLATFORM,
		MALFORMED_DATA,
		ERROR
	}
	[CCode (cprefix = "OOBS_RUNLEVEL_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
	public enum RunlevelRole {
		HALT,
		REBOOT,
		MONOUSER,
		MULTIUSER
	}
	[CCode (cprefix = "OOBS_SERVICE_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
	public enum ServiceStatus {
		START,
		STOP,
		IGNORE
	}
	[CCode (cprefix = "OOBS_SHARE_SMB_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
	[Flags]
	public enum ShareSMBFlags {
		ENABLED,
		BROWSABLE,
		PUBLIC,
		WRITABLE
	}
	[CCode (cheader_filename = "oobs/oobs.h")]
	public delegate void ObjectAsyncFunc (Oobs.Object object, Oobs.Result result);
}