Commit 2d534de9 authored by Christian Kellner's avatar Christian Kellner
Browse files

device: bolt_device_authorize is now public

parent 3d200ea4
......@@ -395,11 +395,6 @@ security_for_udev (struct udev_device *udev)
/* device authorization */
typedef void (*AuthCallback) (BoltDevice *dev,
gboolean ok,
GError **error,
gpointer user_data);
typedef struct
{
BoltSecurity level;
......@@ -533,7 +528,7 @@ authorize_thread_done (GObject *object,
}
static gboolean
gboolean
bolt_device_authorize (BoltDevice *dev,
AuthCallback callback,
gpointer user_data,
......
......@@ -32,6 +32,11 @@ G_BEGIN_DECLS
#define BOLT_TYPE_DEVICE bolt_device_get_type ()
G_DECLARE_FINAL_TYPE (BoltDevice, bolt_device, BOLT, DEVICE, BoltDBusDeviceSkeleton);
typedef void (*AuthCallback) (BoltDevice *dev,
gboolean ok,
GError **error,
gpointer user_data);
BoltDevice * bolt_device_new_for_udev (BoltManager *manager,
struct udev_device *udev,
GError **error);
......@@ -52,6 +57,11 @@ BoltStatus bolt_device_disconnected (BoltDevice *dev);
gboolean bolt_device_is_connected (BoltDevice *device);
gboolean bolt_device_authorize (BoltDevice *dev,
AuthCallback callback,
gpointer user_data,
GError **error);
guint bolt_device_get_key (BoltDevice *dev);
const char * bolt_device_get_name (BoltDevice *dev);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment