summaryrefslogtreecommitdiff
path: root/vapi/liboobs-1.vapi
diff options
context:
space:
mode:
authorRoberto Majadas <telemaco@openshine.com>2007-12-26 10:17:26 +0000
committerJürg Billeter <juergbi@src.gnome.org>2007-12-26 10:17:26 +0000
commit6fdf77164d6777f1ce60f8b7bc1018e3ed290bf1 (patch)
tree0514155861b4b6e8a67f8f395da9f57ce3486a4f /vapi/liboobs-1.vapi
parent322060cbf3f698acc8ac23df2b1a3fea849d69ec (diff)
downloadvala-6fdf77164d6777f1ce60f8b7bc1018e3ed290bf1.tar.gz
add liboobs-1 bindings
2007-12-26 Roberto Majadas <telemaco@openshine.com> * vapi/Makefile.am, vapi/liboobs-1.vapi, vapi/packages/liboobs-1/: add liboobs-1 bindings svn path=/trunk/; revision=792
Diffstat (limited to 'vapi/liboobs-1.vapi')
-rw-r--r--vapi/liboobs-1.vapi455
1 files changed, 455 insertions, 0 deletions
diff --git a/vapi/liboobs-1.vapi b/vapi/liboobs-1.vapi
new file mode 100644
index 000000000..c356d141a
--- /dev/null
+++ b/vapi/liboobs-1.vapi
@@ -0,0 +1,455 @@
+/* liboobs-1.vapi generated by lt-vapigen, do not modify. */
+
+[CCode (cprefix = "Oobs", lower_case_cprefix = "oobs_")]
+namespace Oobs {
+ [CCode (cprefix = "OOBS_DIAL_TYPE_", cheader_filename = "oobs/oobs.h")]
+ public enum DialType {
+ TONES,
+ PULSES,
+ }
+ [CCode (cprefix = "OOBS_IFACE_TYPE_", cheader_filename = "oobs/oobs.h")]
+ public enum IfaceType {
+ ETHERNET,
+ WIRELESS,
+ IRLAN,
+ PLIP,
+ PPP,
+ }
+ [CCode (cprefix = "OOBS_MODEM_VOLUME_", cheader_filename = "oobs/oobs.h")]
+ public enum ModemVolume {
+ SILENT,
+ LOW,
+ MEDIUM,
+ LOUD,
+ }
+ [CCode (cprefix = "OOBS_RESULT_", cheader_filename = "oobs/oobs.h")]
+ public enum Result {
+ OK,
+ ACCESS_DENIED,
+ NO_PLATFORM,
+ MALFORMED_DATA,
+ ERROR,
+ }
+ [CCode (cprefix = "OOBS_RUNLEVEL_", cheader_filename = "oobs/oobs.h")]
+ public enum RunlevelRole {
+ HALT,
+ REBOOT,
+ MONOUSER,
+ MULTIUSER,
+ }
+ [CCode (cprefix = "OOBS_SERVICE_", cheader_filename = "oobs/oobs.h")]
+ public enum ServiceStatus {
+ START,
+ STOP,
+ IGNORE,
+ }
+ [CCode (cprefix = "OOBS_SHARE_SMB_", cheader_filename = "oobs/oobs.h")]
+ [Flags]
+ public enum ShareSMBFlags {
+ ENABLED,
+ BROWSABLE,
+ PUBLIC,
+ WRITABLE,
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class Platform {
+ public weak string id;
+ public weak string name;
+ public weak string version;
+ public weak string codename;
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class ServicesRunlevel {
+ public weak string name;
+ public uint role;
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class ShareAclElement {
+ public weak string element;
+ public bool read_only;
+ }
+ [CCode (copy_function = "oobs_list_iter_copy", cheader_filename = "oobs/oobs.h")]
+ public class ListIter : GLib.Boxed {
+ public uint stamp;
+ public pointer data;
+ public weak Oobs.ListIter copy ();
+ public static bool next (Oobs.List list, Oobs.ListIter iter);
+ }
+ [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 weak string get_name ();
+ public weak GLib.List get_users ();
+ 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 weak string crypted_password { get; set; }
+ public weak int gid { get; set; }
+ [NoAccessorMethod]
+ public weak string name { get; construct; }
+ public weak string password { set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class GroupsConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public weak Oobs.List get_groups ();
+ [NoAccessorMethod]
+ public weak int maximum_gid { get; set; }
+ [NoAccessorMethod]
+ public weak int minimum_gid { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class HostsConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public weak GLib.List get_dns_servers ();
+ public weak string get_domainname ();
+ public weak string get_hostname ();
+ public weak GLib.List get_search_domains ();
+ public weak 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 weak string get_device_name ();
+ public virtual bool has_gateway ();
+ public void set_active (bool is_active);
+ public void set_auto (bool is_auto);
+ public void set_configured (bool is_configured);
+ public weak bool active { get; set; }
+ public weak bool auto { get; set; }
+ public weak bool configured { get; set; }
+ [NoAccessorMethod]
+ public weak string device { get; construct; }
+ public signal void state_changed ();
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class IfaceEthernet : Oobs.Iface {
+ public weak string get_broadcast_address ();
+ public weak string get_configuration_method ();
+ public weak string get_gateway_address ();
+ public weak string get_ip_address ();
+ public weak string get_network_address ();
+ public weak 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 weak string broadcast_address { get; set; }
+ [NoAccessorMethod]
+ public weak string config_method { get; set; }
+ public weak string gateway_address { get; set; }
+ public weak string ip_address { get; set; }
+ [NoAccessorMethod]
+ public weak string ip_mask { get; set; }
+ public weak 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 weak string get_apn ();
+ public weak string get_connection_type ();
+ public bool get_default_gateway ();
+ public Oobs.DialType get_dial_type ();
+ public weak Oobs.IfaceEthernet get_ethernet ();
+ public weak string get_login ();
+ public bool get_peer_noauth ();
+ public bool get_persistent ();
+ public weak string get_phone_number ();
+ public weak string get_phone_prefix ();
+ public weak 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 weak string apn { get; set; }
+ public weak string connection_type { get; set; }
+ public weak bool default_gateway { get; set; }
+ public weak Oobs.DialType dial_type { get; set; }
+ public weak Oobs.IfaceEthernet ethernet { get; set; }
+ [NoAccessorMethod]
+ public weak string iface_section { get; set; }
+ public weak string login { get; set; }
+ [NoAccessorMethod]
+ public weak string password { get; set; }
+ public weak bool peer_noauth { get; set; }
+ public weak bool persistent { get; set; }
+ public weak string phone_number { get; set; }
+ public weak string phone_prefix { get; set; }
+ public weak string serial_port { get; set; }
+ public weak bool use_peer_dns { get; set; }
+ public weak Oobs.ModemVolume volume { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class IfacePlip : Oobs.Iface {
+ public weak string get_address ();
+ public weak string get_remote_address ();
+ public void set_address (string address);
+ public void set_remote_address (string address);
+ public weak string address { get; set; }
+ public weak string remote_address { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class IfaceWireless : Oobs.IfaceEthernet {
+ public weak string get_essid ();
+ public weak string get_key ();
+ public weak 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 weak string essid { get; set; }
+ public weak string key { get; set; }
+ public weak string key_type { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class IfacesConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public weak GLib.List get_available_configuration_methods ();
+ public weak GLib.List get_available_key_types ();
+ public weak GLib.List get_available_ppp_types ();
+ public weak 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 weak 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, pointer data);
+ [NoAccessorMethod]
+ public weak pointer contained_type { construct; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class NFSConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public weak Oobs.List get_shares ();
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class NTPConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public weak Oobs.List get_servers ();
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class NTPServer : GLib.Object {
+ public weak string get_hostname ();
+ public NTPServer (string hostname);
+ public void set_hostname (string hostname);
+ public weak string hostname { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class Object : GLib.Object {
+ public virtual Oobs.Result commit ();
+ public Oobs.Result commit_async (Oobs.ObjectAsyncFunc func, pointer data);
+ public void ensure_update ();
+ public virtual weak string get_authentication_action ();
+ public bool has_updated ();
+ public void process_requests ();
+ public virtual Oobs.Result update ();
+ public Oobs.Result update_async (Oobs.ObjectAsyncFunc func, pointer data);
+ [NoAccessorMethod]
+ public weak string remote_object { construct; }
+ public signal void changed ();
+ public signal void committed ();
+ public signal void updated ();
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class SMBConfig : Oobs.Object {
+ public void delete_user_password (Oobs.User user);
+ public static weak Oobs.Object get ();
+ public weak string get_description ();
+ public bool get_is_wins_server ();
+ public weak Oobs.List get_shares ();
+ public weak string get_wins_server ();
+ public weak 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 weak string description { get; set; }
+ public weak bool is_wins_server { get; set; }
+ public weak string wins_server { get; set; }
+ public weak string workgroup { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class SelfConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public weak Oobs.User get_user ();
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class Service : GLib.Object {
+ public weak 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);
+ [NoAccessorMethod]
+ public weak string name { get; construct; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class ServicesConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public weak Oobs.ServicesRunlevel get_default_runlevel ();
+ public weak GLib.List get_runlevels ();
+ public weak Oobs.List get_services ();
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class Session : GLib.Object {
+ public Oobs.Result commit ();
+ public static weak Oobs.Session get ();
+ public weak 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 weak string platform { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class Share : GLib.Object {
+ public weak string get_path ();
+ public void set_path (string path);
+ public weak string path { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class ShareNFS : Oobs.Share {
+ public void add_acl_element (string element, bool read_only);
+ public weak GLib.SList get_acl ();
+ public ShareNFS (string path);
+ public void set_acl (GLib.SList acl);
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class ShareSMB : Oobs.Share {
+ public weak string get_comment ();
+ public Oobs.ShareSMBFlags get_flags ();
+ public weak string get_name ();
+ 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 weak string comment { get; set construct; }
+ public weak Oobs.ShareSMBFlags flags { get; set construct; }
+ public weak string name { get; set construct; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class StaticHost : GLib.Object {
+ public weak GLib.List get_aliases ();
+ public weak string get_ip_address ();
+ public StaticHost (string ip_address, GLib.List aliases);
+ public void set_aliases (GLib.List aliases);
+ public void set_ip_address (string ip_address);
+ public weak string ip_address { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class TimeConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public void get_time (int year, int month, int day, int hour, int minute, int second);
+ public weak 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 weak string timezone { get; set; }
+ public weak long unix_time { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class User : GLib.Object {
+ public bool get_active ();
+ public weak string get_full_name ();
+ public weak string get_home_directory ();
+ public weak string get_home_phone_number ();
+ public weak string get_login_name ();
+ public weak Oobs.Group get_main_group ();
+ public weak string get_other_data ();
+ public weak string get_room_number ();
+ public weak string get_shell ();
+ public long get_uid ();
+ public weak string get_work_phone_number ();
+ 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 weak bool active { get; }
+ [NoAccessorMethod]
+ public weak string crypted_password { get; set; }
+ public weak string full_name { get; set; }
+ public weak string home_directory { get; set; }
+ [NoAccessorMethod]
+ public weak string home_phone { get; set; }
+ [NoAccessorMethod]
+ public weak string name { get; construct; }
+ public weak string other_data { get; set; }
+ public weak string password { set; }
+ public weak string room_number { get; set; }
+ public weak string shell { get; set; }
+ public weak int uid { get; set; }
+ [NoAccessorMethod]
+ public weak string work_phone { get; set; }
+ }
+ [CCode (cheader_filename = "oobs/oobs.h")]
+ public class UsersConfig : Oobs.Object {
+ public static weak Oobs.Object get ();
+ public weak GLib.List get_available_shells ();
+ public weak Oobs.Group get_default_group ();
+ public weak string get_default_home_dir ();
+ public weak string get_default_shell ();
+ public long get_maximum_users_uid ();
+ public long get_minimum_users_uid ();
+ public weak 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 weak Oobs.Group default_group { get; }
+ [NoAccessorMethod]
+ public weak string default_home { get; set; }
+ public weak string default_shell { get; set; }
+ [NoAccessorMethod]
+ public weak int maximum_uid { get; set; }
+ [NoAccessorMethod]
+ public weak int minimum_uid { get; set; }
+ [NoAccessorMethod]
+ public weak bool use_md5 { get; }
+ }
+ public static delegate void ObjectAsyncFunc (Oobs.Object object, Oobs.Result result, pointer data);
+}