00001 #ifndef ICD_SETTINGS_H 00002 #define ICD_SETTINGS_H 00003 00004 #include <glib.h> 00005 00007 typedef struct { 00008 struct { 00009 gchar *network_type; 00010 guint network_attrs; 00011 gchar *network_id; 00012 } nw; 00014 gpointer backend; 00016 gchar *set; 00017 } icd_settings_handle_t; 00018 00020 typedef icd_settings_handle_t * icd_settings_handle; 00021 00028 icd_settings_handle icd_settings_get_by_network (const gchar *network_type, 00029 const guint network_attrs, 00030 const gchar *network_id); 00031 00035 gboolean icd_settings_init (void); 00036 00041 gboolean icd_settings_delete (icd_settings_handle handle); 00042 00043 00044 gboolean icd_settings_is_saved (icd_settings_handle handle); 00045 gboolean icd_settings_save (icd_settings_handle handle); 00046 00047 gboolean icd_settings_get_network (icd_settings_handle handle, 00048 gchar **network_type, 00049 guint *network_attrs, 00050 gchar **network_id); 00051 00052 gboolean icd_settings_get_boolean (icd_settings_handle handle, 00053 const gchar *attribute, 00054 gboolean *value); 00055 gboolean icd_settings_set_boolean (icd_settings_handle handle, 00056 const gchar *attribute, 00057 gboolean value); 00058 00059 gboolean icd_settings_get_int (icd_settings_handle handle, 00060 const gchar *attribute, 00061 gint *value); 00062 gboolean icd_settings_set_int (icd_settings_handle handle, 00063 const gchar *attribute, 00064 gint value); 00065 00066 gboolean icd_settings_get_uint (icd_settings_handle handle, 00067 const gchar *attribute, 00068 guint *value); 00069 gboolean icd_settings_set_uint (icd_settings_handle handle, 00070 const gchar *attribute, 00071 guint value); 00072 00073 gboolean icd_settings_get_char (icd_settings_handle handle, 00074 const gchar *attribute, 00075 gchar **value); 00076 gboolean icd_settings_set_char (icd_settings_handle handle, 00077 const gchar *attribute, 00078 gchar *value); 00079 00080 #endif