fp-device: Support variadic arguments to error functions

Make possible to generate a formatted message when creating an error from
a device, without having save it first.
This commit is contained in:
Marco Trevisan (Treviño)
2019-11-25 21:22:47 +01:00
committed by Benjamin Berg
parent 3b72b925b0
commit f6559ba8b1
2 changed files with 26 additions and 6 deletions

View File

@@ -181,9 +181,11 @@ GError * fpi_device_retry_new (FpDeviceRetry error);
GError * fpi_device_error_new (FpDeviceError error);
GError * fpi_device_retry_new_msg (FpDeviceRetry error,
const gchar *msg);
const gchar *msg,
...) G_GNUC_PRINTF (2, 3);
GError * fpi_device_error_new_msg (FpDeviceError error,
const gchar *msg);
const gchar *msg,
...) G_GNUC_PRINTF (2, 3);
guint64 fpi_device_get_driver_data (FpDevice *device);