1 /* liboobs-1.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Oobs", lower_case_cprefix = "oobs_")]
5 [CCode (cheader_filename = "oobs/oobs.h")]
6 public class Group : Oobs.Object {
7 [CCode (has_construct_function = false)]
8 public Group (string name);
9 public void add_user (Oobs.User user);
10 public void clear_users ();
11 public long get_gid ();
12 public unowned string get_name ();
13 public unowned GLib.List get_users ();
14 public bool is_root ();
15 public void remove_user (Oobs.User user);
16 public void set_gid (long gid);
17 public void set_password (string password);
18 public uint gid { get; set; }
19 public string name { get; construct; }
21 public string password { owned get; set; }
23 [CCode (cheader_filename = "oobs/oobs.h")]
24 public class GroupsConfig : Oobs.Object {
25 [CCode (has_construct_function = false)]
26 protected GroupsConfig ();
27 public Oobs.Result add_group (Oobs.Group group);
28 public Oobs.Result delete_group (Oobs.Group group);
29 public long find_free_gid (long gid_min, long gid_max);
30 public static unowned Oobs.Object @get ();
31 public unowned Oobs.Group get_from_gid (long gid);
32 public unowned Oobs.Group get_from_name (string name);
33 public unowned Oobs.List get_groups ();
34 public bool is_gid_used (long gid);
35 public bool is_name_used (string name);
37 public int maximum_gid { get; set; }
39 public int minimum_gid { get; set; }
41 [CCode (cheader_filename = "oobs/oobs.h")]
42 public class HostsConfig : Oobs.Object {
43 [CCode (has_construct_function = false)]
44 protected HostsConfig ();
45 public static unowned Oobs.Object @get ();
46 public unowned GLib.List get_dns_servers ();
47 public unowned string get_domainname ();
48 public unowned string get_hostname ();
49 public unowned GLib.List get_search_domains ();
50 public unowned Oobs.List get_static_hosts ();
51 public void set_dns_servers (GLib.List dns_list);
52 public void set_domainname (string domainname);
53 public void set_hostname (string hostname);
54 public void set_search_domains (GLib.List search_domains_list);
56 [CCode (cheader_filename = "oobs/oobs.h")]
57 public class Iface : GLib.Object {
58 [CCode (has_construct_function = false)]
60 public bool get_active ();
61 public bool get_auto ();
62 public bool get_configured ();
63 public unowned string get_device_name ();
64 public virtual bool has_gateway ();
66 public virtual bool is_configured ();
67 public void set_active (bool is_active);
68 public void set_auto (bool is_auto);
69 public void set_configured (bool is_configured);
70 public bool active { get; set; }
71 public bool auto { get; set; }
72 public bool configured { get; set; }
74 public string device { owned get; construct; }
75 public virtual signal void state_changed ();
77 [CCode (cheader_filename = "oobs/oobs.h")]
78 public class IfaceEthernet : Oobs.Iface {
79 [CCode (has_construct_function = false)]
80 protected IfaceEthernet ();
81 public unowned string get_broadcast_address ();
82 public unowned string get_configuration_method ();
83 public unowned string get_gateway_address ();
84 public unowned string get_ip_address ();
85 public unowned string get_network_address ();
86 public unowned string get_network_mask ();
87 public void set_broadcast_address (string address);
88 public void set_configuration_method (string method);
89 public void set_gateway_address (string address);
90 public void set_ip_address (string address);
91 public void set_network_address (string address);
92 public void set_network_mask (string mask);
93 public string broadcast_address { get; set; }
95 public string config_method { owned get; set; }
96 public string gateway_address { get; set; }
97 public string ip_address { get; set; }
99 public string ip_mask { owned get; set; }
100 public string network_address { get; set; }
102 [CCode (cheader_filename = "oobs/oobs.h")]
103 public class IfaceIRLan : Oobs.IfaceEthernet {
104 [CCode (has_construct_function = false)]
105 protected IfaceIRLan ();
107 [CCode (cheader_filename = "oobs/oobs.h")]
108 public class IfacePPP : Oobs.Iface {
109 [CCode (has_construct_function = false)]
110 protected IfacePPP ();
111 public unowned string get_apn ();
112 public unowned string get_connection_type ();
113 public bool get_default_gateway ();
114 public Oobs.DialType get_dial_type ();
115 public unowned Oobs.IfaceEthernet get_ethernet ();
116 public unowned string get_login ();
117 public bool get_peer_noauth ();
118 public bool get_persistent ();
119 public unowned string get_phone_number ();
120 public unowned string get_phone_prefix ();
121 public unowned string get_serial_port ();
122 public bool get_use_peer_dns ();
123 public Oobs.ModemVolume get_volume ();
124 public void set_apn (string apn);
125 public void set_connection_type (string type);
126 public void set_default_gateway (bool default_gw);
127 public void set_dial_type (Oobs.DialType dial_type);
128 public void set_ethernet (Oobs.IfaceEthernet ethernet);
129 public void set_login (string login);
130 public void set_password (string password);
131 public void set_peer_noauth (bool use_peer_dns);
132 public void set_persistent (bool persistent);
133 public void set_phone_number (string phone_number);
134 public void set_phone_prefix (string phone_prefix);
135 public void set_serial_port (string serial_port);
136 public void set_use_peer_dns (bool use_peer_dns);
137 public void set_volume (Oobs.ModemVolume volume);
138 public string apn { get; set; }
139 public string connection_type { get; set; }
140 public bool default_gateway { get; set; }
141 public Oobs.DialType dial_type { get; set; }
142 public Oobs.IfaceEthernet ethernet { get; set; }
144 public string iface_section { owned get; set; }
145 public string login { get; set; }
147 public string password { owned get; set; }
148 public bool peer_noauth { get; set; }
149 public bool persistent { get; set; }
150 public string phone_number { get; set; }
151 public string phone_prefix { get; set; }
152 public string serial_port { get; set; }
153 public bool use_peer_dns { get; set; }
154 public Oobs.ModemVolume volume { get; set; }
156 [CCode (cheader_filename = "oobs/oobs.h")]
157 public class IfacePlip : Oobs.Iface {
158 [CCode (has_construct_function = false)]
159 protected IfacePlip ();
160 public unowned string get_address ();
161 public unowned string get_remote_address ();
162 public void set_address (string address);
163 public void set_remote_address (string address);
164 public string address { get; set; }
165 public string remote_address { get; set; }
167 [CCode (cheader_filename = "oobs/oobs.h")]
168 public class IfaceWireless : Oobs.IfaceEthernet {
169 [CCode (has_construct_function = false)]
170 protected IfaceWireless ();
171 public unowned string get_essid ();
172 public unowned string get_key ();
173 public unowned string get_key_type ();
174 public void set_essid (string essid);
175 public void set_key (string key);
176 public void set_key_type (string key_type);
177 public string essid { get; set; }
178 public string key { get; set; }
179 public string key_type { get; set; }
181 [CCode (cheader_filename = "oobs/oobs.h")]
182 public class IfacesConfig : Oobs.Object {
183 [CCode (has_construct_function = false)]
184 protected IfacesConfig ();
185 public static unowned Oobs.Object @get ();
186 public unowned GLib.List get_available_configuration_methods ();
187 public unowned GLib.List get_available_key_types ();
188 public unowned GLib.List get_available_ppp_types ();
189 public unowned Oobs.List get_ifaces (Oobs.IfaceType type);
191 [CCode (cheader_filename = "oobs/oobs.h")]
192 public class List : GLib.Object {
193 [CCode (has_construct_function = false)]
195 public void append (Oobs.ListIter iter);
196 public void clear ();
197 public unowned GLib.Object @get (Oobs.ListIter iter);
198 public bool get_iter_first (Oobs.ListIter iter);
199 public int get_n_items ();
200 public void insert_after (Oobs.ListIter anchor, Oobs.ListIter iter);
201 public void insert_before (Oobs.ListIter anchor, Oobs.ListIter iter);
202 public void prepend (Oobs.ListIter iter);
203 public bool remove (Oobs.ListIter iter);
204 public void @set (Oobs.ListIter iter, void* data);
205 public void* contained_type { construct; }
208 [CCode (copy_function = "oobs_list_iter_copy", type_id = "OOBS_TYPE_LIST_ITER", cheader_filename = "oobs/oobs.h")]
209 public class ListIter {
212 public Oobs.ListIter copy ();
213 public static bool next (Oobs.List list, Oobs.ListIter iter);
215 [CCode (cheader_filename = "oobs/oobs.h")]
216 public class NFSConfig : Oobs.Object {
217 [CCode (has_construct_function = false)]
218 protected NFSConfig ();
219 public static unowned Oobs.Object @get ();
220 public unowned Oobs.List get_shares ();
222 [CCode (cheader_filename = "oobs/oobs.h")]
223 public class NTPConfig : Oobs.Object {
224 [CCode (has_construct_function = false)]
225 protected NTPConfig ();
226 public static unowned Oobs.Object @get ();
227 public unowned Oobs.List get_servers ();
229 [CCode (cheader_filename = "oobs/oobs.h")]
230 public class NTPServer : GLib.Object {
231 [CCode (has_construct_function = false)]
232 public NTPServer (string hostname);
233 public unowned string get_hostname ();
234 public void set_hostname (string hostname);
235 public string hostname { get; set; }
237 [CCode (cheader_filename = "oobs/oobs.h")]
238 public class Object : GLib.Object {
239 [CCode (has_construct_function = false)]
241 public Oobs.Result add ();
242 public Oobs.Result add_async (Oobs.ObjectAsyncFunc func, void* data);
243 public bool authenticate () throws GLib.Error;
244 public virtual void commit ();
245 public Oobs.Result commit_async (Oobs.ObjectAsyncFunc func, void* data);
246 public Oobs.Result @delete ();
247 public Oobs.Result delete_async (Oobs.ObjectAsyncFunc func, void* data);
248 public void ensure_update ();
250 public virtual void get_update_message ();
251 public bool has_updated ();
252 public void process_requests ();
253 public virtual void update ();
254 public Oobs.Result update_async (Oobs.ObjectAsyncFunc func, void* data);
255 public string remote_object { construct; }
256 public virtual signal void changed ();
257 public virtual signal void committed ();
258 public virtual signal void updated ();
261 [CCode (cheader_filename = "oobs/oobs.h")]
262 public class Platform {
263 public weak string codename;
264 public weak string id;
265 public weak string name;
266 public weak string version;
268 [CCode (cheader_filename = "oobs/oobs.h")]
269 public class SMBConfig : Oobs.Object {
270 [CCode (has_construct_function = false)]
271 protected SMBConfig ();
272 public void delete_user_password (Oobs.User user);
273 public static unowned Oobs.Object @get ();
274 public unowned string get_description ();
275 public bool get_is_wins_server ();
276 public unowned Oobs.List get_shares ();
277 public unowned string get_wins_server ();
278 public unowned string get_workgroup ();
279 public void set_description (string description);
280 public void set_is_wins_server (bool is_wins_server);
281 public void set_user_password (Oobs.User user, string password);
282 public void set_wins_server (string wins_server);
283 public void set_workgroup (string workgroup);
284 public bool user_has_password (Oobs.User user);
285 public string description { get; set; }
286 public bool is_wins_server { get; set; }
287 public string wins_server { get; set; }
288 public string workgroup { get; set; }
290 [CCode (cheader_filename = "oobs/oobs.h")]
291 public class SelfConfig : Oobs.Object {
292 [CCode (has_construct_function = false)]
293 protected SelfConfig ();
294 public static unowned Oobs.Object @get ();
295 public unowned Oobs.User get_user ();
296 public bool is_user_self (Oobs.User user);
298 [CCode (cheader_filename = "oobs/oobs.h")]
299 public class Service : Oobs.Object {
300 [CCode (has_construct_function = false)]
301 protected Service ();
302 public unowned string get_name ();
303 public void get_runlevel_configuration (Oobs.ServicesRunlevel runlevel, Oobs.ServiceStatus status, int priority);
304 public void set_runlevel_configuration (Oobs.ServicesRunlevel runlevel, Oobs.ServiceStatus status, int priority);
305 public string name { get; construct; }
307 [CCode (cheader_filename = "oobs/oobs.h")]
308 public class ServicesConfig : Oobs.Object {
309 [CCode (has_construct_function = false)]
310 protected ServicesConfig ();
311 public static unowned Oobs.Object @get ();
312 public unowned Oobs.ServicesRunlevel get_default_runlevel ();
313 public unowned GLib.List get_runlevels ();
314 public unowned Oobs.List get_services ();
317 [CCode (cheader_filename = "oobs/oobs.h")]
318 public class ServicesRunlevel {
319 public weak string name;
322 [CCode (cheader_filename = "oobs/oobs.h")]
323 public class Session : GLib.Object {
324 [CCode (has_construct_function = false)]
325 protected Session ();
326 public Oobs.Result commit ();
327 public static unowned Oobs.Session @get ();
328 public unowned string get_authentication_action ();
329 public bool get_connected ();
330 public Oobs.Result get_platform (string platform);
331 public Oobs.Result get_supported_platforms (GLib.List platforms);
332 public void process_requests ();
333 public Oobs.Result set_platform (string platform);
334 public string platform { get; set; }
336 [CCode (cheader_filename = "oobs/oobs.h")]
337 public class Share : GLib.Object {
338 [CCode (has_construct_function = false)]
340 public unowned string get_path ();
341 public void set_path (string path);
342 public string path { get; set; }
345 [CCode (cheader_filename = "oobs/oobs.h")]
346 public class ShareAclElement {
347 public weak string element;
348 public bool read_only;
350 [CCode (cheader_filename = "oobs/oobs.h")]
351 public class ShareNFS : Oobs.Share {
352 [CCode (type = "OobsShare*", has_construct_function = false)]
353 public ShareNFS (string path);
354 public void add_acl_element (string element, bool read_only);
355 public unowned GLib.SList get_acl ();
356 public void set_acl (GLib.SList acl);
358 [CCode (cheader_filename = "oobs/oobs.h")]
359 public class ShareSMB : Oobs.Share {
360 [CCode (type = "OobsShare*", has_construct_function = false)]
361 public ShareSMB (string path, string name, string comment, Oobs.ShareSMBFlags flags);
362 public unowned string get_comment ();
363 public Oobs.ShareSMBFlags get_flags ();
364 public unowned string get_name ();
365 public void set_comment (string comment);
366 public void set_flags (Oobs.ShareSMBFlags flags);
367 public void set_name (string name);
368 public string comment { get; set construct; }
369 public Oobs.ShareSMBFlags flags { get; set construct; }
370 public string name { get; set construct; }
372 [CCode (cheader_filename = "oobs/oobs.h")]
373 public class StaticHost : GLib.Object {
374 [CCode (has_construct_function = false)]
375 public StaticHost (string ip_address, GLib.List aliases);
376 public unowned GLib.List get_aliases ();
377 public unowned string get_ip_address ();
378 public void set_aliases (GLib.List aliases);
379 public void set_ip_address (string ip_address);
380 public string ip_address { get; set; }
382 [CCode (cheader_filename = "oobs/oobs.h")]
383 public class TimeConfig : Oobs.Object {
384 [CCode (has_construct_function = false)]
385 protected TimeConfig ();
386 public static unowned Oobs.Object @get ();
387 public void get_time (int year, int month, int day, int hour, int minute, int second);
388 public unowned string get_timezone ();
389 public long get_unix_time ();
390 public void get_utc_time (int year, int month, int day, int hour, int minute, int second);
391 public void set_time (int year, int month, int day, int hour, int minute, int second);
392 public void set_timezone (string timezone);
393 public void set_unix_time (long unix_time);
394 public void set_utc_time (int year, int month, int day, int hour, int minute, int second);
395 public string timezone { get; set; }
396 public long unix_time { get; set; }
398 [CCode (cheader_filename = "oobs/oobs.h")]
399 public class User : Oobs.Object {
400 [CCode (has_construct_function = false)]
401 public User (string name);
402 public bool get_active ();
403 public bool get_encrypted_home ();
404 public unowned string get_full_name ();
405 public unowned string get_home_directory ();
406 public unowned string get_home_phone_number ();
407 public unowned string get_locale ();
408 public unowned string get_login_name ();
409 public unowned Oobs.Group get_main_group ();
410 public unowned string get_other_data ();
411 public bool get_password_disabled ();
412 public bool get_password_empty ();
413 public unowned string get_room_number ();
414 public unowned string get_shell ();
415 public long get_uid ();
416 public unowned string get_work_phone_number ();
417 public bool is_in_group (Oobs.Group group);
418 public bool is_root ();
419 public void set_encrypted_home (bool encrypted_home);
420 public void set_full_name (string full_name);
421 public void set_home_directory (string home_directory);
422 public void set_home_flags (Oobs.UserHomeFlags home_flags);
423 public void set_home_phone_number (string phone_number);
424 public void set_locale (string locale);
425 public void set_main_group (Oobs.Group main_group);
426 public void set_other_data (string data);
427 public void set_password (string password);
428 public void set_password_disabled (bool disabled);
429 public void set_password_empty (bool empty);
430 public void set_room_number (string room_number);
431 public void set_shell (string shell);
432 public void set_uid (long uid);
433 public void set_work_phone_number (string phone_number);
434 public bool active { get; }
435 public bool encrypted_home { get; set; }
436 public string full_name { get; set; }
437 public string home_directory { get; set; }
439 public Oobs.UserHomeFlags home_flags { get; set; }
441 public string home_phone { owned get; set; }
442 public string locale { get; set; }
444 public string name { owned get; construct; }
445 public string other_data { get; set; }
447 public string password { owned get; set; }
448 public bool password_disabled { get; set; }
449 public bool password_empty { get; set; }
450 public string room_number { get; set; }
451 public string shell { get; set; }
452 public uint uid { get; set; }
454 public string work_phone { owned get; set; }
456 [CCode (cheader_filename = "oobs/oobs.h")]
457 public class UsersConfig : Oobs.Object {
458 [CCode (has_construct_function = false)]
459 protected UsersConfig ();
460 public Oobs.Result add_user (Oobs.User user);
461 public Oobs.Result delete_user (Oobs.User user);
462 public long find_free_uid (long uid_min, long uid_max);
463 public static unowned Oobs.Object @get ();
464 public unowned GLib.List get_available_locales ();
465 public unowned GLib.List get_available_shells ();
466 public unowned Oobs.Group get_default_group ();
467 public unowned string get_default_home_dir ();
468 public unowned string get_default_shell ();
469 public bool get_encrypted_home_support ();
470 public unowned Oobs.User get_from_login (string login);
471 public unowned Oobs.User get_from_uid (long uid);
472 public long get_maximum_users_uid ();
473 public long get_minimum_users_uid ();
474 public unowned Oobs.List get_users ();
475 public bool is_login_used (string login);
476 public bool is_uid_used (long uid);
477 public void set_default_home_dir (string home_dir);
478 public void set_default_shell (string shell);
479 public void set_maximum_users_uid (long uid);
480 public void set_minimum_users_uid (long uid);
481 public Oobs.Group default_group { get; }
483 public string default_home { owned get; set; }
484 public string default_shell { get; set; }
486 public bool encrypted_home { get; }
488 public uint maximum_uid { get; set; }
490 public uint minimum_uid { get; set; }
492 [CCode (cprefix = "OOBS_DIAL_TYPE_", cheader_filename = "oobs/oobs.h")]
493 public enum DialType {
497 [CCode (cprefix = "OOBS_ERROR_AUTHENTICATION_", cheader_filename = "oobs/oobs.h")]
502 [CCode (cprefix = "OOBS_IFACE_TYPE_", cheader_filename = "oobs/oobs.h")]
503 public enum IfaceType {
510 [CCode (cprefix = "OOBS_MODEM_VOLUME_", cheader_filename = "oobs/oobs.h")]
511 public enum ModemVolume {
517 [CCode (cprefix = "OOBS_RESULT_", cheader_filename = "oobs/oobs.h")]
525 [CCode (cprefix = "OOBS_RUNLEVEL_", cheader_filename = "oobs/oobs.h")]
526 public enum RunlevelRole {
532 [CCode (cprefix = "OOBS_SERVICE_", cheader_filename = "oobs/oobs.h")]
533 public enum ServiceStatus {
538 [CCode (cprefix = "OOBS_SHARE_SMB_", cheader_filename = "oobs/oobs.h")]
540 public enum ShareSMBFlags {
546 [CCode (cprefix = "OOBS_USER_", cheader_filename = "oobs/oobs.h")]
548 public enum UserHomeFlags {
552 [CCode (cheader_filename = "oobs/oobs.h")]
553 public delegate void ObjectAsyncFunc (Oobs.Object object, Oobs.Result result);
554 [CCode (cheader_filename = "oobs/oobs.h")]
555 public static GLib.Quark error_quark ();