summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'main.h')
-rw-r--r--main.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.h b/main.h
index 2e05621..b2f8308 100644
--- a/main.h
+++ b/main.h
@@ -23,6 +23,8 @@
#define PATH_LENGTH 50
#define PROGNAME "wordextract"
#define OPT_FOLDER "/.wordextract"
+#define CONF_FILE "/config"
+#define OPTION_LENGTH 30
/* maximum subtitle line and phrase length
* it's not allocated dinamically 'cause it costs a lot of resources and
* it can't be more than mean human reading speed in a half of a minute
@@ -31,7 +33,7 @@
#define MAXLINE 300
#define MAXPHRASE 100
-typedef enum {ENG} Language;
+typedef enum {ENG = 0} Language;
typedef struct {
unsigned int columns;
unsigned int col_width;
@@ -44,4 +46,7 @@ extern SaveOpt save_user_words;
extern char optpath[PATH_LENGTH];
extern char dictfile[PATH_LENGTH];
+void read_config();
+void write_config();
+
#endif /*MAIN_H*/