summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/db.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/db.h')
-rw-r--r--Build/source/texk/kpathsea/db.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/Build/source/texk/kpathsea/db.h b/Build/source/texk/kpathsea/db.h
index f79cc9c203c..11e33745af8 100644
--- a/Build/source/texk/kpathsea/db.h
+++ b/Build/source/texk/kpathsea/db.h
@@ -25,22 +25,38 @@
/* Initialize the database. Until this is called, no ls-R matches will
be found. */
-extern void kpse_init_db P1H(void);
+extern void kpathsea_init_db (kpathsea kpse);
/* Return list of matches for NAME in the ls-R file matching PATH_ELT. If
ALL is set, return (null-terminated list) of all matches, else just
the first. If no matches, return a pointer to an empty list. If no
databases can be read, or PATH_ELT is not in any of the databases,
return NULL. */
-extern str_list_type *kpse_db_search P3H(const_string name,
- const_string path_elt, boolean all);
-extern str_list_type *kpse_db_search_list P3H(const_string* names,
- const_string path_elt,
- boolean all);
+extern str_list_type *kpathsea_db_search (kpathsea kpse, const_string name,
+ const_string path_elt, boolean all);
+
+extern str_list_type *kpathsea_db_search_list (kpathsea kpse,
+ const_string* names,
+ const_string path_elt,
+ boolean all);
/* Insert the filename FNAME into the database.
Called by mktexpk et al. */
-extern KPSEDLL void kpse_db_insert P1H(const_string fname);
+extern KPSEDLL void kpathsea_db_insert (kpathsea kpse, const_string fname);
+
+#if defined(KPSE_COMPAT_API)
+extern void kpse_init_db (void);
+
+extern str_list_type *kpse_db_search (const_string name,
+ const_string path_elt, boolean all);
+
+extern str_list_type *kpse_db_search_list (const_string* names,
+ const_string path_elt,
+ boolean all);
+
+extern KPSEDLL void kpse_db_insert (const_string fname);
+
+#endif
#endif /* not KPATHSEA_DB_H */