aboutsummaryrefslogtreecommitdiffstats
path: root/src/dblayer.h
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2018-11-14 15:44:48 +0200
committergramanas <anastasis.gramm2@gmail.com>2018-11-14 15:44:48 +0200
commitca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1 (patch)
treec74e961f7780a4415bb9a178527f8d0e51a430e4 /src/dblayer.h
parent822f7d839a1b5dc967cfb2988170ed836ae8c0d8 (diff)
downloadck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.tar.gz
ck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.tar.bz2
ck-ca76f40ba05cb8b067a6e7b0e0cd31fa31b7dff1.zip
Remove extern keyword
Diffstat (limited to 'src/dblayer.h')
-rw-r--r--src/dblayer.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/dblayer.h b/src/dblayer.h
index 199471a..0d012bb 100644
--- a/src/dblayer.h
+++ b/src/dblayer.h
@@ -35,57 +35,57 @@ struct DBstruct {
SqlError error;
};
-extern int db_exists(const UserOpt *opt);
+int db_exists(const UserOpt *opt);
/* Open the db file. On fail return null pointer to db
* and the corresponding SQL error (NO_DB_FILE | NO_TABLES)*/
-extern DB open_DB(const UserOpt *opt);
+DB open_DB(const UserOpt *opt);
-extern void close_DB(DB *db);
-extern int program_exists(DB *db, const char *pName);
-extern int get_program_paths(DB *db, cklist *ckl, const char* pName, int bName, int attr, const char *home);
+void close_DB(DB *db);
+int program_exists(DB *db, const char *pName);
+int get_program_paths(DB *db, cklist *ckl, const char* pName, int bName, int attr, const char *home);
/********/
/* init */
/********/
/* Create the tables required for the ckdb */
-extern void init_make_tables(DB *db);
-extern DB init_make_DB(const UserOpt *opt);
+void init_make_tables(DB *db);
+DB init_make_DB(const UserOpt *opt);
/*******/
/* add */
/*******/
/* Returns 1 in error, 0 otherwise */
-extern int add_transaction_try(DB *db, const AddOpt * const opt, const char *home);
+int add_transaction_try(DB *db, const AddOpt * const opt, const char *home);
/********/
/* edit */
/********/
-extern int edit_get_prime_config_from_program(DB *db, char *pName, char *ret, int *secret);
-extern int get_config_number(DB *db, char *pName);
-extern int edit_get_config(DB *db, const char *pName, char *ret, const char *cName, int *sec);
+int edit_get_prime_config_from_program(DB *db, char *pName, char *ret, int *secret);
+int get_config_number(DB *db, char *pName);
+int edit_get_config(DB *db, const char *pName, char *ret, const char *cName, int *sec);
/********/
/* list */
/********/
-extern int list_get_paths(DB *db, cklist *ckl, int bName, int attr, const char *home);
-extern int list_get_programs(DB *db, cklist *ckl);
-extern int list_get_path_program_tree(DB *db, cklist *ckl, int bName, int attr, const char *home);
+int list_get_paths(DB *db, cklist *ckl, int bName, int attr, const char *home);
+int list_get_programs(DB *db, cklist *ckl);
+int list_get_path_program_tree(DB *db, cklist *ckl, int bName, int attr, const char *home);
/*******/
/* del */
/*******/
-extern int del_transaction_try(DB *db, const char *pName, const char *cBaseName);
+int del_transaction_try(DB *db, const char *pName, const char *cBaseName);
/***********/
/* restore */
/***********/
-extern int restore_configs_exists(DB *db, Conf *conf, const char *pName, cklist *from, cklist *to);
-extern int restore_all_exist(DB *db, Conf *conf, cklist *from, cklist *to);
+int restore_configs_exists(DB *db, Conf *conf, const char *pName, cklist *from, cklist *to);
+int restore_all_exist(DB *db, Conf *conf, cklist *from, cklist *to);
#endif /* DBLAYER_H */