1 #ifndef XARCHIVE_SRC_COMMON 2 #define XARCHIVE_SRC_COMMON 1 3 4 #include"config.h" 5 #include<stdlib.h> 6 #include<glib.h> 7 8 #define MAXLINE 256 9 #define E_UNSUPPORTED 65 10 11 /* some common enumerations */ 12 enum { AR_OPEN=0, AR_NEW, AR_EXTRACT, AR_ADD, AR_REMOVE, AR_VIEW}; 13 14 enum { WRAPPER_INDEX=0, OPTION_INDEX, ARCHIVE_INDEX, FIRST_FILE_INDEX }; 15 16 enum {COL_ICON=0, COL_FILE, COL_DFILE, COL_SIZE, COL_ATTR, COL_USER, COL_GROUP, 17 COL_TIME, COL_LINK, NUM_COLS}; 18 19 typedef struct parsed_arguments 20 { 21 int action; 22 char **files; 23 char *archive; 24 char *geom; 25 } ParsedArgs; 26 27 #endif 28