diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2015-10-10 13:51:53 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-10-12 14:04:18 +0200 |
commit | fe0d1020bfc3f7b931b250eaf89b02e200d2c8f3 (patch) | |
tree | 3af168085ccebc5782a46fb4341475571e18b054 /src/qmicli/qmicli-helpers.h | |
parent | 84e48d701010baebd1beae2d1edd2d0108bae816 (diff) | |
download | external_libqmi-fe0d1020bfc3f7b931b250eaf89b02e200d2c8f3.zip external_libqmi-fe0d1020bfc3f7b931b250eaf89b02e200d2c8f3.tar.gz external_libqmi-fe0d1020bfc3f7b931b250eaf89b02e200d2c8f3.tar.bz2 |
qmicli,wds: setup new key-value format based Start Network command
This would be equivalent to the new format used in mbimcli's --connect
operation, and will allow us to add new parameters easily.
Note that The old legacy format will still be supported, for backwards
compatibility.
Diffstat (limited to 'src/qmicli/qmicli-helpers.h')
-rw-r--r-- | src/qmicli/qmicli-helpers.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qmicli/qmicli-helpers.h b/src/qmicli/qmicli-helpers.h index 0e6d567..6b19827 100644 --- a/src/qmicli/qmicli-helpers.h +++ b/src/qmicli/qmicli-helpers.h @@ -53,6 +53,8 @@ gboolean qmicli_read_autoconnect_setting_from_string (const gchar *str, QmiWdsAutoconnectSetting *out); gboolean qmicli_read_autoconnect_setting_roaming_from_string (const gchar *str, QmiWdsAutoconnectSettingRoaming *out); +gboolean qmicli_read_authentication_from_string (const gchar *str, + QmiWdsAuthentication *out); gboolean qmicli_read_non_empty_string (const gchar *str, const gchar *description, @@ -65,4 +67,14 @@ gchar *qmicli_get_supported_messages_list (const guint8 *data, const char *qmicli_earfcn_to_eutra_band_string (guint16 earfcn); +typedef gboolean (*QmiParseKeyValueForeachFn) (const gchar *key, + const gchar *value, + GError **error, + gpointer user_data); + +gboolean qmicli_parse_key_value_string (const gchar *str, + GError **error, + QmiParseKeyValueForeachFn callback, + gpointer user_data); + #endif /* __QMICLI_H__ */ |