summaryrefslogtreecommitdiff
path: root/src/fr-command-nomarch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-nomarch.c')
-rw-r--r--src/fr-command-nomarch.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/fr-command-nomarch.c b/src/fr-command-nomarch.c
index c23248a..8a53dd5 100644
--- a/src/fr-command-nomarch.c
+++ b/src/fr-command-nomarch.c
@@ -44,7 +44,6 @@ static void fr_command_nomarch_finalize (GObject *object);
static FrCommandClass *parent_class = NULL;
-
/* -- list -- */
static time_t
@@ -95,7 +94,6 @@ list__process_line (char *line,
fr_command_add_file (comm, fdata);
}
-
static void
fr_command_nomarch_list (FrCommand *comm)
{
@@ -108,7 +106,6 @@ fr_command_nomarch_list (FrCommand *comm)
fr_process_start (comm->process);
}
-
static void
fr_command_nomarch_add (FrCommand *comm,
const char *from_file,
@@ -137,7 +134,6 @@ fr_command_nomarch_add (FrCommand *comm,
fr_process_end_command (comm->process);
}
-
static void
fr_command_nomarch_delete (FrCommand *comm,
const char *from_file,
@@ -155,7 +151,6 @@ fr_command_nomarch_delete (FrCommand *comm,
fr_process_end_command (comm->process);
}
-
static void
fr_command_nomarch_extract (FrCommand *comm,
const char *from_file,
@@ -180,7 +175,6 @@ fr_command_nomarch_extract (FrCommand *comm,
fr_process_end_command (comm->process);
}
-
static void
fr_command_nomarch_test (FrCommand *comm)
{
@@ -190,7 +184,6 @@ fr_command_nomarch_test (FrCommand *comm)
fr_process_end_command (comm->process);
}
-
static void
fr_command_nomarch_handle_error (FrCommand *comm,
FrProcError *error)
@@ -203,23 +196,20 @@ fr_command_nomarch_handle_error (FrCommand *comm,
}
}
-
const char *nomarch_mime_type[] = { "application/x-arc", NULL };
-
static const char **
fr_command_nomarch_get_mime_types (FrCommand *comm)
{
return nomarch_mime_type;
}
-
-static FrCommandCap
+static FrCommandCaps
fr_command_nomarch_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
{
- FrCommandCap capabilities;
+ FrCommandCaps capabilities;
capabilities = FR_COMMAND_CAN_ARCHIVE_MANY_FILES;
if (is_program_available ("nomarch", check_command)) {
@@ -230,7 +220,6 @@ fr_command_nomarch_get_capabilities (FrCommand *comm,
return capabilities;
}
-
static const char *
fr_command_nomarch_get_packages (FrCommand *comm,
const char *mime_type)
@@ -238,7 +227,6 @@ fr_command_nomarch_get_packages (FrCommand *comm,
return PACKAGES ("nomarch,arc");
}
-
static void
fr_command_nomarch_class_init (FrCommandNomarchClass *class)
{
@@ -261,7 +249,6 @@ fr_command_nomarch_class_init (FrCommandNomarchClass *class)
afc->get_packages = fr_command_nomarch_get_packages;
}
-
static void
fr_command_nomarch_init (FrCommand *comm)
{
@@ -280,7 +267,6 @@ fr_command_nomarch_init (FrCommand *comm)
nomarch_comm->fdata = FALSE;
}
-
static void
fr_command_nomarch_finalize (GObject *object)
{
@@ -292,7 +278,6 @@ fr_command_nomarch_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
}
-
GType
fr_command_nomarch_get_type ()
{