summaryrefslogtreecommitdiff
path: root/src/fr-command-arj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-arj.c')
-rw-r--r--src/fr-command-arj.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/fr-command-arj.c b/src/fr-command-arj.c
index a6f0f71..0dfc0b6 100644
--- a/src/fr-command-arj.c
+++ b/src/fr-command-arj.c
@@ -40,7 +40,6 @@ static void fr_command_arj_finalize (GObject *object);
static FrCommandClass *parent_class = NULL;
-
/* -- list -- */
static time_t
@@ -84,7 +83,6 @@ mktime_from_string (char *date_s,
return mktime (&tm);
}
-
static void
list__process_line (char *line,
gpointer data)
@@ -158,7 +156,6 @@ list__process_line (char *line,
arj_comm->line_no++;
}
-
static void
fr_command_arj_list (FrCommand *comm)
{
@@ -173,7 +170,6 @@ fr_command_arj_list (FrCommand *comm)
fr_process_start (comm->process);
}
-
static void
fr_command_arj_add (FrCommand *comm,
const char *from_file,
@@ -220,7 +216,6 @@ fr_command_arj_add (FrCommand *comm,
fr_process_end_command (comm->process);
}
-
static void
fr_command_arj_delete (FrCommand *comm,
const char *from_file,
@@ -242,7 +237,6 @@ fr_command_arj_delete (FrCommand *comm,
fr_process_end_command (comm->process);
}
-
static void
fr_command_arj_extract (FrCommand *comm,
const char *from_file,
@@ -287,7 +281,6 @@ fr_command_arj_extract (FrCommand *comm,
fr_process_end_command (comm->process);
}
-
static void
fr_command_arj_test (FrCommand *comm)
{
@@ -302,7 +295,6 @@ fr_command_arj_test (FrCommand *comm)
fr_process_end_command (comm->process);
}
-
static void
fr_command_arj_handle_error (FrCommand *comm,
FrProcError *error)
@@ -315,23 +307,20 @@ fr_command_arj_handle_error (FrCommand *comm,
}
}
-
const char *arj_mime_type[] = { "application/x-arj", NULL };
-
static const char **
fr_command_arj_get_mime_types (FrCommand *comm)
{
return arj_mime_type;
}
-
-static FrCommandCap
+static FrCommandCaps
fr_command_arj_get_capabilities (FrCommand *comm,
const char *mime_type,
gboolean check_command)
{
- FrCommandCap capabilities;
+ FrCommandCaps capabilities;
capabilities = FR_COMMAND_CAN_ARCHIVE_MANY_FILES | FR_COMMAND_CAN_ENCRYPT;
if (is_program_available ("arj", check_command))
@@ -340,7 +329,6 @@ fr_command_arj_get_capabilities (FrCommand *comm,
return capabilities;
}
-
static const char *
fr_command_arj_get_packages (FrCommand *comm,
const char *mime_type)
@@ -348,7 +336,6 @@ fr_command_arj_get_packages (FrCommand *comm,
return PACKAGES ("arj");
}
-
static void
fr_command_arj_class_init (FrCommandArjClass *class)
{
@@ -371,7 +358,6 @@ fr_command_arj_class_init (FrCommandArjClass *class)
afc->get_packages = fr_command_arj_get_packages;
}
-
static void
fr_command_arj_init (FrCommand *comm)
{
@@ -392,7 +378,6 @@ fr_command_arj_init (FrCommand *comm)
arj_comm->filename_line_regex = g_regex_new ("[0-9]+\\) ", G_REGEX_OPTIMIZE, 0, NULL);
}
-
static void
fr_command_arj_finalize (GObject *object)
{
@@ -409,7 +394,6 @@ fr_command_arj_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
}
-
GType
fr_command_arj_get_type ()
{