diff options
Diffstat (limited to 'src/fr-process.c')
-rw-r--r-- | src/fr-process.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/fr-process.c b/src/fr-process.c index 892aaae..1ee9d8d 100644 --- a/src/fr-process.c +++ b/src/fr-process.c @@ -53,7 +53,6 @@ static void fr_process_class_init (FrProcessClass *class); static void fr_process_init (FrProcess *process); static void fr_process_finalize (GObject *object); - typedef struct { GList *args; /* command to execute */ char *dir; /* working directory */ @@ -71,7 +70,6 @@ typedef struct { gpointer end_data; } FrCommandInfo; - static FrCommandInfo * fr_command_info_new (void) { @@ -86,7 +84,6 @@ fr_command_info_new (void) return info; } - static void fr_command_info_free (FrCommandInfo *info) { @@ -106,7 +103,6 @@ fr_command_info_free (FrCommandInfo *info) g_free (info); } - static void fr_channel_data_init (FrChannelData *channel) { @@ -116,7 +112,6 @@ fr_channel_data_init (FrChannelData *channel) channel->error = NULL; } - static void fr_channel_data_close_source (FrChannelData *channel) { @@ -127,7 +122,6 @@ fr_channel_data_close_source (FrChannelData *channel) } } - static GIOStatus fr_channel_data_read (FrChannelData *channel) { @@ -153,7 +147,6 @@ fr_channel_data_read (FrChannelData *channel) return channel->status; } - static GIOStatus fr_channel_data_flush (FrChannelData *channel) { @@ -166,7 +159,6 @@ fr_channel_data_flush (FrChannelData *channel) return status; } - static void fr_channel_data_reset (FrChannelData *channel) { @@ -178,14 +170,12 @@ fr_channel_data_reset (FrChannelData *channel) } } - static void fr_channel_data_free (FrChannelData *channel) { fr_channel_data_reset (channel); } - static void fr_channel_data_set_fd (FrChannelData *channel, int fd, @@ -200,11 +190,9 @@ fr_channel_data_set_fd (FrChannelData *channel, g_io_channel_set_encoding (channel->source, charset, NULL); } - const char *try_charsets[] = { "UTF-8", "ISO-8859-1", "WINDOW-1252" }; int n_charsets = G_N_ELEMENTS (try_charsets); - struct _FrProcessPrivate { GPtrArray *comm; /* FrCommandInfo elements. */ gint n_comm; /* total number of commands */ @@ -227,7 +215,6 @@ struct _FrProcessPrivate { int current_charset; }; - GType fr_process_get_type (void) { @@ -256,7 +243,6 @@ fr_process_get_type (void) return type; } - static void fr_process_class_init (FrProcessClass *class) { @@ -296,7 +282,6 @@ fr_process_class_init (FrProcessClass *class) class->done = NULL; } - static void fr_process_init (FrProcess *process) { @@ -325,14 +310,12 @@ fr_process_init (FrProcess *process) process->priv->use_standard_locale = FALSE; } - FrProcess * fr_process_new (void) { return FR_PROCESS (g_object_new (FR_TYPE_PROCESS, NULL)); } - static void fr_process_stop_priv (FrProcess *process, gboolean emit_signal); static int fr_switch_process_state (FrProcess *process); @@ -365,7 +348,6 @@ fr_process_finalize (GObject *object) G_OBJECT_CLASS (parent_class)->finalize (object); } - void fr_process_begin_command (FrProcess *process, const char *arg) @@ -383,7 +365,6 @@ fr_process_begin_command (FrProcess *process, process->priv->current_comm = process->priv->n_comm; } - void fr_process_begin_command_at (FrProcess *process, const char *arg, @@ -407,7 +388,6 @@ fr_process_begin_command_at (FrProcess *process, g_ptr_array_index (process->priv->comm, index) = info; } - void fr_process_set_working_dir (FrProcess *process, const char *dir) @@ -423,7 +403,6 @@ fr_process_set_working_dir (FrProcess *process, info->dir = g_strdup (dir); } - void fr_process_set_sticky (FrProcess *process, gboolean sticky) @@ -437,7 +416,6 @@ fr_process_set_sticky (FrProcess *process, info->sticky = sticky; } - void fr_process_set_ignore_error (FrProcess *process, gboolean ignore_error) @@ -451,7 +429,6 @@ fr_process_set_ignore_error (FrProcess *process, info->ignore_error = ignore_error; } - void fr_process_add_arg (FrProcess *process, const char *arg) @@ -465,7 +442,6 @@ fr_process_add_arg (FrProcess *process, info->args = g_list_prepend (info->args, g_strdup (arg)); } - void fr_process_add_arg_concat (FrProcess *process, const char *arg1, @@ -486,7 +462,6 @@ fr_process_add_arg_concat (FrProcess *process, g_string_free (arg, TRUE); } - void fr_process_add_arg_printf (FrProcess *fr_proc, const char *format, @@ -504,7 +479,6 @@ fr_process_add_arg_printf (FrProcess *fr_proc, g_free (arg); } - void fr_process_set_arg_at (FrProcess *process, int n_comm, @@ -524,7 +498,6 @@ fr_process_set_arg_at (FrProcess *process, arg->data = g_strdup (arg_value); } - void fr_process_set_begin_func (FrProcess *process, ProcFunc func, @@ -539,7 +512,6 @@ fr_process_set_begin_func (FrProcess *process, info->begin_data = func_data; } - void fr_process_set_end_func (FrProcess *process, ProcFunc func, @@ -554,7 +526,6 @@ fr_process_set_end_func (FrProcess *process, info->end_data = func_data; } - void fr_process_set_continue_func (FrProcess *process, ContinueFunc func, @@ -572,7 +543,6 @@ fr_process_set_continue_func (FrProcess *process, info->continue_data = func_data; } - void fr_process_end_command (FrProcess *process) { @@ -584,7 +554,6 @@ fr_process_end_command (FrProcess *process) info->args = g_list_reverse (info->args); } - void fr_process_clear (FrProcess *process) { @@ -607,7 +576,6 @@ fr_process_clear (FrProcess *process) process->priv->current_comm = -1; } - void fr_process_set_out_line_func (FrProcess *process, LineFunc func, @@ -619,7 +587,6 @@ fr_process_set_out_line_func (FrProcess *process, process->out.line_data = data; } - void fr_process_set_err_line_func (FrProcess *process, LineFunc func, @@ -631,10 +598,8 @@ fr_process_set_err_line_func (FrProcess *process, process->err.line_data = data; } - static gboolean check_child (gpointer data); - static void child_setup (gpointer user_data) { @@ -656,7 +621,6 @@ child_setup (gpointer user_data) setpgid (0, 0); } - static const char * fr_process_get_charset (FrProcess *process) { @@ -670,7 +634,6 @@ fr_process_get_charset (FrProcess *process) return charset; } - static void start_current_command (FrProcess *process) { @@ -804,7 +767,6 @@ start_current_command (FrProcess *process) process); } - static gboolean command_is_sticky (FrProcess *process, int i) @@ -815,7 +777,6 @@ command_is_sticky (FrProcess *process, return info->sticky; } - static void allow_sticky_processes_only (FrProcess *process, gboolean emit_signal) @@ -837,7 +798,6 @@ allow_sticky_processes_only (FrProcess *process, 0); } - static void fr_process_set_error (FrProcess *process, FrProcErrorType type, @@ -853,7 +813,6 @@ fr_process_set_error (FrProcess *process, } } - static gint check_child (gpointer data) { @@ -1008,7 +967,6 @@ check_child (gpointer data) return FALSE; } - void fr_process_use_standard_locale (FrProcess *process, gboolean use_stand_locale) @@ -1017,7 +975,6 @@ fr_process_use_standard_locale (FrProcess *process, process->priv->use_standard_locale = use_stand_locale; } - void fr_process_start (FrProcess *process) { @@ -1141,7 +1098,6 @@ fr_process_stop_priv (FrProcess *process, } } - void fr_process_stop (FrProcess *process) { |