summaryrefslogtreecommitdiff
path: root/src/fr-command-jar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fr-command-jar.c')
-rw-r--r--src/fr-command-jar.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/fr-command-jar.c b/src/fr-command-jar.c
index 03e7cd9..dbe09d1 100644
--- a/src/fr-command-jar.c
+++ b/src/fr-command-jar.c
@@ -31,7 +31,6 @@
#include "fr-command-jar.h"
#include "java-utils.h"
-
typedef struct {
char *filename;
char *rel_path;
@@ -39,15 +38,12 @@ typedef struct {
char *link_name; /* package dir = package_minus_one_level + '/' + link_name */
} JarData;
-
static void fr_command_jar_class_init (FrCommandJarClass *class);
static void fr_command_jar_init (FrCommand *afile);
static void fr_command_jar_finalize (GObject *object);
-
static FrCommandClass *parent_class = NULL;
-
static void
fr_command_jar_add (FrCommand *comm,
const char *from_file,
@@ -145,24 +141,21 @@ fr_command_jar_add (FrCommand *comm,
g_free (tmp_dir);
}
-
const char *jar_mime_type[] = { "application/x-java-archive",
NULL };
-
static const char **
fr_command_jar_get_mime_types (FrCommand *comm)
{
return jar_mime_type;
}
-
-static FrCommandCap
+static FrCommandCaps
fr_command_jar_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 ("zip", check_command))
@@ -171,7 +164,6 @@ fr_command_jar_get_capabilities (FrCommand *comm,
return capabilities;
}
-
static const char *
fr_command_jar_get_packages (FrCommand *comm,
const char *mime_type)
@@ -179,7 +171,6 @@ fr_command_jar_get_packages (FrCommand *comm,
return PACKAGES ("zip,unzip");
}
-
static void
fr_command_jar_class_init (FrCommandJarClass *class)
{
@@ -196,13 +187,11 @@ fr_command_jar_class_init (FrCommandJarClass *class)
afc->get_packages = fr_command_jar_get_packages;
}
-
static void
fr_command_jar_init (FrCommand *comm)
{
}
-
static void
fr_command_jar_finalize (GObject *object)
{
@@ -214,7 +203,6 @@ fr_command_jar_finalize (GObject *object)
G_OBJECT_CLASS (parent_class)->finalize (object);
}
-
GType
fr_command_jar_get_type ()
{