2008-11-26 16:43:32 +00:00
|
|
|
/*
|
|
|
|
|
* fprintd example to delete fingerprints
|
|
|
|
|
* Copyright (C) 2008 Daniel Drake <dsd@gentoo.org>
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
* Copyright (C) 2020 Marco Trevisan <marco.trevisan@canonical.com>
|
2008-11-26 16:43:32 +00:00
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
2019-12-04 11:58:28 +01:00
|
|
|
#include <locale.h>
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
#include "fprintd-dbus.h"
|
2008-11-26 16:43:32 +00:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
static FprintDBusManager *manager = NULL;
|
|
|
|
|
static GDBusConnection *connection = NULL;
|
2008-11-26 16:43:32 +00:00
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
create_manager (void)
|
|
|
|
|
{
|
2020-01-31 12:57:57 +01:00
|
|
|
g_autoptr(GError) error = NULL;
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
connection = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error);
|
2009-12-09 13:15:57 +00:00
|
|
|
if (connection == NULL)
|
|
|
|
|
{
|
|
|
|
|
g_print ("Failed to connect to session bus: %s\n", error->message);
|
|
|
|
|
exit (1);
|
|
|
|
|
}
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
manager = fprint_dbus_manager_proxy_new_sync (connection,
|
|
|
|
|
G_DBUS_PROXY_FLAGS_NONE,
|
|
|
|
|
"net.reactivated.Fprint",
|
|
|
|
|
"/net/reactivated/Fprint/Manager",
|
|
|
|
|
NULL, &error);
|
|
|
|
|
if (manager == NULL)
|
|
|
|
|
{
|
|
|
|
|
g_print ("Failed to get Fprintd manager: %s\n", error->message);
|
|
|
|
|
exit (1);
|
|
|
|
|
}
|
2008-11-26 16:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
static void
|
|
|
|
|
delete_fingerprints (FprintDBusDevice *dev, const char *username)
|
2008-11-26 16:43:32 +00:00
|
|
|
{
|
2020-01-31 12:57:57 +01:00
|
|
|
g_autoptr(GError) error = NULL;
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
if (!fprint_dbus_device_call_claim_sync (dev, username, NULL, &error))
|
|
|
|
|
{
|
2019-12-05 17:54:21 +01:00
|
|
|
g_print ("failed to claim device: %s\n", error->message);
|
|
|
|
|
exit (1);
|
|
|
|
|
}
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
if (!fprint_dbus_device_call_delete_enrolled_fingers2_sync (dev, NULL,
|
|
|
|
|
&error))
|
|
|
|
|
{
|
|
|
|
|
gboolean ignore_error = FALSE;
|
|
|
|
|
if (g_dbus_error_is_remote_error (error))
|
|
|
|
|
{
|
|
|
|
|
g_autofree char *dbus_error =
|
|
|
|
|
g_dbus_error_get_remote_error (error);
|
|
|
|
|
if (g_str_equal (dbus_error,
|
|
|
|
|
"net.reactivated.Fprint.Error.NoEnrolledPrints"))
|
|
|
|
|
{
|
|
|
|
|
g_print ("No fingerprints to delete on %s\n",
|
|
|
|
|
fprint_dbus_device_get_name (dev));
|
|
|
|
|
ignore_error = TRUE;
|
2020-12-03 23:55:48 +01:00
|
|
|
}
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
}
|
|
|
|
|
if (!ignore_error)
|
|
|
|
|
{
|
2021-01-27 20:14:12 +01:00
|
|
|
g_print ("Failed to delete fingerprints: %s\n",
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
error->message);
|
2009-12-09 13:15:57 +00:00
|
|
|
exit (1);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
g_print ("No fingerprints to delete on %s\n",
|
|
|
|
|
fprint_dbus_device_get_name (dev));
|
2009-12-09 13:15:57 +00:00
|
|
|
}
|
2008-11-26 16:43:32 +00:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
g_print ("Fingerprints deleted on %s\n",
|
|
|
|
|
fprint_dbus_device_get_name (dev));
|
2008-11-26 16:43:32 +00:00
|
|
|
}
|
2020-01-31 12:57:57 +01:00
|
|
|
g_clear_error (&error);
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
if (!fprint_dbus_device_call_release_sync (dev, NULL, &error))
|
|
|
|
|
{
|
2019-12-05 17:54:21 +01:00
|
|
|
g_print ("ReleaseDevice failed: %s\n", error->message);
|
|
|
|
|
exit (1);
|
|
|
|
|
}
|
2008-11-26 16:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
process_devices (char **argv)
|
|
|
|
|
{
|
2020-01-31 12:57:57 +01:00
|
|
|
g_autoptr(GError) error = NULL;
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
g_auto(GStrv) devices = NULL;
|
2008-11-26 16:43:32 +00:00
|
|
|
char *path;
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
guint num_devices;
|
2008-11-26 16:43:32 +00:00
|
|
|
guint i;
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
if (!fprint_dbus_manager_call_get_devices_sync (manager, &devices,
|
|
|
|
|
NULL, &error))
|
|
|
|
|
{
|
2020-04-03 03:29:12 +02:00
|
|
|
g_print ("Impossible to get devices: %s\n", error->message);
|
2009-12-09 13:15:57 +00:00
|
|
|
exit (1);
|
|
|
|
|
}
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
num_devices = g_strv_length (devices);
|
|
|
|
|
if (num_devices == 0)
|
|
|
|
|
{
|
2020-04-03 03:29:12 +02:00
|
|
|
g_print ("No devices available\n");
|
2008-11-26 16:43:32 +00:00
|
|
|
exit (1);
|
|
|
|
|
}
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
g_print ("found %u devices\n", num_devices);
|
|
|
|
|
for (i = 0; devices[i] != NULL; i++)
|
|
|
|
|
{
|
|
|
|
|
path = devices[i];
|
2008-11-26 16:43:32 +00:00
|
|
|
g_print ("Device at %s\n", path);
|
|
|
|
|
}
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
for (i = 0; devices[i] != NULL; i++)
|
|
|
|
|
{
|
|
|
|
|
g_autoptr(FprintDBusDevice) dev = NULL;
|
2008-11-26 16:43:32 +00:00
|
|
|
guint j;
|
2020-12-03 23:55:48 +01:00
|
|
|
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
path = devices[i];
|
2008-11-26 16:43:32 +00:00
|
|
|
g_print ("Using device %s\n", path);
|
2020-12-03 23:55:48 +01:00
|
|
|
|
2020-01-31 12:57:57 +01:00
|
|
|
/* NOTE: We should handle error cases! */
|
fprintd: Use GDBus codegen based implementation
Fprintd is dependent on the deprecated dbus-glib, also this doesn't provide
various features we can take advantage of, like the ones for async
authentication mechanism.
So, remove all the dbus-glib dependencies and simplify the code, but without
any further refactor, and keeping everything as it used to work, while this
will give room for further improvements in subsequent commits.
Internally, we just use dbus-codegen to generate the skeletons, and we
use the generated FprintdDBusManager with composition, while we
implement the device skeleton interface in FprintDevice, so that we
don't have to use it as a proxy, and keep being closer to what it used
to be with dbus-glib.
Fixes: #61
2020-02-03 20:29:56 +01:00
|
|
|
dev = fprint_dbus_device_proxy_new_sync (connection,
|
|
|
|
|
G_DBUS_PROXY_FLAGS_NONE,
|
|
|
|
|
"net.reactivated.Fprint",
|
2020-01-31 12:57:57 +01:00
|
|
|
path, NULL, NULL);
|
2020-12-03 23:55:48 +01:00
|
|
|
|
2008-11-26 16:43:32 +00:00
|
|
|
for (j = 1; argv[j] != NULL; j++)
|
|
|
|
|
delete_fingerprints (dev, argv[j]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
main (int argc, char **argv)
|
|
|
|
|
{
|
2021-01-28 20:06:24 +01:00
|
|
|
g_autoptr(GOptionContext) option_context = NULL;
|
|
|
|
|
g_autoptr(GError) local_error = NULL;
|
|
|
|
|
|
|
|
|
|
option_context = g_option_context_new ("Delete fingerprints");
|
|
|
|
|
|
2019-12-04 11:58:28 +01:00
|
|
|
setlocale (LC_ALL, "");
|
|
|
|
|
|
2021-01-28 20:06:24 +01:00
|
|
|
g_option_context_set_ignore_unknown_options (option_context, TRUE);
|
|
|
|
|
g_option_context_set_summary (option_context,
|
|
|
|
|
"<username> [usernames ...]");
|
|
|
|
|
|
|
|
|
|
if (!g_option_context_parse (option_context, &argc, &argv, &local_error))
|
|
|
|
|
{
|
|
|
|
|
g_print ("couldn't parse command-line options: %s\n", local_error->message);
|
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
|
}
|
2008-11-26 16:43:32 +00:00
|
|
|
|
|
|
|
|
if (argc < 2)
|
|
|
|
|
{
|
2021-01-28 20:06:24 +01:00
|
|
|
g_autofree char *usage = NULL;
|
|
|
|
|
|
|
|
|
|
usage = g_option_context_get_help (option_context, FALSE, NULL);
|
|
|
|
|
g_print ("%s", usage);
|
|
|
|
|
return EXIT_FAILURE;
|
2008-11-26 16:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
2021-01-28 20:06:24 +01:00
|
|
|
create_manager ();
|
2008-11-26 16:43:32 +00:00
|
|
|
process_devices (argv);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|