diff options
author | Aleksander Morgado <aleksander@gnu.org> | 2011-09-09 20:22:10 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:20 +0100 |
commit | f227572d8f1f8516e2ea2a38bf7a8a73387165d5 (patch) | |
tree | 2d964a0d54b546052f4e3afdea9bebd0fbe7814b /src/mm-port-probe.h | |
parent | 1b84994febfdd9c821335157f0a8107f1842566f (diff) |
port-probe: setup an asynchronous method for port probing
The new method `mm_port_probe_run()' will run the whole probing process
asynchronously. Result of the probing can be later obtained with
`mm_port_probe_run_finish()'.
Diffstat (limited to 'src/mm-port-probe.h')
-rw-r--r-- | src/mm-port-probe.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-port-probe.h b/src/mm-port-probe.h index 9e54d608..7db56100 100644 --- a/src/mm-port-probe.h +++ b/src/mm-port-probe.h @@ -18,6 +18,7 @@ #include <glib.h> #include <glib-object.h> +#include <gio/gio.h> #define G_UDEV_API_IS_SUBJECT_TO_CHANGE #include <gudev/gudev.h> @@ -54,5 +55,13 @@ const gchar *mm_port_probe_get_port_subsys (MMPortProbe *self); const gchar *mm_port_probe_get_port_physdev (MMPortProbe *self); const gchar *mm_port_probe_get_port_driver (MMPortProbe *self); +/* Run probing */ +void mm_port_probe_run (MMPortProbe *self, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean mm_port_probe_run_finish (MMPortProbe *self, + GAsyncResult *result, + GError **error); + #endif /* MM_PORT_PROBE_H */ |