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 : GLib.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 void remove_user (Oobs.User user);
15 public void set_crypted_password (string crypted_password);
16 public void set_gid (long gid);
17 public void set_password (string password);
19 public string crypted_password { owned get; set; }
20 public int gid { get; set; }
21 public string name { get; construct; }
22 public string password { set; }
24 [CCode (cheader_filename = "oobs/oobs.h")]
25 public class GroupsConfig : Oobs.Object {
26 public static unowned Oobs.Object @get ();
27 public unowned Oobs.List get_groups ();
29 public int maximum_gid { get; set; }
31 public int minimum_gid { get; set; }
33 [CCode (cheader_filename = "oobs/oobs.h")]
34 public class HostsConfig : Oobs.Object {
35 public static unowned Oobs.Object @get ();
36 public unowned GLib.List get_dns_servers ();
37 public unowned string get_domainname ();
38 public unowned string get_hostname ();
39 public unowned GLib.List get_search_domains ();
40 public unowned Oobs.List get_static_hosts ();
41 public void set_dns_servers (GLib.List dns_list);
42 public void set_domainname (string domainname);
43 public void set_hostname (string hostname);
44 public void set_search_domains (GLib.List search_domains_list);
46 [CCode (cheader_filename = "oobs/oobs.h")]
47 public class Iface : GLib.Object {
48 public bool get_active ();
49 public bool get_auto ();
50 public bool get_configured ();
51 public unowned string get_device_name ();
52 public virtual bool has_gateway ();
54 public virtual bool is_configured ();
55 public void set_active (bool is_active);
56 public void set_auto (bool is_auto);
57 public void set_configured (bool is_configured);
58 public bool active { get; set; }
59 public bool auto { get; set; }
60 public bool configured { get; set; }
62 public string device { owned get; construct; }
63 public virtual signal void state_changed ();
65 [CCode (cheader_filename = "oobs/oobs.h")]
66 public class IfaceEthernet : Oobs.Iface {
67 public unowned string get_broadcast_address ();
68 public unowned string get_configuration_method ();
69 public unowned string get_gateway_address ();
70 public unowned string get_ip_address ();
71 public unowned string get_network_address ();
72 public unowned string get_network_mask ();
73 public void set_broadcast_address (string address);
74 public void set_configuration_method (string method);
75 public void set_gateway_address (string address);
76 public void set_ip_address (string address);
77 public void set_network_address (string address);
78 public void set_network_mask (string mask);
79 public string broadcast_address { get; set; }
81 public string config_method { owned get; set; }
82 public string gateway_address { get; set; }
83 public string ip_address { get; set; }
85 public string ip_mask { owned get; set; }
86 public string network_address { get; set; }
88 [CCode (cheader_filename = "oobs/oobs.h")]
89 public class IfaceIRLan : Oobs.IfaceEthernet {
91 [CCode (cheader_filename = "oobs/oobs.h")]
92 public class IfacePPP : Oobs.Iface {
93 public unowned string get_apn ();
94 public unowned string get_connection_type ();
95 public bool get_default_gateway ();
96 public Oobs.DialType get_dial_type ();
97 public unowned Oobs.IfaceEthernet get_ethernet ();
98 public unowned string get_login ();
99 public bool get_peer_noauth ();
100 public bool get_persistent ();
101 public unowned string get_phone_number ();
102 public unowned string get_phone_prefix ();
103 public unowned string get_serial_port ();
104 public bool get_use_peer_dns ();
105 public Oobs.ModemVolume get_volume ();
106 public void set_apn (string apn);
107 public void set_connection_type (string type);
108 public void set_default_gateway (bool default_gw);
109 public void set_dial_type (Oobs.DialType dial_type);
110 public void set_ethernet (Oobs.IfaceEthernet ethernet);
111 public void set_login (string login);
112 public void set_password (string password);
113 public void set_peer_noauth (bool use_peer_dns);
114 public void set_persistent (bool persistent);
115 public void set_phone_number (string phone_number);
116 public void set_phone_prefix (string phone_prefix);
117 public void set_serial_port (string serial_port);
118 public void set_use_peer_dns (bool use_peer_dns);
119 public void set_volume (Oobs.ModemVolume volume);
120 public string apn { get; set; }
121 public string connection_type { get; set; }
122 public bool default_gateway { get; set; }
123 public Oobs.DialType dial_type { get; set; }
124 public Oobs.IfaceEthernet ethernet { get; set; }
126 public string iface_section { owned get; set; }
127 public string login { get; set; }
129 public string password { owned get; set; }
130 public bool peer_noauth { get; set; }
131 public bool persistent { get; set; }
132 public string phone_number { get; set; }
133 public string phone_prefix { get; set; }
134 public string serial_port { get; set; }
135 public bool use_peer_dns { get; set; }
136 public Oobs.ModemVolume volume { get; set; }
138 [CCode (cheader_filename = "oobs/oobs.h")]
139 public class IfacePlip : Oobs.Iface {
140 public unowned string get_address ();
141 public unowned string get_remote_address ();
142 public void set_address (string address);
143 public void set_remote_address (string address);
144 public string address { get; set; }
145 public string remote_address { get; set; }
147 [CCode (cheader_filename = "oobs/oobs.h")]
148 public class IfaceWireless : Oobs.IfaceEthernet {
149 public unowned string get_essid ();
150 public unowned string get_key ();
151 public unowned string get_key_type ();
152 public void set_essid (string essid);
153 public void set_key (string key);
154 public void set_key_type (string key_type);
155 public string essid { get; set; }
156 public string key { get; set; }
157 public string key_type { get; set; }
159 [CCode (cheader_filename = "oobs/oobs.h")]
160 public class IfacesConfig : Oobs.Object {
161 public static unowned Oobs.Object @get ();
162 public unowned GLib.List get_available_configuration_methods ();
163 public unowned GLib.List get_available_key_types ();
164 public unowned GLib.List get_available_ppp_types ();
165 public unowned Oobs.List get_ifaces (Oobs.IfaceType type);
167 [CCode (cheader_filename = "oobs/oobs.h")]
168 public class List : GLib.Object {
169 public void append (Oobs.ListIter iter);
170 public void clear ();
171 public unowned GLib.Object @get (Oobs.ListIter iter);
172 public bool get_iter_first (Oobs.ListIter iter);
173 public int get_n_items ();
174 public void insert_after (Oobs.ListIter anchor, Oobs.ListIter iter);
175 public void insert_before (Oobs.ListIter anchor, Oobs.ListIter iter);
176 public void prepend (Oobs.ListIter iter);
177 public bool remove (Oobs.ListIter iter);
178 public void @set (Oobs.ListIter iter, void* data);
179 public void* contained_type { construct; }
182 [CCode (copy_function = "oobs_list_iter_copy", type_id = "OOBS_TYPE_LIST_ITER", cheader_filename = "oobs/oobs.h")]
183 public class ListIter {
186 public Oobs.ListIter copy ();
187 public static bool next (Oobs.List list, Oobs.ListIter iter);
189 [CCode (cheader_filename = "oobs/oobs.h")]
190 public class NFSConfig : Oobs.Object {
191 public static unowned Oobs.Object @get ();
192 public unowned Oobs.List get_shares ();
194 [CCode (cheader_filename = "oobs/oobs.h")]
195 public class NTPConfig : Oobs.Object {
196 public static unowned Oobs.Object @get ();
197 public unowned Oobs.List get_servers ();
199 [CCode (cheader_filename = "oobs/oobs.h")]
200 public class NTPServer : GLib.Object {
201 [CCode (has_construct_function = false)]
202 public NTPServer (string hostname);
203 public unowned string get_hostname ();
204 public void set_hostname (string hostname);
205 public string hostname { get; set; }
207 [CCode (cheader_filename = "oobs/oobs.h")]
208 public class Object : GLib.Object {
209 public virtual void commit ();
210 public Oobs.Result commit_async (Oobs.ObjectAsyncFunc func, void* data);
211 public void ensure_update ();
212 public virtual unowned string get_authentication_action ();
213 public bool has_updated ();
214 public void process_requests ();
215 public virtual void update ();
216 public Oobs.Result update_async (Oobs.ObjectAsyncFunc func, void* data);
217 public string remote_object { construct; }
218 public virtual signal void changed ();
219 public virtual signal void committed ();
220 public virtual signal void updated ();
223 [CCode (cheader_filename = "oobs/oobs.h")]
224 public class Platform {
225 public weak string codename;
226 public weak string id;
227 public weak string name;
228 public weak string version;
230 [CCode (cheader_filename = "oobs/oobs.h")]
231 public class SMBConfig : Oobs.Object {
232 public void delete_user_password (Oobs.User user);
233 public static unowned Oobs.Object @get ();
234 public unowned string get_description ();
235 public bool get_is_wins_server ();
236 public unowned Oobs.List get_shares ();
237 public unowned string get_wins_server ();
238 public unowned string get_workgroup ();
239 public void set_description (string description);
240 public void set_is_wins_server (bool is_wins_server);
241 public void set_user_password (Oobs.User user, string password);
242 public void set_wins_server (string wins_server);
243 public void set_workgroup (string workgroup);
244 public bool user_has_password (Oobs.User user);
245 public string description { get; set; }
246 public bool is_wins_server { get; set; }
247 public string wins_server { get; set; }
248 public string workgroup { get; set; }
250 [CCode (cheader_filename = "oobs/oobs.h")]
251 public class SelfConfig : Oobs.Object {
252 public static unowned Oobs.Object @get ();
253 public unowned Oobs.User get_user ();
255 [CCode (cheader_filename = "oobs/oobs.h")]
256 public class Service : GLib.Object {
257 public unowned string get_name ();
258 public void get_runlevel_configuration (Oobs.ServicesRunlevel runlevel, Oobs.ServiceStatus status, int priority);
259 public void set_runlevel_configuration (Oobs.ServicesRunlevel runlevel, Oobs.ServiceStatus status, int priority);
260 public string name { get; construct; }
262 [CCode (cheader_filename = "oobs/oobs.h")]
263 public class ServicesConfig : Oobs.Object {
264 public static unowned Oobs.Object @get ();
265 public unowned Oobs.ServicesRunlevel get_default_runlevel ();
266 public unowned GLib.List get_runlevels ();
267 public unowned Oobs.List get_services ();
270 [CCode (cheader_filename = "oobs/oobs.h")]
271 public class ServicesRunlevel {
272 public weak string name;
275 [CCode (cheader_filename = "oobs/oobs.h")]
276 public class Session : GLib.Object {
277 public Oobs.Result commit ();
278 public static unowned Oobs.Session @get ();
279 public unowned string get_authentication_action ();
280 public bool get_connected ();
281 public Oobs.Result get_platform (string platform);
282 public Oobs.Result get_supported_platforms (GLib.List platforms);
283 public void process_requests ();
284 public Oobs.Result set_platform (string platform);
285 public string platform { get; set; }
287 [CCode (cheader_filename = "oobs/oobs.h")]
288 public class Share : GLib.Object {
289 public unowned string get_path ();
290 public void set_path (string path);
291 public string path { get; set; }
294 [CCode (cheader_filename = "oobs/oobs.h")]
295 public class ShareAclElement {
296 public weak string element;
297 public bool read_only;
299 [CCode (cheader_filename = "oobs/oobs.h")]
300 public class ShareNFS : Oobs.Share {
301 [CCode (type = "OobsShare*", has_construct_function = false)]
302 public ShareNFS (string path);
303 public void add_acl_element (string element, bool read_only);
304 public unowned GLib.SList get_acl ();
305 public void set_acl (GLib.SList acl);
307 [CCode (cheader_filename = "oobs/oobs.h")]
308 public class ShareSMB : Oobs.Share {
309 [CCode (type = "OobsShare*", has_construct_function = false)]
310 public ShareSMB (string path, string name, string comment, Oobs.ShareSMBFlags flags);
311 public unowned string get_comment ();
312 public Oobs.ShareSMBFlags get_flags ();
313 public unowned string get_name ();
314 public void set_comment (string comment);
315 public void set_flags (Oobs.ShareSMBFlags flags);
316 public void set_name (string name);
317 public string comment { get; set construct; }
318 public Oobs.ShareSMBFlags flags { get; set construct; }
319 public string name { get; set construct; }
321 [CCode (cheader_filename = "oobs/oobs.h")]
322 public class StaticHost : GLib.Object {
323 [CCode (has_construct_function = false)]
324 public StaticHost (string ip_address, GLib.List aliases);
325 public unowned GLib.List get_aliases ();
326 public unowned string get_ip_address ();
327 public void set_aliases (GLib.List aliases);
328 public void set_ip_address (string ip_address);
329 public string ip_address { get; set; }
331 [CCode (cheader_filename = "oobs/oobs.h")]
332 public class TimeConfig : Oobs.Object {
333 public static unowned Oobs.Object @get ();
334 public void get_time (int year, int month, int day, int hour, int minute, int second);
335 public unowned string get_timezone ();
336 public long get_unix_time ();
337 public void get_utc_time (int year, int month, int day, int hour, int minute, int second);
338 public void set_time (int year, int month, int day, int hour, int minute, int second);
339 public void set_timezone (string timezone);
340 public void set_unix_time (long unix_time);
341 public void set_utc_time (int year, int month, int day, int hour, int minute, int second);
342 public string timezone { get; set; }
343 public long unix_time { get; set; }
345 [CCode (cheader_filename = "oobs/oobs.h")]
346 public class User : GLib.Object {
347 [CCode (has_construct_function = false)]
348 public User (string name);
349 public bool get_active ();
350 public unowned string get_full_name ();
351 public unowned string get_home_directory ();
352 public unowned string get_home_phone_number ();
353 public unowned string get_login_name ();
354 public unowned Oobs.Group get_main_group ();
355 public unowned string get_other_data ();
356 public unowned string get_room_number ();
357 public unowned string get_shell ();
358 public long get_uid ();
359 public unowned string get_work_phone_number ();
360 public void set_crypted_password (string crypted_password);
361 public void set_full_name (string full_name);
362 public void set_home_directory (string home_directory);
363 public void set_home_phone_number (string phone_number);
364 public void set_main_group (Oobs.Group main_group);
365 public void set_other_data (string data);
366 public void set_password (string password);
367 public void set_room_number (string room_number);
368 public void set_shell (string shell);
369 public void set_uid (long uid);
370 public void set_work_phone_number (string phone_number);
371 public bool active { get; }
373 public string crypted_password { owned get; set; }
374 public string full_name { get; set; }
375 public string home_directory { get; set; }
377 public string home_phone { owned get; set; }
379 public string name { owned get; construct; }
380 public string other_data { get; set; }
381 public string password { set; }
382 public string room_number { get; set; }
383 public string shell { get; set; }
384 public int uid { get; set; }
386 public string work_phone { owned get; set; }
388 [CCode (cheader_filename = "oobs/oobs.h")]
389 public class UsersConfig : Oobs.Object {
390 public static unowned Oobs.Object @get ();
391 public unowned GLib.List get_available_shells ();
392 public unowned Oobs.Group get_default_group ();
393 public unowned string get_default_home_dir ();
394 public unowned string get_default_shell ();
395 public long get_maximum_users_uid ();
396 public long get_minimum_users_uid ();
397 public unowned Oobs.List get_users ();
398 public void set_default_home_dir (string home_dir);
399 public void set_default_shell (string shell);
400 public void set_maximum_users_uid (long uid);
401 public void set_minimum_users_uid (long uid);
402 public Oobs.Group default_group { get; }
404 public string default_home { owned get; set; }
405 public string default_shell { get; set; }
407 public int maximum_uid { get; set; }
409 public int minimum_uid { get; set; }
411 public bool use_md5 { get; }
413 [CCode (cprefix = "OOBS_DIAL_TYPE_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
414 public enum DialType {
418 [CCode (cprefix = "OOBS_IFACE_TYPE_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
419 public enum IfaceType {
426 [CCode (cprefix = "OOBS_MODEM_VOLUME_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
427 public enum ModemVolume {
433 [CCode (cprefix = "OOBS_RESULT_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
441 [CCode (cprefix = "OOBS_RUNLEVEL_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
442 public enum RunlevelRole {
448 [CCode (cprefix = "OOBS_SERVICE_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
449 public enum ServiceStatus {
454 [CCode (cprefix = "OOBS_SHARE_SMB_", has_type_id = "0", cheader_filename = "oobs/oobs.h")]
456 public enum ShareSMBFlags {
462 [CCode (cheader_filename = "oobs/oobs.h")]
463 public delegate void ObjectAsyncFunc (Oobs.Object object, Oobs.Result result);