Blame SOURCES/0147-cleanup-Use-FPI-prefix-for-all-the-internal-enum-typ.patch

73b847
From 44152f201b938100ea12a1eb049e6fcfafc7aea0 Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Mon, 16 Dec 2019 22:45:00 +0100
73b847
Subject: [PATCH 147/181] cleanup: Use FPI prefix for all the internal enum
73b847
 types
73b847
73b847
---
73b847
 doc/libfprint-sections.txt              |   6 +-
73b847
 doc/libfprint-sections.txt-new-manual   |   4 +-
73b847
 libfprint/drivers/elan.c                |  60 +++++++-------
73b847
 libfprint/drivers/elan.h                |   4 +-
73b847
 libfprint/drivers/synaptics/synaptics.c |   4 +-
73b847
 libfprint/drivers/uru4000.c             |  24 +++---
73b847
 libfprint/fp-device-private.h           |   2 +-
73b847
 libfprint/fp-device.c                   |  26 +++---
73b847
 libfprint/fp-image-device-private.h     |  16 ++--
73b847
 libfprint/fp-image-device.c             |  30 +++----
73b847
 libfprint/fp-print-private.h            |   2 +-
73b847
 libfprint/fp-print.c                    |  28 +++----
73b847
 libfprint/fpi-device.c                  |  66 +++++++--------
73b847
 libfprint/fpi-device.h                  |  46 +++++------
73b847
 libfprint/fpi-image-device.c            | 104 ++++++++++++------------
73b847
 libfprint/fpi-image-device.h            |  24 +++---
73b847
 libfprint/fpi-print.c                   |  24 +++---
73b847
 libfprint/fpi-print.h                   |  20 ++---
73b847
 tests/test-device-fake.c                |  20 ++---
73b847
 tests/test-fpi-device.c                 |  20 ++---
73b847
 20 files changed, 264 insertions(+), 266 deletions(-)
73b847
73b847
diff --git a/doc/libfprint-sections.txt b/doc/libfprint-sections.txt
73b847
index 9e17f8e..30a4e9b 100644
73b847
--- a/doc/libfprint-sections.txt
73b847
+++ b/doc/libfprint-sections.txt
73b847
@@ -129,7 +129,7 @@ fpi_get_driver_types
73b847
 <FILE>fpi-device</FILE>
73b847
 FpDeviceClass
73b847
 FpTimeoutFunc
73b847
-FpDeviceAction
73b847
+FpiDeviceAction
73b847
 FpIdEntry
73b847
 fpi_device_get_usb_device
73b847
 fpi_device_get_virtual_env
73b847
@@ -173,7 +173,7 @@ fpi_image_resize
73b847
 <SECTION>
73b847
 <FILE>fpi-image-device</FILE>
73b847
 <TITLE>FpImageDevice</TITLE>
73b847
-FpImageDeviceState
73b847
+FpiImageDeviceState
73b847
 FpImageDeviceClass
73b847
 fpi_image_device_session_error
73b847
 fpi_image_device_open_complete
73b847
@@ -197,7 +197,7 @@ BUG
73b847
 
73b847
 <SECTION>
73b847
 <FILE>fpi-print</FILE>
73b847
-FpPrintType
73b847
+FpiPrintType
73b847
 FpiMatchResult
73b847
 fpi_print_add_print
73b847
 fpi_print_set_type
73b847
diff --git a/doc/libfprint-sections.txt-new-manual b/doc/libfprint-sections.txt-new-manual
73b847
index 857425b..da850db 100644
73b847
--- a/doc/libfprint-sections.txt-new-manual
73b847
+++ b/doc/libfprint-sections.txt-new-manual
73b847
@@ -90,7 +90,7 @@ fp_image_get_width
73b847
 <TITLE>Base class for image devices</TITLE>
73b847
 FpImageDevice
73b847
 FpImageDeviceClass
73b847
-FpImageDeviceState
73b847
+FpiImageDeviceState
73b847
 </SECTION>
73b847
 
73b847
 <SECTION>
73b847
@@ -114,5 +114,3 @@ FpUsbTransferCallback
73b847
 FP_USB_ENDPOINT_IN
73b847
 FP_USB_ENDPOINT_OUT
73b847
 </SECTION>
73b847
-
73b847
-
73b847
diff --git a/libfprint/drivers/elan.c b/libfprint/drivers/elan.c
73b847
index 415aaef..233e4a8 100644
73b847
--- a/libfprint/drivers/elan.c
73b847
+++ b/libfprint/drivers/elan.c
73b847
@@ -73,18 +73,18 @@ struct _FpiDeviceElan
73b847
   /* end commands */
73b847
 
73b847
   /* state */
73b847
-  gboolean           deactivating;
73b847
-  FpImageDeviceState dev_state;
73b847
-  FpImageDeviceState dev_state_next;
73b847
-  unsigned char     *last_read;
73b847
-  unsigned char      calib_atts_left;
73b847
-  unsigned char      calib_status;
73b847
-  unsigned short    *background;
73b847
-  unsigned char      frame_width;
73b847
-  unsigned char      frame_height;
73b847
-  unsigned char      raw_frame_height;
73b847
-  int                num_frames;
73b847
-  GSList            *frames;
73b847
+  gboolean            deactivating;
73b847
+  FpiImageDeviceState dev_state;
73b847
+  FpiImageDeviceState dev_state_next;
73b847
+  unsigned char      *last_read;
73b847
+  unsigned char       calib_atts_left;
73b847
+  unsigned char       calib_status;
73b847
+  unsigned short     *background;
73b847
+  unsigned char       frame_width;
73b847
+  unsigned char       frame_height;
73b847
+  unsigned char       raw_frame_height;
73b847
+  int                 num_frames;
73b847
+  GSList             *frames;
73b847
   /* end state */
73b847
 };
