From 600f429ab6a9b20295114d2c4ace0decc4bd7aff Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Tue, 6 Aug 2013 13:02:27 +0200 Subject: qmicli: new '--device-open-proxy' option to request to use the qmi-proxy --- src/qmicli/qmicli.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/qmicli/qmicli.c') diff --git a/src/qmicli/qmicli.c b/src/qmicli/qmicli.c index c992bd6..dc63c41 100644 --- a/src/qmicli/qmicli.c +++ b/src/qmicli/qmicli.c @@ -50,6 +50,7 @@ static gboolean get_service_version_info_flag; static gchar *device_set_instance_id_str; static gboolean device_open_version_info_flag; static gboolean device_open_sync_flag; +static gboolean device_open_proxy_flag; static gchar *client_cid_str; static gboolean client_no_release_cid_flag; static gboolean verbose_flag; @@ -77,6 +78,10 @@ static GOptionEntry main_entries[] = { "Run sync operation when opening device", NULL }, + { "device-open-proxy", 'p', 0, G_OPTION_ARG_NONE, &device_open_proxy_flag, + "Request to use the 'qmi-proxy' proxy", + NULL + }, { "client-cid", 0, 0, G_OPTION_ARG_STRING, &client_cid_str, "Use the given CID, don't allocate a new one", "[CID]" @@ -474,6 +479,8 @@ device_new_ready (GObject *unused, open_flags |= QMI_DEVICE_OPEN_FLAGS_VERSION_INFO; if (device_open_sync_flag) open_flags |= QMI_DEVICE_OPEN_FLAGS_SYNC; + if (device_open_proxy_flag) + open_flags |= QMI_DEVICE_OPEN_FLAGS_PROXY; /* Open the device */ qmi_device_open (device, -- cgit v1.1