diff options
Diffstat (limited to 'src/fr-command-alz.c')
-rw-r--r-- | src/fr-command-alz.c | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/src/fr-command-alz.c b/src/fr-command-alz.c index e119dfe..f7dc577 100644 --- a/src/fr-command-alz.c +++ b/src/fr-command-alz.c @@ -41,10 +41,8 @@ static void fr_command_alz_finalize (GObject *object); static FrCommandClass *parent_class = NULL; - /* -- list -- */ - static time_t mktime_from_string (char *date_s, char *time_s) @@ -78,7 +76,6 @@ mktime_from_string (char *date_s, return mktime (&tm); } - static void process_line (char *line, gpointer data) @@ -93,7 +90,6 @@ process_line (char *line, g_return_if_fail (line != NULL); - if (! alz_comm->list_started) { if (strncmp (line, "-----", 5 ) == 0 ) alz_comm->list_started = TRUE; @@ -156,7 +152,6 @@ process_line (char *line, g_strfreev (fields); } - static void add_codepage_arg (FrCommand *comm) { @@ -182,7 +177,6 @@ add_codepage_arg (FrCommand *comm) fr_process_add_arg (comm->process, arg); } - static void add_password_arg (FrCommand *comm, const char *password, @@ -198,7 +192,6 @@ add_password_arg (FrCommand *comm, } } - static void list__begin (gpointer data) { @@ -208,7 +201,6 @@ list__begin (gpointer data) comm->invalid_password = FALSE; } - static void fr_command_alz_list (FrCommand *comm) { @@ -224,7 +216,6 @@ fr_command_alz_list (FrCommand *comm) fr_process_start (comm->process); } - /* -- extract -- */ static void @@ -253,7 +244,6 @@ process_extract_line (char *line, } } - static void fr_command_alz_extract (FrCommand *comm, const char *from_file, @@ -284,12 +274,11 @@ fr_command_alz_extract (FrCommand *comm, fr_process_end_command (comm->process); } - static void fr_command_alz_handle_error (FrCommand *comm, FrProcError *error) { - if ((error->type == FR_PROC_ERROR_STOPPED)) { + if (error->type == FR_PROC_ERROR_STOPPED) { if (FR_COMMAND_ALZ (comm)->extract_none || FR_COMMAND_ALZ (comm)->invalid_password ) { error->type = FR_PROC_ERROR_ASK_PASSWORD; @@ -297,23 +286,20 @@ fr_command_alz_handle_error (FrCommand *comm, } } - const char *alz_mime_type[] = { "application/x-alz", NULL }; - static const char ** fr_command_alz_get_mime_types (FrCommand *comm) { return alz_mime_type; } - -static FrCommandCap +static FrCommandCaps fr_command_alz_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 ("unalz", check_command)) @@ -322,7 +308,6 @@ fr_command_alz_get_capabilities (FrCommand *comm, return capabilities; } - static const char * fr_command_alz_get_packages (FrCommand *comm, const char *mime_type) @@ -330,7 +315,6 @@ fr_command_alz_get_packages (FrCommand *comm, return PACKAGES ("unalz"); } - static void fr_command_alz_class_init (FrCommandAlzClass *class) { @@ -352,7 +336,6 @@ fr_command_alz_class_init (FrCommandAlzClass *class) afc->get_packages = fr_command_alz_get_packages; } - static void fr_command_alz_init (FrCommand *comm) { @@ -365,7 +348,6 @@ fr_command_alz_init (FrCommand *comm) comm->propTest = FALSE; } - static void fr_command_alz_finalize (GObject *object) { @@ -377,7 +359,6 @@ fr_command_alz_finalize (GObject *object) G_OBJECT_CLASS (parent_class)->finalize (object); } - GType fr_command_alz_get_type () { |