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
Go to the documentation of this file.
1 #ifndef XARCHIVE_SRC_MAIN
2 #define XARCHIVE_SRC_MAIN 1
3 
4 #include"common.h"
5 #include<stdio.h>
6 #include<unistd.h>
7 #include<string.h>
8 #include<dirent.h>
9 #include<fnmatch.h>
10 #include<gtk/gtk.h>
11 #include<glib/gstdio.h>
12 #include<sys/wait.h>
13 
14 /* LOCAL DATA TYPES AND STRUCTURES */
15 typedef struct wrapper_entry
16 {
17  gchar *path;
18  GPtrArray *ext_array;
19 } WrapperEntry;
20 
21 /* LOCAL GLOBAL VARIABLES */
22 GPtrArray *WRAPPER_ARRAY = NULL;
23 extern GtkWidget *MAIN_WINDOW;
24 
25 /* EXTERNAL FUNCTIONS */
26 /* from my_strescape.c */
27 gchar *
28 my_strescape(gchar *string);
29 
30 /* from widgets_gtk.c */
31 GtkTreeView *
32 get_current_tree(void);
33 
34 gint
35 make_widgets(ParsedArgs *pargs);
36 
37 void
38 add_row(GtkListStore *liststore, gchar **ent);
39 
40 gboolean
41 message(GtkWidget *parentwin, gint type, gchar *text);
42 
43 void
44 setup_opening_progress_bar(GtkWidget *pbwin, GtkWidget *pbar,
45  gboolean *stopit);
46 
47 void
48 wait_with_progress_bar(GPid pid, gint *wrapper_status, gint ar_func);
49 
50 /* LOCAL FUNCTIONS */
51 void
52 setup_exts(WrapperEntry *wrapd);
53 
55 make_wrapper(gchar *dir, gchar *fname);
56 
57 int
58 is_wrapper(const struct dirent *dirent);
59 
60 void
61 setup_wrappers(void);
62 
63 extern gchar *
64 wrapper_info(void);
65 
66 gchar *
67 get_wrapper(gchar *archive);
68 
69 gint
70 get_archive_data(gchar **arg);
71 
72 gint
73 wrapper_cmd(gint af, gchar **argv, gchar *dest);
74 
75 void
77 
78 ParsedArgs *
79 parse_options(gint argc, gchar *argv[]);
80 
81 #endif
setup_wrappers
void setup_wrappers(void)
Definition: main.c:110
setup_home_directory
void setup_home_directory(void)
Definition: main.c:354
setup_opening_progress_bar
void setup_opening_progress_bar(GtkWidget *pbwin, GtkWidget *pbar, gboolean *stopit)
Definition: widgets_gtk.c:420
parse_options
ParsedArgs * parse_options(gint argc, gchar *argv[])
Definition: main.c:370
wrapper_entry
Definition: main.h:15
WrapperEntry
struct wrapper_entry WrapperEntry
is_wrapper
int is_wrapper(const struct dirent *dirent)
Definition: main.c:99
get_wrapper
gchar * get_wrapper(gchar *archive)
Definition: main.c:188
wrapper_entry::path
gchar * path
Definition: main.h:17
WRAPPER_ARRAY
GPtrArray * WRAPPER_ARRAY
Definition: main.h:22
wrapper_info
gchar * wrapper_info(void)
Definition: main.c:152
MAIN_WINDOW
GtkWidget * MAIN_WINDOW
Definition: widgets_gtk.h:35
get_archive_data
gint get_archive_data(gchar **arg)
Definition: main.c:213
parsed_arguments
Definition: common.h:19
wrapper_entry::ext_array
GPtrArray * ext_array
Definition: main.h:18
my_strescape
gchar * my_strescape(gchar *string)
Definition: my_strescape.c:50
wait_with_progress_bar
void wait_with_progress_bar(GPid pid, gint *wrapper_status, gint ar_func)
Definition: widgets_gtk.c:449
add_row
void add_row(GtkListStore *liststore, gchar **ent)
Definition: widgets_gtk.c:228
get_current_tree
GtkTreeView * get_current_tree(void)
Definition: widgets_gtk.c:192
common.h
setup_exts
void setup_exts(WrapperEntry *wrapd)
Definition: main.c:56
make_widgets
gint make_widgets(ParsedArgs *pargs)
Definition: widgets_gtk.c:2002
make_wrapper
WrapperEntry * make_wrapper(gchar *dir, gchar *fname)
Definition: main.c:87
wrapper_cmd
gint wrapper_cmd(gint af, gchar **argv, gchar *dest)
message
gboolean message(GtkWidget *parentwin, gint type, gchar *text)
Definition: widgets_gtk.c:551