aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmi-firmware-update/qfu-device-selection.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-02-13 18:43:13 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-02-13 18:44:24 +0100
commit19daa72621c8a1bfc91488a2f31e7aa07794506a (patch)
treeec74177b4d676ec2fe440498d775836beda3520a /src/qmi-firmware-update/qfu-device-selection.h
parent6d7479a4997c441f155348f25814b969ed4b5950 (diff)
downloadexternal_libqmi-19daa72621c8a1bfc91488a2f31e7aa07794506a.zip
external_libqmi-19daa72621c8a1bfc91488a2f31e7aa07794506a.tar.gz
external_libqmi-19daa72621c8a1bfc91488a2f31e7aa07794506a.tar.bz2
qmi-firmware-update: allow building without udev
We allow running FW updates even when udev isn't available in the system. In this case, though, only the manual operations will be supported (i.e. --reset and --update-qdl).
Diffstat (limited to 'src/qmi-firmware-update/qfu-device-selection.h')
-rw-r--r--src/qmi-firmware-update/qfu-device-selection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qmi-firmware-update/qfu-device-selection.h b/src/qmi-firmware-update/qfu-device-selection.h
index 9ceb262..5e9c0f9 100644
--- a/src/qmi-firmware-update/qfu-device-selection.h
+++ b/src/qmi-firmware-update/qfu-device-selection.h
@@ -57,6 +57,7 @@ QfuDeviceSelection *qfu_device_selection_new (const gchar *preferred_cdc_w
GError **error);
GFile *qfu_device_selection_get_single_cdc_wdm (QfuDeviceSelection *self);
+#if defined WITH_UDEV
void qfu_device_selection_wait_for_cdc_wdm (QfuDeviceSelection *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
@@ -64,9 +65,11 @@ void qfu_device_selection_wait_for_cdc_wdm (QfuDeviceSelection *self,
GFile *qfu_device_selection_wait_for_cdc_wdm_finish (QfuDeviceSelection *self,
GAsyncResult *res,
GError **error);
+#endif /* WITH_UDEV */
GFile *qfu_device_selection_get_single_tty (QfuDeviceSelection *self);
GList *qfu_device_selection_get_multiple_ttys (QfuDeviceSelection *self);
+#if defined WITH_UDEV
void qfu_device_selection_wait_for_tty (QfuDeviceSelection *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
@@ -74,6 +77,7 @@ void qfu_device_selection_wait_for_tty (QfuDeviceSelection *self,
GFile *qfu_device_selection_wait_for_tty_finish (QfuDeviceSelection *self,
GAsyncResult *res,
GError **error);
+#endif /* WITH_UDEV */
G_END_DECLS