return 0;
}
+static int vc_save(struct connman_provider *provider, GKeyFile *keyfile)
+{
+ char *option;
+ int i;
+
+ for (i = 0; i < (int)ARRAY_SIZE(vpnc_options); i++) {
+ if (strncmp(vpnc_options[i].cm_opt, "VPNC.", 5) == 0) {
+ option = connman_provider_get_string(provider,
+ vpnc_options[i].cm_opt);
+ g_key_file_set_string(keyfile,
+ connman_provider_get_save_group(provider),
+ vpnc_options[i].cm_opt, option);
+ }
+ }
+ return 0;
+}
+
static int vc_connect(struct connman_provider *provider,
struct connman_task *task, const char *if_name)
{
.notify = vc_notify,
.connect = vc_connect,
.error_code = vc_error_code,
+ .save = vc_save,
};
static int vpnc_init(void)