summaryrefslogtreecommitdiff
path: root/src/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.h')
-rw-r--r--src/utils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h
index 98a4c6b..b37d755 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -9,6 +9,17 @@
#ifndef nsgenbind_utils_h
#define nsgenbind_utils_h
+/**
+ * get a pathname with the output prefix prepended
+ *
+ * \param fname leaf filename.
+ * \return full prefixed path to file caller must free
+ */
+char *genb_fpath(const char *fname);
+
+/**
+ * Open file allowing for output path prefix
+ */
FILE *genb_fopen(const char *fname, const char *mode);
#ifdef _WIN32