73b847
 G_DECLARE_FINAL_TYPE (FpiDeviceElan, fpi_device_elan, FPI, DEVICE_ELAN,
73b847
@@ -481,7 +481,7 @@ stop_capture_complete (FpiSsm *ssm, FpDevice *_dev, GError *error)
73b847
 
73b847
 
73b847
   /* The device is inactive at this point. */
73b847
-  self->dev_state = FP_IMAGE_DEVICE_STATE_INACTIVE;
73b847
+  self->dev_state = FPI_IMAGE_DEVICE_STATE_INACTIVE;
73b847
 
73b847
   if (self->deactivating)
73b847
     {
73b847
@@ -538,7 +538,7 @@ capture_run_state (FpiSsm *ssm, FpDevice *dev)
73b847
       break;
73b847
 
73b847
     case CAPTURE_READ_DATA:
73b847
-      self->dev_state = FP_IMAGE_DEVICE_STATE_CAPTURE;
73b847
+      self->dev_state = FPI_IMAGE_DEVICE_STATE_CAPTURE;
73b847
 
73b847
       /* 0x55 - finger present
73b847
        * 0xff - device not calibrated (probably) */
73b847
@@ -773,7 +773,7 @@ calibrate_complete (FpiSsm *ssm, FpDevice *dev, GError *error)
73b847
 
73b847
   if (error)
73b847
     {
73b847
-      self->dev_state = FP_IMAGE_DEVICE_STATE_INACTIVE;
73b847
+      self->dev_state = FPI_IMAGE_DEVICE_STATE_INACTIVE;
73b847
       fpi_image_device_session_error (FP_IMAGE_DEVICE (dev), error);
73b847
     }
73b847
   else
73b847
@@ -951,7 +951,7 @@ elan_change_state (FpImageDevice *idev)
73b847
 {
73b847
   FpDevice *dev = FP_DEVICE (idev);
73b847
   FpiDeviceElan *self = FPI_DEVICE_ELAN (dev);
73b847
-  FpImageDeviceState next_state = self->dev_state_next;
73b847
+  FpiImageDeviceState next_state = self->dev_state_next;
73b847
 
73b847
   if (self->dev_state == next_state)
73b847
     {
73b847
@@ -965,18 +965,18 @@ elan_change_state (FpImageDevice *idev)
73b847
 
73b847
   switch (next_state)
73b847
     {
73b847
-    case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
73b847
+    case FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
73b847
       /* activation completed or another enroll stage started */
73b847
-      self->dev_state = FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON;
73b847
+      self->dev_state = FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON;
73b847
       elan_calibrate (dev);
73b847
       break;
73b847
 
73b847
-    case FP_IMAGE_DEVICE_STATE_CAPTURE:
73b847
+    case FPI_IMAGE_DEVICE_STATE_CAPTURE:
73b847
       /* not used */
73b847
       break;
73b847
 
73b847
-    case FP_IMAGE_DEVICE_STATE_INACTIVE:
73b847
-    case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF:
73b847
+    case FPI_IMAGE_DEVICE_STATE_INACTIVE:
73b847
+    case FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF:
73b847
       elan_stop_capture (dev);
73b847
       break;
73b847
     }
73b847
@@ -991,7 +991,7 @@ elan_change_state_async (FpDevice *dev,
73b847
 }
73b847
 
73b847
 static void
73b847
-dev_change_state (FpImageDevice *dev, FpImageDeviceState state)
73b847
+dev_change_state (FpImageDevice *dev, FpiImageDeviceState state)
73b847
 {
73b847
   FpiDeviceElan *self = FPI_DEVICE_ELAN (dev);
73b847
   GSource *timeout;
73b847
@@ -999,17 +999,17 @@ dev_change_state (FpImageDevice *dev, FpImageDeviceState state)
73b847
   G_DEBUG_HERE ();
73b847
 
73b847
   /* Inactive and await finger off are equivalent for the elan driver. */
73b847
-  if (state == FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF)
73b847
-    state = FP_IMAGE_DEVICE_STATE_INACTIVE;
73b847
+  if (state == FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF)
73b847
+    state = FPI_IMAGE_DEVICE_STATE_INACTIVE;
73b847
 
73b847
   if (self->dev_state_next == state)
73b847
     fp_dbg ("change to state %d already queued", state);
73b847
 
73b847
   switch (state)
73b847
     {
73b847
-    case FP_IMAGE_DEVICE_STATE_INACTIVE:
73b847
-    case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
73b847
-    case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF: {
73b847
+    case FPI_IMAGE_DEVICE_STATE_INACTIVE:
73b847
+    case FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
73b847
+    case FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF: {
73b847
         char *name;
73b847
 
73b847
         /* schedule state change instead of calling it directly to allow all actions
73b847
@@ -1026,7 +1026,7 @@ dev_change_state (FpImageDevice *dev, FpImageDeviceState state)
73b847
         break;
73b847
       }
73b847
 
73b847
-    case FP_IMAGE_DEVICE_STATE_CAPTURE:
73b847
+    case FPI_IMAGE_DEVICE_STATE_CAPTURE:
73b847
       /* TODO MAYBE: split capture ssm into smaller ssms and use this state */
73b847
       self->dev_state = state;
73b847
       self->dev_state_next = state;
73b847
@@ -1044,7 +1044,7 @@ dev_deactivate (FpImageDevice *dev)
73b847
 
73b847
   G_DEBUG_HERE ();
73b847
 
73b847
-  if (self->dev_state == FP_IMAGE_DEVICE_STATE_INACTIVE)
73b847
+  if (self->dev_state == FPI_IMAGE_DEVICE_STATE_INACTIVE)
73b847
     {
73b847
       /* The device is inactive already, complete the operation immediately. */
73b847
       fpi_image_device_deactivate_complete (dev, NULL);
73b847
@@ -1055,7 +1055,7 @@ dev_deactivate (FpImageDevice *dev)
73b847
        * need to signal back deactivation) and then ensure we will change
73b847
        * to the inactive state eventually. */
73b847
       self->deactivating = TRUE;
73b847
-      dev_change_state (dev, FP_IMAGE_DEVICE_STATE_INACTIVE);
73b847
+      dev_change_state (dev, FPI_IMAGE_DEVICE_STATE_INACTIVE);
73b847
     }
73b847
 }
73b847
 
73b847
diff --git a/libfprint/drivers/elan.h b/libfprint/drivers/elan.h
73b847
index 1fdd820..2b1c089 100644
73b847
--- a/libfprint/drivers/elan.h
73b847
+++ b/libfprint/drivers/elan.h
73b847
@@ -221,5 +221,5 @@ static void elan_cmd_read (FpiSsm   *ssm,
73b847
 static void elan_calibrate (FpDevice *dev);
73b847
 static void elan_capture (FpDevice *dev);
73b847
 
73b847
-static void dev_change_state (FpImageDevice     *dev,
73b847
-                              FpImageDeviceState state);
73b847
+static void dev_change_state (FpImageDevice      *dev,
73b847
+                              FpiImageDeviceState state);
73b847
diff --git a/libfprint/drivers/synaptics/synaptics.c b/libfprint/drivers/synaptics/synaptics.c
73b847
index 97d9d21..af4a2fd 100644
73b847
--- a/libfprint/drivers/synaptics/synaptics.c
73b847
+++ b/libfprint/drivers/synaptics/synaptics.c
73b847
@@ -517,7 +517,7 @@ list_msg_cb (FpiDeviceSynaptics *self,
73b847
                                 get_enroll_templates_resp->templates[n].finger_id,
73b847
                                 uid);
73b847
 
73b847
-          fpi_print_set_type (print, FP_PRINT_RAW);
73b847
+          fpi_print_set_type (print, FPI_PRINT_RAW);
73b847
           fpi_print_set_device_stored (print, TRUE);
73b847
           g_object_set (print, "fp-data", data, NULL);
73b847
           g_object_set (print, "description", get_enroll_templates_resp->templates[n].user_id, NULL);
73b847
@@ -856,7 +856,7 @@ enroll (FpDevice *device)
73b847
                         finger,
73b847
                         uid);
73b847
 
73b847
-  fpi_print_set_type (print, FP_PRINT_RAW);
73b847
+  fpi_print_set_type (print, FPI_PRINT_RAW);
73b847
   fpi_print_set_device_stored (print, TRUE);
73b847
   g_object_set (print, "fp-data", data, NULL);
73b847
   g_object_set (print, "description", user_id, NULL);
73b847
diff --git a/libfprint/drivers/uru4000.c b/libfprint/drivers/uru4000.c
73b847
index 5128a12..b86c6c8 100644
73b847
--- a/libfprint/drivers/uru4000.c
73b847
+++ b/libfprint/drivers/uru4000.c
73b847
@@ -122,7 +122,7 @@ struct _FpiDeviceUru4000
73b847
 
73b847
   const struct uru4k_dev_profile *profile;
73b847
   uint8_t                         interface;
73b847
-  FpImageDeviceState              activate_state;
73b847
+  FpiImageDeviceState             activate_state;
73b847
   unsigned char                   last_reg_rd[16];
73b847
   unsigned char                   last_hwstat;
73b847
 
73b847
@@ -408,16 +408,16 @@ change_state_write_reg_cb (FpiUsbTransfer *transfer,
73b847
 }
73b847
 
73b847
 static void
73b847
-dev_change_state (FpImageDevice *dev, FpImageDeviceState state)
73b847
+dev_change_state (FpImageDevice *dev, FpiImageDeviceState state)
73b847
 {
73b847
   FpiDeviceUru4000 *self = FPI_DEVICE_URU4000 (dev);
73b847
 
73b847
   switch (state)
73b847
     {
73b847
-    case FP_IMAGE_DEVICE_STATE_INACTIVE:
73b847
-    case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
73b847
-    case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF:
73b847
-    case FP_IMAGE_DEVICE_STATE_CAPTURE:
73b847
+    case FPI_IMAGE_DEVICE_STATE_INACTIVE:
73b847
+    case FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
73b847
+    case FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF:
73b847
+    case FPI_IMAGE_DEVICE_STATE_CAPTURE:
73b847
       break;
73b847
 
73b847
     default:
73b847
@@ -773,7 +773,7 @@ imaging_run_state (FpiSsm *ssm, FpDevice *_dev)
73b847
         fpimg->flags |= FPI_IMAGE_V_FLIPPED | FPI_IMAGE_H_FLIPPED;
73b847
       fpi_image_device_image_captured (dev, fpimg);
73b847
 
73b847
-      if (self->activate_state == FP_IMAGE_DEVICE_STATE_CAPTURE)
73b847
+      if (self->activate_state == FPI_IMAGE_DEVICE_STATE_CAPTURE)
73b847
         fpi_ssm_jump_to_state (ssm, IMAGING_CAPTURE);
73b847
       else
73b847
         fpi_ssm_mark_completed (ssm);
73b847
@@ -1176,7 +1176,7 @@ deactivate_write_reg_cb (FpiUsbTransfer *transfer, FpDevice *dev,
73b847
 static void
73b847
 dev_deactivate (FpImageDevice *dev)
73b847
 {
73b847
-  dev_change_state (dev, FP_IMAGE_DEVICE_STATE_INACTIVE);
73b847
+  dev_change_state (dev, FPI_IMAGE_DEVICE_STATE_INACTIVE);
73b847
 }
73b847
 
73b847
 static void
73b847
@@ -1187,7 +1187,7 @@ execute_state_change (FpImageDevice *dev)
73b847
 
73b847
   switch (self->activate_state)
73b847
     {
73b847
-    case FP_IMAGE_DEVICE_STATE_INACTIVE:
73b847
+    case FPI_IMAGE_DEVICE_STATE_INACTIVE:
73b847
       fp_dbg ("deactivating");
73b847
       self->irq_cb = NULL;
73b847
       self->irq_cb_data = NULL;
73b847
@@ -1195,7 +1195,7 @@ execute_state_change (FpImageDevice *dev)
73b847
                  deactivate_write_reg_cb, NULL);
73b847
       break;
73b847
 
73b847
-    case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
73b847
+    case FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON:
73b847
       fp_dbg ("wait finger on");
73b847
       if (!IRQ_HANDLER_IS_RUNNING (self))
73b847
         {
73b847
@@ -1209,7 +1209,7 @@ execute_state_change (FpImageDevice *dev)
73b847
                  change_state_write_reg_cb, NULL);
73b847
       break;
73b847
 
73b847
-    case FP_IMAGE_DEVICE_STATE_CAPTURE:
73b847
+    case FPI_IMAGE_DEVICE_STATE_CAPTURE:
73b847
       fp_dbg ("starting capture");
73b847
       self->irq_cb = NULL;
73b847
 
73b847
@@ -1229,7 +1229,7 @@ execute_state_change (FpImageDevice *dev)
73b847
                  change_state_write_reg_cb, NULL);
73b847
       break;
73b847
 
73b847
-    case FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF:
73b847
+    case FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF:
73b847
       fp_dbg ("await finger off");
73b847
       if (!IRQ_HANDLER_IS_RUNNING (self))
73b847
         {
73b847
diff --git a/libfprint/fp-device-private.h b/libfprint/fp-device-private.h
73b847
index 65fb1cb..1a350fe 100644
73b847
--- a/libfprint/fp-device-private.h
73b847
+++ b/libfprint/fp-device-private.h
73b847
@@ -41,7 +41,7 @@ typedef struct
73b847
   GSList      *sources;
73b847
 
73b847
   /* We always make sure that only one task is run at a time. */
73b847
-  FpDeviceAction      current_action;
73b847
+  FpiDeviceAction     current_action;
73b847
   GTask              *current_task;
73b847
   GAsyncReadyCallback current_user_cb;
73b847
   gulong              current_cancellable_id;
73b847
diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c
73b847
index 3ac3a1c..8041a86 100644
73b847
--- a/libfprint/fp-device.c
73b847
+++ b/libfprint/fp-device.c
73b847
@@ -81,7 +81,7 @@ fp_device_cancel_in_idle_cb (gpointer user_data)
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (self);
73b847
 
73b847
   g_assert (cls->cancel);
73b847
-  g_assert (priv->current_action != FP_DEVICE_ACTION_NONE);
73b847
+  g_assert (priv->current_action != FPI_DEVICE_ACTION_NONE);
73b847
 
73b847
   g_debug ("Idle cancelling on ongoing operation!");
73b847
 
73b847
@@ -148,7 +148,7 @@ fp_device_finalize (GObject *object)
73b847
   FpDevice *self = (FpDevice *) object;
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (self);
73b847
 
73b847
-  g_assert (priv->current_action == FP_DEVICE_ACTION_NONE);
73b847
+  g_assert (priv->current_action == FPI_DEVICE_ACTION_NONE);
73b847
   g_assert (priv->current_task == NULL);
73b847
   if (priv->is_open)
73b847
     g_warning ("User destroyed open device! Not cleaning up properly!");
73b847
@@ -268,7 +268,7 @@ fp_device_async_initable_init_async (GAsyncInitable     *initable,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_PROBE;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_PROBE;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (self, cancellable);
73b847
 
73b847
@@ -584,7 +584,7 @@ fp_device_open (FpDevice           *device,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_OPEN;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_OPEN;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (device, cancellable);
73b847
 
73b847
@@ -648,7 +648,7 @@ fp_device_close (FpDevice           *device,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_CLOSE;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_CLOSE;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (device, cancellable);
73b847
 
73b847
@@ -709,7 +709,7 @@ fp_device_enroll (FpDevice           *device,
73b847
   g_autoptr(GTask) task = NULL;
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
   FpEnrollData *data;
73b847
-  FpPrintType print_type;
73b847
+  FpiPrintType print_type;
73b847
 
73b847
   task = g_task_new (device, cancellable, callback, user_data);
73b847
   if (g_task_return_error_if_cancelled (task))
73b847
@@ -738,7 +738,7 @@ fp_device_enroll (FpDevice           *device,
73b847
     }
73b847
 
73b847
   g_object_get (template_print, "fp-type", &print_type, NULL);
73b847
-  if (print_type != FP_PRINT_UNDEFINED)
73b847
+  if (print_type != FPI_PRINT_UNDEFINED)
73b847
     {
73b847
       g_warning ("Passed print template must be newly created and blank!");
73b847
       g_task_return_error (task,
73b847
@@ -746,7 +746,7 @@ fp_device_enroll (FpDevice           *device,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_ENROLL;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_ENROLL;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (device, cancellable);
73b847
 
73b847
@@ -822,7 +822,7 @@ fp_device_verify (FpDevice           *device,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_VERIFY;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_VERIFY;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (device, cancellable);
73b847
 
73b847
@@ -915,7 +915,7 @@ fp_device_identify (FpDevice           *device,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_IDENTIFY;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_IDENTIFY;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (device, cancellable);
73b847
 
73b847
@@ -1008,7 +1008,7 @@ fp_device_capture (FpDevice           *device,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_CAPTURE;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_CAPTURE;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (device, cancellable);
73b847
 
73b847
@@ -1089,7 +1089,7 @@ fp_device_delete_print (FpDevice           *device,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_DELETE;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_DELETE;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (device, cancellable);
73b847
 
73b847
@@ -1159,7 +1159,7 @@ fp_device_list_prints (FpDevice           *device,
73b847
       return;
73b847
     }
73b847
 
73b847
-  priv->current_action = FP_DEVICE_ACTION_LIST;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_LIST;
73b847
   priv->current_task = g_steal_pointer (&task);
73b847
   maybe_cancel_on_cancelled (device, cancellable);
73b847
 
73b847
diff --git a/libfprint/fp-image-device-private.h b/libfprint/fp-image-device-private.h
73b847
index 01454fd..07a0347 100644
73b847
--- a/libfprint/fp-image-device-private.h
73b847
+++ b/libfprint/fp-image-device-private.h
73b847
@@ -25,17 +25,17 @@
73b847
 
73b847
 typedef struct
73b847
 {
73b847
-  FpImageDeviceState state;
73b847
-  gboolean           active;
73b847
-  gboolean           cancelling;
73b847
+  FpiImageDeviceState state;
73b847
+  gboolean            active;
73b847
+  gboolean            cancelling;
73b847
 
73b847
-  gboolean           enroll_await_on_pending;
73b847
-  gint               enroll_stage;
73b847
+  gboolean            enroll_await_on_pending;
73b847
+  gint                enroll_stage;
73b847
 
73b847
-  guint              pending_activation_timeout_id;
73b847
-  gboolean           pending_activation_timeout_waiting_finger_off;
73b847
+  guint               pending_activation_timeout_id;
73b847
+  gboolean            pending_activation_timeout_waiting_finger_off;
73b847
 
73b847
-  gint               bz3_threshold;
73b847
+  gint                bz3_threshold;
73b847
 } FpImageDevicePrivate;
73b847
 
73b847
 
73b847
diff --git a/libfprint/fp-image-device.c b/libfprint/fp-image-device.c
73b847
index 24d324d..9e6c375 100644
73b847
--- a/libfprint/fp-image-device.c
73b847
+++ b/libfprint/fp-image-device.c
73b847
@@ -106,7 +106,7 @@ fp_image_device_close (FpDevice *device)
73b847
 
73b847
   if (!priv->active)
73b847
     cls->img_close (self);
73b847
-  else if (priv->state != FP_IMAGE_DEVICE_STATE_INACTIVE)
73b847
+  else if (priv->state != FPI_IMAGE_DEVICE_STATE_INACTIVE)
73b847
     fpi_image_device_deactivate (self);
73b847
 }
73b847
 
73b847
@@ -115,16 +115,16 @@ fp_image_device_cancel_action (FpDevice *device)
73b847
 {
73b847
   FpImageDevice *self = FP_IMAGE_DEVICE (device);
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
   action = fpi_device_get_current_action (device);
73b847
 
73b847
   /* We can only cancel capture operations, in that case, deactivate and return
73b847
    * an error immediately. */
73b847
-  if (action == FP_DEVICE_ACTION_ENROLL ||
73b847
-      action == FP_DEVICE_ACTION_VERIFY ||
73b847
-      action == FP_DEVICE_ACTION_IDENTIFY ||
73b847
-      action == FP_DEVICE_ACTION_CAPTURE)
73b847
+  if (action == FPI_DEVICE_ACTION_ENROLL ||
73b847
+      action == FPI_DEVICE_ACTION_VERIFY ||
73b847
+      action == FPI_DEVICE_ACTION_IDENTIFY ||
73b847
+      action == FPI_DEVICE_ACTION_CAPTURE)
73b847
     {
73b847
       priv->cancelling = TRUE;
73b847
       fpi_image_device_deactivate (self);
73b847
@@ -143,14 +143,14 @@ fp_image_device_start_capture_action (FpDevice *device)
73b847
 {
73b847
   FpImageDevice *self = FP_IMAGE_DEVICE (device);
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
   /* There is just one action that we cannot support out
73b847
    * of the box, which is a capture without first waiting
73b847
    * for a finger to be on the device.
73b847
    */
73b847
   action = fpi_device_get_current_action (device);
73b847
-  if (action == FP_DEVICE_ACTION_CAPTURE)
73b847
+  if (action == FPI_DEVICE_ACTION_CAPTURE)
73b847
     {
73b847
       gboolean wait_for_finger;
73b847
 
73b847
@@ -162,12 +162,12 @@ fp_image_device_start_capture_action (FpDevice *device)
73b847
           return;
73b847
         }
73b847
     }
73b847
-  else if (action == FP_DEVICE_ACTION_ENROLL)
73b847
+  else if (action == FPI_DEVICE_ACTION_ENROLL)
73b847
     {
73b847
       FpPrint *enroll_print = NULL;
73b847
 
73b847
       fpi_device_get_enroll_data (device, &enroll_print);
73b847
-      fpi_print_set_type (enroll_print, FP_PRINT_NBIS);
73b847
+      fpi_print_set_type (enroll_print, FPI_PRINT_NBIS);
73b847
     }
73b847
 
73b847
   priv->enroll_stage = 0;
73b847
@@ -178,14 +178,14 @@ fp_image_device_start_capture_action (FpDevice *device)
73b847
    * error (which will usually say that the user should remove the
73b847
    * finger).
73b847
    */
73b847
-  if (priv->state != FP_IMAGE_DEVICE_STATE_INACTIVE || priv->active)
73b847
+  if (priv->state != FPI_IMAGE_DEVICE_STATE_INACTIVE || priv->active)
73b847
     {
73b847
       g_debug ("Got a new request while the device was still active");
73b847
       g_assert (priv->pending_activation_timeout_id == 0);
73b847
       priv->pending_activation_timeout_id =
73b847
         g_timeout_add (100, pending_activation_timeout, device);
73b847
 
73b847
-      if (priv->state == FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF)
73b847
+      if (priv->state == FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF)
73b847
         priv->pending_activation_timeout_waiting_finger_off = TRUE;
73b847
       else
73b847
         priv->pending_activation_timeout_waiting_finger_off = FALSE;
73b847
@@ -271,8 +271,8 @@ fp_image_device_class_init (FpImageDeviceClass *klass)
73b847
     g_param_spec_enum ("fp-image-device-state",
73b847
                        "Image Device State",
73b847
                        "Private: The state of the image device",
73b847
-                       FP_TYPE_IMAGE_DEVICE_STATE,
73b847
-                       FP_IMAGE_DEVICE_STATE_INACTIVE,
73b847
+                       FPI_TYPE_IMAGE_DEVICE_STATE,
73b847
+                       FPI_IMAGE_DEVICE_STATE_INACTIVE,
73b847
                        G_PARAM_STATIC_STRINGS | G_PARAM_READABLE);
73b847
 
73b847
   signals[FPI_STATE_CHANGED] =
73b847
@@ -281,7 +281,7 @@ fp_image_device_class_init (FpImageDeviceClass *klass)
73b847
                   G_SIGNAL_RUN_FIRST,
73b847
                   G_STRUCT_OFFSET (FpImageDeviceClass, change_state),
73b847
                   NULL, NULL, NULL,
73b847
-                  G_TYPE_NONE, 1, FP_TYPE_IMAGE_DEVICE_STATE);
73b847
+                  G_TYPE_NONE, 1, FPI_TYPE_IMAGE_DEVICE_STATE);
73b847
 
73b847
   g_object_class_install_properties (object_class, N_PROPS, properties);
73b847
 }
73b847
diff --git a/libfprint/fp-print-private.h b/libfprint/fp-print-private.h
73b847
index f5822b3..6d44700 100644
73b847
--- a/libfprint/fp-print-private.h
73b847
+++ b/libfprint/fp-print-private.h
73b847
@@ -27,7 +27,7 @@ struct _FpPrint
73b847
 {
73b847
   GInitiallyUnowned parent_instance;
73b847
 
73b847
-  FpPrintType       type;
73b847
+  FpiPrintType      type;
73b847
 
73b847
   gchar            *driver;
73b847
   gchar            *device_id;
73b847
diff --git a/libfprint/fp-print.c b/libfprint/fp-print.c
73b847
index 30fdf1a..dd45b95 100644
73b847
--- a/libfprint/fp-print.c
73b847
+++ b/libfprint/fp-print.c
73b847
@@ -272,8 +272,8 @@ fp_print_class_init (FpPrintClass *klass)
73b847
     g_param_spec_enum ("fp-type",
73b847
                        "Type",
73b847
                        "Private: The type of the print data",
73b847
-                       FP_TYPE_PRINT_TYPE,
73b847
-                       FP_PRINT_RAW,
73b847
+                       FPI_TYPE_PRINT_TYPE,
73b847
+                       FPI_PRINT_RAW,
73b847
                        G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
73b847
 
73b847
   properties[PROP_FPI_DATA] =
73b847
@@ -555,8 +555,8 @@ fp_print_equal (FpPrint *self, FpPrint *other)
73b847
 {
73b847
   g_return_val_if_fail (FP_IS_PRINT (self), FALSE);
73b847
   g_return_val_if_fail (FP_IS_PRINT (other), FALSE);
73b847
-  g_return_val_if_fail (self->type != FP_PRINT_UNDEFINED, FALSE);
73b847
-  g_return_val_if_fail (other->type != FP_PRINT_UNDEFINED, FALSE);
73b847
+  g_return_val_if_fail (self->type != FPI_PRINT_UNDEFINED, FALSE);
73b847
+  g_return_val_if_fail (other->type != FPI_PRINT_UNDEFINED, FALSE);
73b847
 
73b847
   if (self->type != other->type)
73b847
     return FALSE;
73b847
@@ -567,11 +567,11 @@ fp_print_equal (FpPrint *self, FpPrint *other)
73b847
   if (g_strcmp0 (self->device_id, other->device_id))
73b847
     return FALSE;
73b847
 
73b847
-  if (self->type == FP_PRINT_RAW)
73b847
+  if (self->type == FPI_PRINT_RAW)
73b847
     {
73b847
       return g_variant_equal (self->data, other->data);
73b847
     }
73b847
-  else if (self->type == FP_PRINT_NBIS)
73b847
+  else if (self->type == FPI_PRINT_NBIS)
73b847
     {
73b847
       gint i;
73b847
 
73b847
@@ -595,7 +595,7 @@ fp_print_equal (FpPrint *self, FpPrint *other)
73b847
     }
73b847
 }
73b847
 
73b847
-#define FP_PRINT_VARIANT_TYPE G_VARIANT_TYPE ("(issbymsmsia{sv}v)")
73b847
+#define FPI_PRINT_VARIANT_TYPE G_VARIANT_TYPE ("(issbymsmsia{sv}v)")
73b847
 
73b847
 G_STATIC_ASSERT (sizeof (((struct xyt_struct *) NULL)->xcol[0]) == 4);
73b847
 
73b847
@@ -618,7 +618,7 @@ fp_print_serialize (FpPrint *print,
73b847
                     GError **error)
73b847
 {
73b847
   g_autoptr(GVariant) result = NULL;
73b847
-  GVariantBuilder builder = G_VARIANT_BUILDER_INIT (FP_PRINT_VARIANT_TYPE);
73b847
+  GVariantBuilder builder = G_VARIANT_BUILDER_INIT (FPI_PRINT_VARIANT_TYPE);
73b847
   gsize len;
73b847
 
73b847
   g_assert (data);
73b847
@@ -643,7 +643,7 @@ fp_print_serialize (FpPrint *print,
73b847
   g_variant_builder_close (&builder);
73b847
 
73b847
   /* Insert NBIS print data for type NBIS, otherwise the GVariant directly */
73b847
-  if (print->type == FP_PRINT_NBIS)
73b847
+  if (print->type == FPI_PRINT_NBIS)
73b847
     {
73b847
       GVariantBuilder nested = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("(a(aiaiai))"));
73b847
       gint i;
73b847
@@ -745,7 +745,7 @@ fp_print_deserialize (const guchar *data,
73b847
   g_autofree gchar *username = NULL;
73b847
   g_autofree gchar *description = NULL;
73b847
   gint julian_date;
73b847
-  FpPrintType type;
73b847
+  FpiPrintType type;
73b847
   const gchar *driver;
73b847
   const gchar *device_id;
73b847
   gboolean device_stored;
73b847
@@ -766,7 +766,7 @@ fp_print_deserialize (const guchar *data,
73b847
    * longer. */
73b847
   aligned_data = g_malloc (length - 3);
73b847
   memcpy (aligned_data, data + 3, length - 3);
73b847
-  raw_value = g_variant_new_from_data (FP_PRINT_VARIANT_TYPE,
73b847
+  raw_value = g_variant_new_from_data (FPI_PRINT_VARIANT_TYPE,
73b847
                                        aligned_data, length - 3,
73b847
                                        FALSE, g_free, aligned_data);
73b847
 
73b847
@@ -794,7 +794,7 @@ fp_print_deserialize (const guchar *data,
73b847
   finger = finger_int8;
73b847
 
73b847
   /* Assume data is valid at this point if the values are somewhat sane. */
73b847
-  if (type == FP_PRINT_NBIS)
73b847
+  if (type == FPI_PRINT_NBIS)
73b847
     {
73b847
       g_autoptr(GVariant) prints = g_variant_get_child_value (print_data, 0);
73b847
       gint i;
73b847
@@ -804,7 +804,7 @@ fp_print_deserialize (const guchar *data,
73b847
                              "device-id", device_id,
73b847
                              "device-stored", device_stored,
73b847
                              NULL);
73b847
-      fpi_print_set_type (result, FP_PRINT_NBIS);
73b847
+      fpi_print_set_type (result, FPI_PRINT_NBIS);
73b847
       for (i = 0; i < g_variant_n_children (prints); i++)
73b847
         {
73b847
           g_autofree struct xyt_struct *xyt = g_new0 (struct xyt_struct, 1);
73b847
@@ -841,7 +841,7 @@ fp_print_deserialize (const guchar *data,
73b847
           g_ptr_array_add (result->prints, g_steal_pointer (&xyt));
73b847
         }
73b847
     }
73b847
-  else if (type == FP_PRINT_RAW)
73b847
+  else if (type == FPI_PRINT_RAW)
73b847
     {
73b847
       g_autoptr(GVariant) fp_data = g_variant_get_child_value (print_data, 0);
73b847
 
73b847
diff --git a/libfprint/fpi-device.c b/libfprint/fpi-device.c
73b847
index 5fc6b76..51dbee1 100644
73b847
--- a/libfprint/fpi-device.c
73b847
+++ b/libfprint/fpi-device.c
73b847
@@ -350,21 +350,21 @@ fpi_device_get_virtual_env (FpDevice *device)
73b847
  * fpi_device_get_current_action:
73b847
  * @device: The #FpDevice
73b847
  *
73b847
- * Get the currently ongoing action or %FP_DEVICE_ACTION_NONE if there
73b847
+ * Get the currently ongoing action or %FPI_DEVICE_ACTION_NONE if there
73b847
  * is no operation at this time.
73b847
  *
73b847
  * This is useful for drivers that might share code paths between different
73b847
  * actions (e.g. verify and identify) and want to find out again later which
73b847
  * action was started in the beginning.
73b847
  *
73b847
- * Returns: The ongoing #FpDeviceAction
73b847
+ * Returns: The ongoing #FpiDeviceAction
73b847
  */
73b847
-FpDeviceAction
73b847
+FpiDeviceAction
73b847
 fpi_device_get_current_action (FpDevice *device)
73b847
 {
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
-  g_return_val_if_fail (FP_IS_DEVICE (device), FP_DEVICE_ACTION_NONE);
73b847
+  g_return_val_if_fail (FP_IS_DEVICE (device), FPI_DEVICE_ACTION_NONE);
73b847
 
73b847
   return priv->current_action;
73b847
 }
73b847
@@ -387,7 +387,7 @@ fpi_device_action_is_cancelled (FpDevice *device)
73b847
   GCancellable *cancellable;
73b847
 
73b847
   g_return_val_if_fail (FP_IS_DEVICE (device), TRUE);
73b847
-  g_return_val_if_fail (priv->current_action != FP_DEVICE_ACTION_NONE, TRUE);
73b847
+  g_return_val_if_fail (priv->current_action != FPI_DEVICE_ACTION_NONE, TRUE);
73b847
 
73b847
   cancellable = g_task_get_cancellable (priv->current_task);
73b847
 
73b847
@@ -435,7 +435,7 @@ fpi_device_get_enroll_data (FpDevice *device,
73b847
   FpEnrollData *data;
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_ENROLL);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_ENROLL);
73b847
 
73b847
   data = g_task_get_task_data (priv->current_task);
73b847
   g_assert (data);
73b847
@@ -458,7 +458,7 @@ fpi_device_get_capture_data (FpDevice *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_CAPTURE);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_CAPTURE);
73b847
 
73b847
   if (wait_for_finger)
73b847
     *wait_for_finger = priv->wait_for_finger;
73b847
@@ -478,7 +478,7 @@ fpi_device_get_verify_data (FpDevice *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_VERIFY);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_VERIFY);
73b847
 
73b847
   if (print)
73b847
     *print = g_task_get_task_data (priv->current_task);
73b847
@@ -498,7 +498,7 @@ fpi_device_get_identify_data (FpDevice   *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_IDENTIFY);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_IDENTIFY);
73b847
 
73b847
   if (prints)
73b847
     *prints = g_task_get_task_data (priv->current_task);
73b847
@@ -518,7 +518,7 @@ fpi_device_get_delete_data (FpDevice *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_DELETE);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_DELETE);
73b847
 
73b847
   if (print)
73b847
     *print = g_task_get_task_data (priv->current_task);
73b847
@@ -542,7 +542,7 @@ fpi_device_get_cancellable (FpDevice *device)
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_val_if_fail (FP_IS_DEVICE (device), NULL);
73b847
-  g_return_val_if_fail (priv->current_action != FP_DEVICE_ACTION_NONE, NULL);
73b847
+  g_return_val_if_fail (priv->current_action != FPI_DEVICE_ACTION_NONE, NULL);
73b847
 
73b847
   return g_task_get_cancellable (priv->current_task);
73b847
 }
73b847
@@ -564,7 +564,7 @@ fpi_device_action_error (FpDevice *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action != FP_DEVICE_ACTION_NONE);
73b847
+  g_return_if_fail (priv->current_action != FPI_DEVICE_ACTION_NONE);
73b847
 
73b847
   if (error != NULL)
73b847
     {
73b847
@@ -579,44 +579,44 @@ fpi_device_action_error (FpDevice *device,
73b847
 
73b847
   switch (priv->current_action)
73b847
     {
73b847
-    case FP_DEVICE_ACTION_PROBE:
73b847
+    case FPI_DEVICE_ACTION_PROBE:
73b847
       fpi_device_probe_complete (device, NULL, NULL, error);
73b847
       break;
73b847
 
73b847
-    case FP_DEVICE_ACTION_OPEN:
73b847
+    case FPI_DEVICE_ACTION_OPEN:
73b847
       fpi_device_open_complete (device, error);
73b847
       break;
73b847
 
73b847
-    case FP_DEVICE_ACTION_CLOSE:
73b847
+    case FPI_DEVICE_ACTION_CLOSE:
73b847
       fpi_device_close_complete (device, error);
73b847
       break;
73b847
 
73b847
-    case FP_DEVICE_ACTION_ENROLL:
73b847
+    case FPI_DEVICE_ACTION_ENROLL:
73b847
       fpi_device_enroll_complete (device, NULL, error);
73b847
       break;
73b847
 
73b847
-    case FP_DEVICE_ACTION_VERIFY:
73b847
+    case FPI_DEVICE_ACTION_VERIFY:
73b847
       fpi_device_verify_complete (device, FPI_MATCH_ERROR, NULL, error);
73b847
       break;
73b847
 
73b847
-    case FP_DEVICE_ACTION_IDENTIFY:
73b847
+    case FPI_DEVICE_ACTION_IDENTIFY:
73b847
       fpi_device_identify_complete (device, NULL, NULL, error);
73b847
       break;
73b847
 
73b847
-    case FP_DEVICE_ACTION_CAPTURE:
73b847
+    case FPI_DEVICE_ACTION_CAPTURE:
73b847
       fpi_device_capture_complete (device, NULL, error);
73b847
       break;
73b847
 
73b847
-    case FP_DEVICE_ACTION_DELETE:
73b847
+    case FPI_DEVICE_ACTION_DELETE:
73b847
       fpi_device_delete_complete (device, error);
73b847
       break;
73b847
 
73b847
-    case FP_DEVICE_ACTION_LIST:
73b847
+    case FPI_DEVICE_ACTION_LIST:
73b847
       fpi_device_list_complete (device, NULL, error);
73b847
       break;
73b847
 
73b847
     default:
73b847
-    case FP_DEVICE_ACTION_NONE:
73b847
+    case FPI_DEVICE_ACTION_NONE:
73b847
       g_return_if_reached ();
73b847
       break;
73b847
     }
73b847
@@ -663,7 +663,7 @@ fp_device_task_return_in_idle_cb (gpointer user_data)
73b847
   g_debug ("Completing action %d in idle!", priv->current_action);
73b847
 
73b847
   task = g_steal_pointer (&priv->current_task);
73b847
-  priv->current_action = FP_DEVICE_ACTION_NONE;
73b847
+  priv->current_action = FPI_DEVICE_ACTION_NONE;
73b847
   priv->current_task_idle_return_source = NULL;
73b847
 
73b847
   switch (data->type)
73b847
@@ -746,7 +746,7 @@ fpi_device_probe_complete (FpDevice    *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_PROBE);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_PROBE);
73b847
 
73b847
   g_debug ("Device reported probe completion");
73b847
 
73b847
@@ -788,7 +788,7 @@ fpi_device_open_complete (FpDevice *device, GError *error)
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_OPEN);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_OPEN);
73b847
 
73b847
   g_debug ("Device reported open completion");
73b847
 
73b847
@@ -821,7 +821,7 @@ fpi_device_close_complete (FpDevice *device, GError *error)
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_CLOSE);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_CLOSE);
73b847
 
73b847
   g_debug ("Device reported close completion");
73b847
 
73b847
@@ -873,7 +873,7 @@ fpi_device_enroll_complete (FpDevice *device, FpPrint *print, GError *error)
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_ENROLL);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_ENROLL);
73b847
 
73b847
   g_debug ("Device reported enroll completion");
73b847
 
73b847
@@ -923,7 +923,7 @@ fpi_device_verify_complete (FpDevice      *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_VERIFY);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_VERIFY);
73b847
 
73b847
   g_debug ("Device reported verify completion");
73b847
 
73b847
@@ -980,7 +980,7 @@ fpi_device_identify_complete (FpDevice *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_IDENTIFY);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_IDENTIFY);
73b847
 
73b847
   g_debug ("Device reported identify completion");
73b847
 
73b847
@@ -1027,7 +1027,7 @@ fpi_device_capture_complete (FpDevice *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_CAPTURE);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_CAPTURE);
73b847
 
73b847
   g_debug ("Device reported capture completion");
73b847
 
73b847
@@ -1072,7 +1072,7 @@ fpi_device_delete_complete (FpDevice *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_DELETE);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_DELETE);
73b847
 
73b847
   g_debug ("Device reported deletion completion");
73b847
 
73b847
@@ -1106,7 +1106,7 @@ fpi_device_list_complete (FpDevice  *device,
73b847
   FpDevicePrivate *priv = fp_device_get_instance_private (device);
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_LIST);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_LIST);
73b847
 
73b847
   g_debug ("Device reported listing completion");
73b847
 
73b847
@@ -1150,7 +1150,7 @@ fpi_device_enroll_progress (FpDevice *device,
73b847
   FpEnrollData *data;
73b847
 
73b847
   g_return_if_fail (FP_IS_DEVICE (device));
73b847
-  g_return_if_fail (priv->current_action == FP_DEVICE_ACTION_ENROLL);
73b847
+  g_return_if_fail (priv->current_action == FPI_DEVICE_ACTION_ENROLL);
73b847
   g_return_if_fail (error == NULL || error->domain == FP_DEVICE_RETRY);
73b847
 
73b847
   g_debug ("Device reported enroll progress, reported %i of %i have been completed", completed_stages, priv->nr_enroll_stages);
73b847
diff --git a/libfprint/fpi-device.h b/libfprint/fpi-device.h
73b847
index 2333ae2..3d66ee5 100644
73b847
--- a/libfprint/fpi-device.h
73b847
+++ b/libfprint/fpi-device.h
73b847
@@ -142,39 +142,39 @@ typedef void (*FpTimeoutFunc) (FpDevice *device,
73b847
                                gpointer  user_data);
73b847
 
73b847
 /**
73b847
- * FpDeviceAction:
73b847
- * @FP_DEVICE_ACTION_NONE: No action is active.
73b847
- * @FP_DEVICE_ACTION_PROBE: Probe device for support and information.
73b847
- * @FP_DEVICE_ACTION_OPEN: Device is currently being opened.
73b847
- * @FP_DEVICE_ACTION_CLOSE: Device is currently being closed.
73b847
- * @FP_DEVICE_ACTION_ENROLL: Device is currently enrolling.
73b847
- * @FP_DEVICE_ACTION_VERIFY: Device is currently verifying.
73b847
- * @FP_DEVICE_ACTION_IDENTIFY: Device is currently identifying.
73b847
- * @FP_DEVICE_ACTION_CAPTURE: Device is currently capturing an image.
73b847
- * @FP_DEVICE_ACTION_LIST: Device stored prints are being queried.
73b847
- * @FP_DEVICE_ACTION_DELETE: Device stored print is being deleted.
73b847
+ * FpiDeviceAction:
73b847
+ * @FPI_DEVICE_ACTION_NONE: No action is active.
73b847
+ * @FPI_DEVICE_ACTION_PROBE: Probe device for support and information.
73b847
+ * @FPI_DEVICE_ACTION_OPEN: Device is currently being opened.
73b847
+ * @FPI_DEVICE_ACTION_CLOSE: Device is currently being closed.
73b847
+ * @FPI_DEVICE_ACTION_ENROLL: Device is currently enrolling.
73b847
+ * @FPI_DEVICE_ACTION_VERIFY: Device is currently verifying.
73b847
+ * @FPI_DEVICE_ACTION_IDENTIFY: Device is currently identifying.
73b847
+ * @FPI_DEVICE_ACTION_CAPTURE: Device is currently capturing an image.
73b847
+ * @FPI_DEVICE_ACTION_LIST: Device stored prints are being queried.
73b847
+ * @FPI_DEVICE_ACTION_DELETE: Device stored print is being deleted.
73b847
  *
73b847
  * Current active action of the device. A driver can retrieve the action.
73b847
  */
73b847
 typedef enum {
73b847
-  FP_DEVICE_ACTION_NONE = 0,
73b847
-  FP_DEVICE_ACTION_PROBE,
73b847
-  FP_DEVICE_ACTION_OPEN,
73b847
-  FP_DEVICE_ACTION_CLOSE,
73b847
-  FP_DEVICE_ACTION_ENROLL,
73b847
-  FP_DEVICE_ACTION_VERIFY,
73b847
-  FP_DEVICE_ACTION_IDENTIFY,
73b847
-  FP_DEVICE_ACTION_CAPTURE,
73b847
-  FP_DEVICE_ACTION_LIST,
73b847
-  FP_DEVICE_ACTION_DELETE,
73b847
-} FpDeviceAction;
73b847
+  FPI_DEVICE_ACTION_NONE = 0,
73b847
+  FPI_DEVICE_ACTION_PROBE,
73b847
+  FPI_DEVICE_ACTION_OPEN,
73b847
+  FPI_DEVICE_ACTION_CLOSE,
73b847
+  FPI_DEVICE_ACTION_ENROLL,
73b847
+  FPI_DEVICE_ACTION_VERIFY,
73b847
+  FPI_DEVICE_ACTION_IDENTIFY,
73b847
+  FPI_DEVICE_ACTION_CAPTURE,
73b847
+  FPI_DEVICE_ACTION_LIST,
73b847
+  FPI_DEVICE_ACTION_DELETE,
73b847
+} FpiDeviceAction;
73b847
 
73b847
 GUsbDevice  *fpi_device_get_usb_device (FpDevice *device);
73b847
 const gchar *fpi_device_get_virtual_env (FpDevice *device);
73b847
 //const gchar *fpi_device_get_spi_dev (FpDevice *device);
73b847
 
73b847
 
73b847
-FpDeviceAction fpi_device_get_current_action (FpDevice *device);
73b847
+FpiDeviceAction fpi_device_get_current_action (FpDevice *device);
73b847
 gboolean fpi_device_action_is_cancelled (FpDevice *device);
73b847
 
73b847
 GError * fpi_device_retry_new (FpDeviceRetry error);
73b847
diff --git a/libfprint/fpi-image-device.c b/libfprint/fpi-image-device.c
73b847
index 6e5802e..e03d60c 100644
73b847
--- a/libfprint/fpi-image-device.c
73b847
+++ b/libfprint/fpi-image-device.c
73b847
@@ -54,7 +54,7 @@ fpi_image_device_activate (FpImageDevice *self)
73b847
 
73b847
   /* We don't have a neutral ACTIVE state, but we always will
73b847
    * go into WAIT_FINGER_ON afterwards. */
73b847
-  priv->state = FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON;
73b847
+  priv->state = FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON;
73b847
   g_object_notify (G_OBJECT (self), "fp-image-device-state");
73b847
 
73b847
   /* We might have been waiting for deactivation to finish before
73b847
@@ -79,10 +79,10 @@ fpi_image_device_deactivate (FpImageDevice *self)
73b847
       fp_dbg ("Already deactivated, ignoring request.");
73b847
       return;
73b847
     }
73b847
-  if (!priv->cancelling && priv->state == FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON)
73b847
+  if (!priv->cancelling && priv->state == FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON)
73b847
     g_warning ("Deactivating image device while waiting for finger, this should not happen.");
73b847
 
73b847
-  priv->state = FP_IMAGE_DEVICE_STATE_INACTIVE;
73b847
+  priv->state = FPI_IMAGE_DEVICE_STATE_INACTIVE;
73b847
   g_object_notify (G_OBJECT (self), "fp-image-device-state");
73b847
 
73b847
   fp_dbg ("Deactivating image device\n");
73b847
@@ -92,12 +92,12 @@ fpi_image_device_deactivate (FpImageDevice *self)
73b847
 /* Static helper functions */
73b847
 
73b847
 static void
73b847
-fp_image_device_change_state (FpImageDevice *self, FpImageDeviceState state)
73b847
+fp_image_device_change_state (FpImageDevice *self, FpiImageDeviceState state)
73b847
 {
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
 
73b847
   /* Cannot change to inactive using this function. */
73b847
-  g_assert (state != FP_IMAGE_DEVICE_STATE_INACTIVE);
73b847
+  g_assert (state != FPI_IMAGE_DEVICE_STATE_INACTIVE);
73b847
 
73b847
   /* We might have been waiting for the finger to go OFF to start the
73b847
    * next operation. */
73b847
@@ -118,7 +118,7 @@ fp_image_device_enroll_maybe_await_finger_on (FpImageDevice *self)
73b847
   if (priv->enroll_await_on_pending)
73b847
     {
73b847
       priv->enroll_await_on_pending = FALSE;
73b847
-      fp_image_device_change_state (self, FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON);
73b847
+      fp_image_device_change_state (self, FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON);
73b847
     }
73b847
   else
73b847
     {
73b847
@@ -135,7 +135,7 @@ fpi_image_device_minutiae_detected (GObject *source_object, GAsyncResult *res, g
73b847
   FpImageDevice *self = FP_IMAGE_DEVICE (user_data);
73b847
   FpDevice *device = FP_DEVICE (self);
73b847
   FpImageDevicePrivate *priv;
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
   /* Note: We rely on the device to not disappear during an operation. */
73b847
 
73b847
@@ -159,7 +159,7 @@ fpi_image_device_minutiae_detected (GObject *source_object, GAsyncResult *res, g
73b847
   priv = fp_image_device_get_instance_private (FP_IMAGE_DEVICE (device));
73b847
   action = fpi_device_get_current_action (device);
73b847
 
73b847
-  if (action == FP_DEVICE_ACTION_CAPTURE)
73b847
+  if (action == FPI_DEVICE_ACTION_CAPTURE)
73b847
     {
73b847
       fpi_device_capture_complete (device, g_steal_pointer (&image), error);
73b847
       fpi_image_device_deactivate (self);
73b847
@@ -169,12 +169,12 @@ fpi_image_device_minutiae_detected (GObject *source_object, GAsyncResult *res, g
73b847
   if (!error)
73b847
     {
73b847
       print = fp_print_new (device);
73b847
-      fpi_print_set_type (print, FP_PRINT_NBIS);
73b847
+      fpi_print_set_type (print, FPI_PRINT_NBIS);
73b847
       if (!fpi_print_add_from_image (print, image, &error))
73b847
         g_clear_object (&print);
73b847
     }
73b847
 
73b847
-  if (action == FP_DEVICE_ACTION_ENROLL)
73b847
+  if (action == FPI_DEVICE_ACTION_ENROLL)
73b847
     {
73b847
       FpPrint *enroll_print;
73b847
       fpi_device_get_enroll_data (device, &enroll_print);
73b847
@@ -199,7 +199,7 @@ fpi_image_device_minutiae_detected (GObject *source_object, GAsyncResult *res, g
73b847
           fp_image_device_enroll_maybe_await_finger_on (FP_IMAGE_DEVICE (device));
73b847
         }
73b847
     }
73b847
-  else if (action == FP_DEVICE_ACTION_VERIFY)
73b847
+  else if (action == FPI_DEVICE_ACTION_VERIFY)
73b847
     {
73b847
       FpPrint *template;
73b847
       FpiMatchResult result;
73b847
@@ -213,7 +213,7 @@ fpi_image_device_minutiae_detected (GObject *source_object, GAsyncResult *res, g
73b847
       fpi_device_verify_complete (device, result, g_steal_pointer (&print), error);
73b847
       fpi_image_device_deactivate (self);
73b847
     }
73b847
-  else if (action == FP_DEVICE_ACTION_IDENTIFY)
73b847
+  else if (action == FPI_DEVICE_ACTION_IDENTIFY)
73b847
     {
73b847
       gint i;
73b847
       GPtrArray *templates;
73b847
@@ -285,9 +285,9 @@ fpi_image_device_report_finger_status (FpImageDevice *self,
73b847
 {
73b847
   FpDevice *device = FP_DEVICE (self);
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
-  if (priv->state == FP_IMAGE_DEVICE_STATE_INACTIVE)
73b847
+  if (priv->state == FPI_IMAGE_DEVICE_STATE_INACTIVE)
73b847
     {
73b847
       /* Do we really want to always ignore such reports? We could
73b847
        * also track the state in case the user had the finger on
73b847
@@ -300,16 +300,16 @@ fpi_image_device_report_finger_status (FpImageDevice *self,
73b847
 
73b847
   action = fpi_device_get_current_action (device);
73b847
 
73b847
-  g_assert (action != FP_DEVICE_ACTION_OPEN);
73b847
-  g_assert (action != FP_DEVICE_ACTION_CLOSE);
73b847
+  g_assert (action != FPI_DEVICE_ACTION_OPEN);
73b847
+  g_assert (action != FPI_DEVICE_ACTION_CLOSE);
73b847
 
73b847
   g_debug ("Image device reported finger status: %s", present ? "on" : "off");
73b847
 
73b847
-  if (present && priv->state == FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON)
73b847
+  if (present && priv->state == FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON)
73b847
     {
73b847
-      fp_image_device_change_state (self, FP_IMAGE_DEVICE_STATE_CAPTURE);
73b847
+      fp_image_device_change_state (self, FPI_IMAGE_DEVICE_STATE_CAPTURE);
73b847
     }
73b847
-  else if (!present && priv->state == FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF)
73b847
+  else if (!present && priv->state == FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF)
73b847
     {
73b847
       /* We need to deactivate or continue to await finger */
73b847
 
73b847
@@ -324,7 +324,7 @@ fpi_image_device_report_finger_status (FpImageDevice *self,
73b847
        * minutiae detection to prevent deactivation (without cancellation)
73b847
        * from the AWAIT_FINGER_ON state.
73b847
        */
73b847
-      if (action != FP_DEVICE_ACTION_ENROLL)
73b847
+      if (action != FPI_DEVICE_ACTION_ENROLL)
73b847
         fpi_image_device_deactivate (self);
73b847
       else
73b847
         fp_image_device_enroll_maybe_await_finger_on (self);
73b847
@@ -349,18 +349,18 @@ void
73b847
 fpi_image_device_image_captured (FpImageDevice *self, FpImage *image)
73b847
 {
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
   action = fpi_device_get_current_action (FP_DEVICE (self));
73b847
 
73b847
   g_return_if_fail (image != NULL);
73b847
-  g_return_if_fail (priv->state == FP_IMAGE_DEVICE_STATE_CAPTURE);
73b847
-  g_return_if_fail (action == FP_DEVICE_ACTION_ENROLL ||
73b847
-                    action == FP_DEVICE_ACTION_VERIFY ||
73b847
-                    action == FP_DEVICE_ACTION_IDENTIFY ||
73b847
-                    action == FP_DEVICE_ACTION_CAPTURE);
73b847
+  g_return_if_fail (priv->state == FPI_IMAGE_DEVICE_STATE_CAPTURE);
73b847
+  g_return_if_fail (action == FPI_DEVICE_ACTION_ENROLL ||
73b847
+                    action == FPI_DEVICE_ACTION_VERIFY ||
73b847
+                    action == FPI_DEVICE_ACTION_IDENTIFY ||
73b847
+                    action == FPI_DEVICE_ACTION_CAPTURE);
73b847
 
73b847
-  fp_image_device_change_state (self, FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF);
73b847
+  fp_image_device_change_state (self, FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF);
73b847
 
73b847
   g_debug ("Image device captured an image");
73b847
 
73b847
@@ -385,22 +385,22 @@ void
73b847
 fpi_image_device_retry_scan (FpImageDevice *self, FpDeviceRetry retry)
73b847
 {
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
   GError *error;
73b847
 
73b847
   action = fpi_device_get_current_action (FP_DEVICE (self));
73b847
 
73b847
   /* We might be waiting for a finger at this point, so just accept
73b847
    * all but INACTIVE */
73b847
-  g_return_if_fail (priv->state != FP_IMAGE_DEVICE_STATE_INACTIVE);
73b847
-  g_return_if_fail (action == FP_DEVICE_ACTION_ENROLL ||
73b847
-                    action == FP_DEVICE_ACTION_VERIFY ||
73b847
-                    action == FP_DEVICE_ACTION_IDENTIFY ||
73b847
-                    action == FP_DEVICE_ACTION_CAPTURE);
73b847
+  g_return_if_fail (priv->state != FPI_IMAGE_DEVICE_STATE_INACTIVE);
73b847
+  g_return_if_fail (action == FPI_DEVICE_ACTION_ENROLL ||
73b847
+                    action == FPI_DEVICE_ACTION_VERIFY ||
73b847
+                    action == FPI_DEVICE_ACTION_IDENTIFY ||
73b847
+                    action == FPI_DEVICE_ACTION_CAPTURE);
73b847
 
73b847
   error = fpi_device_retry_new (retry);
73b847
 
73b847
-  if (action == FP_DEVICE_ACTION_ENROLL)
73b847
+  if (action == FPI_DEVICE_ACTION_ENROLL)
73b847
     {
73b847
       g_debug ("Reporting retry during enroll");
73b847
       fpi_device_enroll_progress (FP_DEVICE (self), priv->enroll_stage, NULL, error);
73b847
@@ -438,17 +438,17 @@ fpi_image_device_session_error (FpImageDevice *self, GError *error)
73b847
 
73b847
   if (!priv->active)
73b847
     {
73b847
-      FpDeviceAction action = fpi_device_get_current_action (FP_DEVICE (self));
73b847
+      FpiDeviceAction action = fpi_device_get_current_action (FP_DEVICE (self));
73b847
       g_warning ("Driver reported session error, but device is inactive.");
73b847
 
73b847
-      if (action != FP_DEVICE_ACTION_NONE)
73b847
+      if (action != FPI_DEVICE_ACTION_NONE)
73b847
         {
73b847
           g_warning ("Translating to activation failure!");
73b847
           fpi_image_device_activate_complete (self, error);
73b847
           return;
73b847
         }
73b847
     }
73b847
-  else if (priv->state == FP_IMAGE_DEVICE_STATE_INACTIVE)
73b847
+  else if (priv->state == FPI_IMAGE_DEVICE_STATE_INACTIVE)
73b847
     {
73b847
       g_warning ("Driver reported session error; translating to deactivation failure.");
73b847
       fpi_image_device_deactivate_complete (self, error);
73b847
@@ -473,15 +473,15 @@ void
73b847
 fpi_image_device_activate_complete (FpImageDevice *self, GError *error)
73b847
 {
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
   action = fpi_device_get_current_action (FP_DEVICE (self));
73b847
 
73b847
   g_return_if_fail (priv->active == FALSE);
73b847
-  g_return_if_fail (action == FP_DEVICE_ACTION_ENROLL ||
73b847
-                    action == FP_DEVICE_ACTION_VERIFY ||
73b847
-                    action == FP_DEVICE_ACTION_IDENTIFY ||
73b847
-                    action == FP_DEVICE_ACTION_CAPTURE);
73b847
+  g_return_if_fail (action == FPI_DEVICE_ACTION_ENROLL ||
73b847
+                    action == FPI_DEVICE_ACTION_VERIFY ||
73b847
+                    action == FPI_DEVICE_ACTION_IDENTIFY ||
73b847
+                    action == FPI_DEVICE_ACTION_CAPTURE);
73b847
 
73b847
   if (error)
73b847
     {
73b847
@@ -496,7 +496,7 @@ fpi_image_device_activate_complete (FpImageDevice *self, GError *error)
73b847
 
73b847
   /* We always want to capture at this point, move to AWAIT_FINGER
73b847
    * state. */
73b847
-  fp_image_device_change_state (self, FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON);
73b847
+  fp_image_device_change_state (self, FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON);
73b847
 }
73b847
 
73b847
 /**
73b847
@@ -511,10 +511,10 @@ fpi_image_device_deactivate_complete (FpImageDevice *self, GError *error)
73b847
 {
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
   FpImageDeviceClass *cls = FP_IMAGE_DEVICE_GET_CLASS (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
   g_return_if_fail (priv->active == TRUE);
73b847
-  g_return_if_fail (priv->state == FP_IMAGE_DEVICE_STATE_INACTIVE);
73b847
+  g_return_if_fail (priv->state == FPI_IMAGE_DEVICE_STATE_INACTIVE);
73b847
 
73b847
   g_debug ("Image device deactivation completed");
73b847
 
73b847
@@ -527,7 +527,7 @@ fpi_image_device_deactivate_complete (FpImageDevice *self, GError *error)
73b847
 
73b847
   /* Special case, if we should be closing, but didn't due to a running
73b847
    * deactivation, then do so now. */
73b847
-  if (action == FP_DEVICE_ACTION_CLOSE)
73b847
+  if (action == FPI_DEVICE_ACTION_CLOSE)
73b847
     {
73b847
       cls->img_close (self);
73b847
       return;
73b847
@@ -553,16 +553,16 @@ void
73b847
 fpi_image_device_open_complete (FpImageDevice *self, GError *error)
73b847
 {
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
   action = fpi_device_get_current_action (FP_DEVICE (self));
73b847
 
73b847
   g_return_if_fail (priv->active == FALSE);
73b847
-  g_return_if_fail (action == FP_DEVICE_ACTION_OPEN);
73b847
+  g_return_if_fail (action == FPI_DEVICE_ACTION_OPEN);
73b847
 
73b847
   g_debug ("Image device open completed");
73b847
 
73b847
-  priv->state = FP_IMAGE_DEVICE_STATE_INACTIVE;
73b847
+  priv->state = FPI_IMAGE_DEVICE_STATE_INACTIVE;
73b847
   g_object_notify (G_OBJECT (self), "fp-image-device-state");
73b847
 
73b847
   fpi_device_open_complete (FP_DEVICE (self), error);
73b847
@@ -579,16 +579,16 @@ void
73b847
 fpi_image_device_close_complete (FpImageDevice *self, GError *error)
73b847
 {
73b847
   FpImageDevicePrivate *priv = fp_image_device_get_instance_private (self);
73b847
-  FpDeviceAction action;
73b847
+  FpiDeviceAction action;
73b847
 
73b847
   action = fpi_device_get_current_action (FP_DEVICE (self));
73b847
 
73b847
   g_debug ("Image device close completed");
73b847
 
73b847
   g_return_if_fail (priv->active == FALSE);
73b847
-  g_return_if_fail (action == FP_DEVICE_ACTION_CLOSE);
73b847
+  g_return_if_fail (action == FPI_DEVICE_ACTION_CLOSE);
73b847
 
73b847
-  priv->state = FP_IMAGE_DEVICE_STATE_INACTIVE;
73b847
+  priv->state = FPI_IMAGE_DEVICE_STATE_INACTIVE;
73b847
   g_object_notify (G_OBJECT (self), "fp-image-device-state");
73b847
 
73b847
   fpi_device_close_complete (FP_DEVICE (self), error);
73b847
diff --git a/libfprint/fpi-image-device.h b/libfprint/fpi-image-device.h
73b847
index 06d1a64..155390d 100644
73b847
--- a/libfprint/fpi-image-device.h
73b847
+++ b/libfprint/fpi-image-device.h
73b847
@@ -23,11 +23,11 @@
73b847
 #include "fp-image-device.h"
73b847
 
73b847
 /**
73b847
- * FpImageDeviceState:
73b847
- * @FP_IMAGE_DEVICE_STATE_INACTIVE: inactive
73b847
- * @FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON: waiting for the finger to be pressed or swiped
73b847
- * @FP_IMAGE_DEVICE_STATE_CAPTURE: capturing an image
73b847
- * @FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF: waiting for the finger to be removed
73b847
+ * FpiImageDeviceState:
73b847
+ * @FPI_IMAGE_DEVICE_STATE_INACTIVE: inactive
73b847
+ * @FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON: waiting for the finger to be pressed or swiped
73b847
+ * @FPI_IMAGE_DEVICE_STATE_CAPTURE: capturing an image
73b847
+ * @FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF: waiting for the finger to be removed
73b847
  *
73b847
  * The state of an imaging device while doing a capture. The state is
73b847
  * passed through to the driver using the ::activate() or ::change_state() vfuncs.
73b847
@@ -37,11 +37,11 @@
73b847
  * unconditionally if the device supports raw capturing.
73b847
  */
73b847
 typedef enum {
73b847
-  FP_IMAGE_DEVICE_STATE_INACTIVE,
73b847
-  FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON,
73b847
-  FP_IMAGE_DEVICE_STATE_CAPTURE,
73b847
-  FP_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF,
73b847
-} FpImageDeviceState;
73b847
+  FPI_IMAGE_DEVICE_STATE_INACTIVE,
73b847
+  FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_ON,
73b847
+  FPI_IMAGE_DEVICE_STATE_CAPTURE,
73b847
+  FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF,
73b847
+} FpiImageDeviceState;
73b847
 
73b847
 /**
73b847
  * FpImageDeviceClass:
73b847
@@ -90,8 +90,8 @@ struct _FpImageDeviceClass
73b847
   void          (*img_open)     (FpImageDevice *dev);
73b847
   void          (*img_close)    (FpImageDevice *dev);
73b847
   void          (*activate)     (FpImageDevice *dev);
73b847
-  void          (*change_state) (FpImageDevice     *dev,
73b847
-                                 FpImageDeviceState state);
73b847
+  void          (*change_state) (FpImageDevice      *dev,
73b847
+                                 FpiImageDeviceState state);
73b847
   void          (*deactivate)   (FpImageDevice *dev);
73b847
 };
73b847
 
73b847
diff --git a/libfprint/fpi-print.c b/libfprint/fpi-print.c
73b847
index a407dd9..7a5e1e2 100644
73b847
--- a/libfprint/fpi-print.c
73b847
+++ b/libfprint/fpi-print.c
73b847
@@ -38,15 +38,15 @@
73b847
  * @print: A #FpPrint
73b847
  * @add: Print to append to @print
73b847
  *
73b847
- * Appends the single #FP_PRINT_NBIS print from @add to the collection of
73b847
- * prints in @print. Both print objects need to be of type #FP_PRINT_NBIS
73b847
+ * Appends the single #FPI_PRINT_NBIS print from @add to the collection of
73b847
+ * prints in @print. Both print objects need to be of type #FPI_PRINT_NBIS
73b847
  * for this to work.
73b847
  */
73b847
 void
73b847
 fpi_print_add_print (FpPrint *print, FpPrint *add)
73b847
 {
73b847
-  g_return_if_fail (print->type == FP_PRINT_NBIS);
73b847
-  g_return_if_fail (add->type == FP_PRINT_NBIS);
73b847
+  g_return_if_fail (print->type == FPI_PRINT_NBIS);
73b847
+  g_return_if_fail (add->type == FPI_PRINT_NBIS);
73b847
 
73b847
   g_assert (add->prints->len == 1);
73b847
   g_ptr_array_add (print->prints, g_memdup (add->prints->pdata[0], sizeof (struct xyt_struct)));
73b847
@@ -62,15 +62,15 @@ fpi_print_add_print (FpPrint *print, FpPrint *add)
73b847
  * print passed during enrollment.
73b847
  */
73b847
 void
73b847
-fpi_print_set_type (FpPrint    *print,
73b847
-                    FpPrintType type)
73b847
+fpi_print_set_type (FpPrint     *print,
73b847
+                    FpiPrintType type)
73b847
 {
73b847
   g_return_if_fail (FP_IS_PRINT (print));
73b847
   /* We only allow setting this once! */
73b847
-  g_return_if_fail (print->type == FP_PRINT_UNDEFINED);
73b847
+  g_return_if_fail (print->type == FPI_PRINT_UNDEFINED);
73b847
 
73b847
   print->type = type;
73b847
-  if (print->type == FP_PRINT_NBIS)
73b847
+  if (print->type == FPI_PRINT_NBIS)
73b847
     {
73b847
       g_assert_null (print->prints);
73b847
       print->prints = g_ptr_array_new_with_free_func (g_free);
73b847
@@ -143,7 +143,7 @@ minutiae_to_xyt (struct fp_minutiae *minutiae,
73b847
  * @error: Return location for error
73b847
  *
73b847
  * Extracts the minutiae from the given image and adds it to @print of
73b847
- * type #FP_PRINT_NBIS.
73b847
+ * type #FPI_PRINT_NBIS.
73b847
  *
73b847
  * The @image will be kept so that API users can get retrieve it e.g.
73b847
  * for debugging purposes.
73b847
@@ -159,7 +159,7 @@ fpi_print_add_from_image (FpPrint *print,
73b847
   struct fp_minutiae _minutiae;
73b847
   struct xyt_struct *xyt;
73b847
 
73b847
-  if (print->type != FP_PRINT_NBIS || !image)
73b847
+  if (print->type != FPI_PRINT_NBIS || !image)
73b847
     {
73b847
       g_set_error (error,
73b847
                    G_IO_ERROR,
73b847
@@ -203,7 +203,7 @@ fpi_print_add_from_image (FpPrint *print,
73b847
  * Match the newly scanned @print (containing exactly one print) against the
73b847
  * prints contained in @template which will have been stored during enrollment.
73b847
  *
73b847
- * Both @template and @print need to be of type #FP_PRINT_NBIS for this to
73b847
+ * Both @template and @print need to be of type #FPI_PRINT_NBIS for this to
73b847
  * work.
73b847
  *
73b847
  * Returns: Whether the prints match, @error will be set if #FPI_MATCH_ERROR is returned
73b847
@@ -216,7 +216,7 @@ fpi_print_bz3_match (FpPrint *template, FpPrint *print, gint bz3_threshold, GErr
73b847
   gint i;
73b847
 
73b847
   /* XXX: Use a different error type? */
73b847
-  if (template->type != FP_PRINT_NBIS || print->type != FP_PRINT_NBIS)
73b847
+  if (template->type != FPI_PRINT_NBIS || print->type != FPI_PRINT_NBIS)
73b847
     {
73b847
       *error = fpi_device_error_new_msg (FP_DEVICE_ERROR_NOT_SUPPORTED,
73b847
                                          "It is only possible to match NBIS type print data");
73b847
diff --git a/libfprint/fpi-print.h b/libfprint/fpi-print.h
73b847
index 04500d6..c969f12 100644
73b847
--- a/libfprint/fpi-print.h
73b847
+++ b/libfprint/fpi-print.h
73b847
@@ -7,16 +7,16 @@
73b847
 G_BEGIN_DECLS
73b847
 
73b847
 /**
73b847
- * FpPrintType:
73b847
- * @FP_PRINT_UNDEFINED: Undefined type, this happens prior to enrollment
73b847
- * @FP_PRINT_RAW: A raw print where the data is directly compared
73b847
- * @FP_PRINT_NBIS: NBIS minutiae comparison
73b847
+ * FpiPrintType:
73b847
+ * @FPI_PRINT_UNDEFINED: Undefined type, this happens prior to enrollment
73b847
+ * @FPI_PRINT_RAW: A raw print where the data is directly compared
73b847
+ * @FPI_PRINT_NBIS: NBIS minutiae comparison
73b847
  */
73b847
 typedef enum {
73b847
-  FP_PRINT_UNDEFINED = 0,
73b847
-  FP_PRINT_RAW,
73b847
-  FP_PRINT_NBIS,
73b847
-} FpPrintType;
73b847
+  FPI_PRINT_UNDEFINED = 0,
73b847
+  FPI_PRINT_RAW,
73b847
+  FPI_PRINT_NBIS,
73b847
+} FpiPrintType;
73b847
 
73b847
 /**
73b847
  * FpiMatchResult:
73b847
@@ -33,8 +33,8 @@ typedef enum {
73b847
 void     fpi_print_add_print (FpPrint *print,
73b847
                               FpPrint *add);
73b847
 
73b847
-void     fpi_print_set_type (FpPrint    *print,
73b847
-                             FpPrintType type);
73b847
+void     fpi_print_set_type (FpPrint     *print,
73b847
+                             FpiPrintType type);
73b847
 void     fpi_print_set_device_stored (FpPrint *print,
73b847
                                       gboolean device_stored);
73b847
 
73b847
diff --git a/tests/test-device-fake.c b/tests/test-device-fake.c
73b847
index e3b6f38..096d140 100644
73b847
--- a/tests/test-device-fake.c
73b847
+++ b/tests/test-device-fake.c
73b847
@@ -35,7 +35,7 @@ fpi_device_fake_probe (FpDevice *device)
73b847
   FpDeviceClass *dev_class = FP_DEVICE_GET_CLASS (device);
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_PROBE);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_PROBE);
73b847
 
73b847
   fake_dev->last_called_function = fpi_device_fake_probe;
73b847
   fpi_device_probe_complete (device, dev_class->id, dev_class->full_name,
73b847
@@ -47,7 +47,7 @@ fpi_device_fake_open (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_OPEN);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_OPEN);
73b847
 
73b847
   fake_dev->last_called_function = fpi_device_fake_open;
73b847
   fpi_device_open_complete (device, fake_dev->ret_error);
73b847
@@ -58,7 +58,7 @@ fpi_device_fake_close (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_CLOSE);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_CLOSE);
73b847
 
73b847
   fake_dev->last_called_function = fpi_device_fake_close;
73b847
   fpi_device_close_complete (device, fake_dev->ret_error);
73b847
@@ -70,7 +70,7 @@ fpi_device_fake_enroll (FpDevice *device)
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
   FpPrint *print = fake_dev->ret_print;
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_ENROLL);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_ENROLL);
73b847
   fpi_device_get_enroll_data (device, (FpPrint **) &fake_dev->action_data);
73b847
 
73b847
   if (!print && !fake_dev->ret_error)
73b847
@@ -86,7 +86,7 @@ fpi_device_fake_verify (FpDevice *device)
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
   FpPrint *print = fake_dev->ret_print;
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_VERIFY);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_VERIFY);
73b847
   fpi_device_get_verify_data (device, (FpPrint **) &fake_dev->action_data);
73b847
 
73b847
   if (!print && !fake_dev->ret_error)
73b847
@@ -103,7 +103,7 @@ fpi_device_fake_identify (FpDevice *device)
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
   FpPrint *match = fake_dev->ret_match;
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_IDENTIFY);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_IDENTIFY);
73b847
   fpi_device_get_identify_data (device, (GPtrArray **) &fake_dev->action_data);
73b847
 
73b847
   if (!match && !fake_dev->ret_error)
73b847
@@ -135,7 +135,7 @@ fpi_device_fake_capture (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_CAPTURE);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_CAPTURE);
73b847
   fpi_device_get_capture_data (device, (gboolean *) &fake_dev->action_data);
73b847
 
73b847
   fake_dev->last_called_function = fpi_device_fake_capture;
73b847
@@ -147,7 +147,7 @@ fpi_device_fake_list (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_LIST);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_LIST);
73b847
 
73b847
   fake_dev->last_called_function = fpi_device_fake_list;
73b847
   fpi_device_list_complete (device, fake_dev->ret_list, fake_dev->ret_error);
73b847
@@ -158,7 +158,7 @@ fpi_device_fake_delete (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_DELETE);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_DELETE);
73b847
   fpi_device_get_delete_data (device, (gpointer) & fake_dev->action_data);
73b847
 
73b847
   fake_dev->last_called_function = fpi_device_fake_delete;
73b847
@@ -170,7 +170,7 @@ fpi_device_fake_cancel (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), !=, FP_DEVICE_ACTION_NONE);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), !=, FPI_DEVICE_ACTION_NONE);
73b847
 
73b847
   fake_dev->last_called_function = fpi_device_fake_cancel;
73b847
 }
73b847
diff --git a/tests/test-fpi-device.c b/tests/test-fpi-device.c
73b847
index 165fc7f..b269ec4 100644
73b847
--- a/tests/test-fpi-device.c
73b847
+++ b/tests/test-fpi-device.c
73b847
@@ -528,7 +528,7 @@ test_driver_enroll_progress (void)
73b847
   device = auto_close_fake_device_new ();
73b847
 
73b847
   g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
73b847
-                         "*assertion*current_action*FP_DEVICE_ACTION_ENROLL*failed");
73b847
+                         "*assertion*current_action*FPI_DEVICE_ACTION_ENROLL*failed");
73b847
   fpi_device_enroll_progress (device, 0, NULL, NULL);
73b847
   g_test_assert_expected_messages ();
73b847
 
73b847
@@ -989,7 +989,7 @@ test_driver_current_action (void)
73b847
 {
73b847
   g_autoptr(FpDevice) device = g_object_new (FPI_TYPE_DEVICE_FAKE, NULL);
73b847
 
73b847
-  g_assert_cmpint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_NONE);
73b847
+  g_assert_cmpint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_NONE);
73b847
 }
73b847
 
73b847
 static void
73b847
@@ -997,7 +997,7 @@ test_driver_current_action_open_vfunc (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_OPEN);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_OPEN);
73b847
   fake_dev->last_called_function = test_driver_current_action_open_vfunc;
73b847
 
73b847
   fpi_device_open_complete (device, NULL);
73b847
@@ -1015,7 +1015,7 @@ test_driver_current_action_open (void)
73b847
   fake_dev = FPI_DEVICE_FAKE (device);
73b847
   g_assert (fake_dev->last_called_function == test_driver_current_action_open_vfunc);
73b847
 
73b847
-  g_assert_cmpint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_NONE);
73b847
+  g_assert_cmpint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_NONE);
73b847
 }
73b847
 
73b847
 static void
73b847
@@ -1023,7 +1023,7 @@ test_driver_action_get_cancellable_open_vfunc (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_OPEN);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_OPEN);
73b847
   fake_dev->last_called_function = test_driver_action_get_cancellable_open_vfunc;
73b847
 
73b847
   g_assert_true (G_IS_CANCELLABLE (fpi_device_get_cancellable (device)));
73b847
@@ -1054,7 +1054,7 @@ test_driver_action_get_cancellable_open_fail_vfunc (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_OPEN);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_OPEN);
73b847
   fake_dev->last_called_function = test_driver_action_get_cancellable_open_fail_vfunc;
73b847
 
73b847
   g_assert_false (G_IS_CANCELLABLE (fpi_device_get_cancellable (device)));
73b847
@@ -1084,7 +1084,7 @@ test_driver_action_get_cancellable_error (void)
73b847
   g_autoptr(FpDevice) device = g_object_new (FPI_TYPE_DEVICE_FAKE, NULL);
73b847
 
73b847
   g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
73b847
-                         "*assertion*current_action*FP_DEVICE_ACTION_NONE*failed");
73b847
+                         "*assertion*current_action*FPI_DEVICE_ACTION_NONE*failed");
73b847
   g_assert_null (fpi_device_get_cancellable (device));
73b847
   g_test_assert_expected_messages ();
73b847
 }
73b847
@@ -1094,7 +1094,7 @@ test_driver_action_is_cancelled_open_vfunc (FpDevice *device)
73b847
 {
73b847
   FpiDeviceFake *fake_dev = FPI_DEVICE_FAKE (device);
73b847
 
73b847
-  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FP_DEVICE_ACTION_OPEN);
73b847
+  g_assert_cmpuint (fpi_device_get_current_action (device), ==, FPI_DEVICE_ACTION_OPEN);
73b847
   fake_dev->last_called_function = test_driver_action_is_cancelled_open_vfunc;
73b847
 
73b847
   g_assert_true (G_IS_CANCELLABLE (fpi_device_get_cancellable (device)));
73b847
@@ -1132,7 +1132,7 @@ test_driver_action_is_cancelled_error (void)
73b847
   g_autoptr(FpDevice) device = g_object_new (FPI_TYPE_DEVICE_FAKE, NULL);
73b847
 
73b847
   g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
73b847
-                         "*assertion*current_action*FP_DEVICE_ACTION_NONE*failed");
73b847
+                         "*assertion*current_action*FPI_DEVICE_ACTION_NONE*failed");
73b847
   g_assert_true (fpi_device_action_is_cancelled (device));
73b847
   g_test_assert_expected_messages ();
73b847
 }
73b847
@@ -1194,7 +1194,7 @@ test_driver_action_error_error (void)
73b847
   g_autoptr(FpDevice) device = g_object_new (FPI_TYPE_DEVICE_FAKE, NULL);
73b847
 
73b847
   g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL,
73b847
-                         "*assertion*current_action*FP_DEVICE_ACTION_NONE*failed");
73b847
+                         "*assertion*current_action*FPI_DEVICE_ACTION_NONE*failed");
73b847
   fpi_device_action_error (device, NULL);
73b847
   g_test_assert_expected_messages ();
73b847
 }
73b847
-- 
73b847
2.24.1
73b847