Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libfprint
fprintd
Commits
ea4114b9
Commit
ea4114b9
authored
Nov 19, 2008
by
Bastien Nocera
Committed by
Daniel Drake
Nov 21, 2008
Browse files
Make GetProperties async
as the rest of our functions.
parent
924e08d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/device.c
View file @
ea4114b9
...
...
@@ -55,7 +55,6 @@ static void fprint_device_delete_enrolled_fingers(FprintDevice *rdev,
const
char
*
username
,
DBusGMethodInvocation
*
context
);
static
void
fprint_device_get_properties
(
FprintDevice
*
rdev
,
GHashTable
**
props
,
DBusGMethodInvocation
*
context
);
#include
"device-dbus-glue.h"
...
...
@@ -1037,10 +1036,8 @@ static void fprint_device_delete_enrolled_fingers(FprintDevice *rdev,
dbus_g_method_return
(
context
);
}
static
void
fprint_device_get_properties
(
FprintDevice
*
rdev
,
GHashTable
**
props
,
DBusGMethodInvocation
*
context
)
static
void
fprint_device_get_properties
(
FprintDevice
*
rdev
,
DBusGMethodInvocation
*
context
)
{
FprintDevicePrivate
*
priv
=
DEVICE_GET_PRIVATE
(
rdev
);
GHashTable
*
table
;
...
...
@@ -1053,6 +1050,6 @@ fprint_device_get_properties (FprintDevice *rdev,
driver_name
=
fp_driver_get_full_name
(
driver
);
g_hash_table_insert
(
table
,
"Name"
,
g_strdup
(
driver_name
));
*
props
=
table
;
dbus_g_method_return
(
context
,
table
)
;
}
src/device.xml
View file @
ea4114b9
...
...
@@ -56,6 +56,7 @@
<method
name=
"GetProperties"
>
<arg
type=
"a{ss}"
name=
"properties"
direction=
"out"
/>
<annotation
name=
"org.freedesktop.DBus.GLib.Async"
value=
""
/>
</method>
</interface>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment