xarchive  0.2.8-6
About: XArchive is a GTK+ front-end for command line archiving tools.
  Fossies Dox: xarchive-0.2.8-6.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

main.h File Reference
#include "common.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <dirent.h>
#include <fnmatch.h>
#include <gtk/gtk.h>
#include <glib/gstdio.h>
#include <sys/wait.h>
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  wrapper_entry
 

Typedefs

typedef struct wrapper_entry WrapperEntry
 

Functions

gchar * my_strescape (gchar *string)
 
GtkTreeView * get_current_tree (void)
 
gint make_widgets (ParsedArgs *pargs)
 
void add_row (GtkListStore *liststore, gchar **ent)
 
gboolean message (GtkWidget *parentwin, gint type, gchar *text)
 
void setup_opening_progress_bar (GtkWidget *pbwin, GtkWidget *pbar, gboolean *stopit)
 
void wait_with_progress_bar (GPid pid, gint *wrapper_status, gint ar_func)
 
void setup_exts (WrapperEntry *wrapd)
 
WrapperEntrymake_wrapper (gchar *dir, gchar *fname)
 
int is_wrapper (const struct dirent *dirent)
 
void setup_wrappers (void)
 
gchar * wrapper_info (void)
 
gchar * get_wrapper (gchar *archive)
 
gint get_archive_data (gchar **arg)
 
gint wrapper_cmd (gint af, gchar **argv, gchar *dest)
 
void setup_home_directory (void)
 
ParsedArgsparse_options (gint argc, gchar *argv[])
 

Variables

GPtrArray * WRAPPER_ARRAY = NULL
 
GtkWidget * MAIN_WINDOW
 

Typedef Documentation

◆ WrapperEntry

typedef struct wrapper_entry WrapperEntry

Function Documentation

◆ add_row()

void add_row ( GtkListStore *  liststore,
gchar **  ent 
)

Definition at line 228 of file widgets_gtk.c.

Referenced by get_archive_data().

◆ get_archive_data()

gint get_archive_data ( gchar **  arg)

◆ get_current_tree()

GtkTreeView* get_current_tree ( void  )

Definition at line 192 of file widgets_gtk.c.

Referenced by get_archive_data().

◆ get_wrapper()

gchar* get_wrapper ( gchar *  archive)

Definition at line 188 of file main.c.

◆ is_wrapper()

int is_wrapper ( const struct dirent *  dirent)

Definition at line 99 of file main.c.

Referenced by setup_wrappers().

◆ make_widgets()

gint make_widgets ( ParsedArgs pargs)

Definition at line 2002 of file widgets_gtk.c.

Referenced by main().

◆ make_wrapper()

WrapperEntry* make_wrapper ( gchar *  dir,
gchar *  fname 
)

Definition at line 87 of file main.c.

References wrapper_entry::ext_array, and wrapper_entry::path.

Referenced by setup_wrappers().

◆ message()

gboolean message ( GtkWidget *  parentwin,
gint  type,
gchar *  text 
)

Definition at line 551 of file widgets_gtk.c.

Referenced by get_archive_data(), and wrapper_cmd().

◆ my_strescape()

gchar* my_strescape ( gchar *  string)

Definition at line 50 of file my_strescape.c.

References is_escaped_char().

Referenced by get_archive_data(), and open_one_file().

◆ parse_options()

ParsedArgs* parse_options ( gint  argc,
gchar *  argv[] 
)

◆ setup_exts()

void setup_exts ( WrapperEntry wrapd)

Definition at line 56 of file main.c.

References wrapper_entry::ext_array, getline(), MAXLINE, and wrapper_entry::path.

Referenced by setup_wrappers().

◆ setup_home_directory()

void setup_home_directory ( void  )

Definition at line 354 of file main.c.

Referenced by main().

◆ setup_opening_progress_bar()

void setup_opening_progress_bar ( GtkWidget *  pbwin,
GtkWidget *  pbar,
gboolean *  stopit 
)

Definition at line 420 of file widgets_gtk.c.

Referenced by get_archive_data().

◆ setup_wrappers()

void setup_wrappers ( void  )

Definition at line 110 of file main.c.

References canonicalize_file_name(), is_wrapper(), make_wrapper(), setup_exts(), and WRAPPER_ARRAY.

Referenced by main().

◆ wait_with_progress_bar()

void wait_with_progress_bar ( GPid  pid,
gint *  wrapper_status,
gint  ar_func 
)

Definition at line 449 of file widgets_gtk.c.

Referenced by wrapper_cmd().

◆ wrapper_cmd()

gint wrapper_cmd ( gint  af,
gchar **  argv,
gchar *  dest 
)

◆ wrapper_info()

gchar* wrapper_info ( void  )

Definition at line 152 of file main.c.

Variable Documentation

◆ MAIN_WINDOW

◆ WRAPPER_ARRAY

GPtrArray* WRAPPER_ARRAY = NULL

Definition at line 22 of file main.h.

Referenced by get_wrapper(), setup_wrappers(), and wrapper_info().