summaryrefslogtreecommitdiffstats
path: root/src/opk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opk.h')
-rw-r--r--src/opk.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/opk.h b/src/opk.h
index 049953f..8148dc8 100644
--- a/src/opk.h
+++ b/src/opk.h
@@ -80,8 +80,9 @@ int
opkg_opk_opk_list_data(struct opkg_opk_opk *opk);
/*
- * Sets the directory into which to extract control files. The directory (but
- * not its ancestors) will be created if it doesn't exist.
+ * Sets the directory into which to extract control files when reading or in
+ * which to find control files when writing. When extracting, the directory
+ * (but not its ancestors) will be created if it doesn't exist.
* Parameters:
* - opk: Package structure.
* - dir: Directory.
@@ -92,6 +93,17 @@ int
opkg_opk_opk_control_dir(struct opkg_opk_opk *opk, const char *dir);
/*
+ * Sets the directory in which to find data files when writing.
+ * Parameters:
+ * - opk: Package structure.
+ * - dir: Directory.
+ * Returns:
+ * - OPKG_OPK_OK.
+ */
+int
+opkg_opk_opk_data_dir(struct opkg_opk_opk *opk, const char *dir);
+
+/*
* Performs the configured read actions.
* Parameters:
* - file_name: Package's file name.
@@ -100,6 +112,14 @@ int
opkg_opk_opk_read(struct opkg_opk_opk *opk, const char *file_name);
/*
+ * Performs the configured write actions.
+ * Parameters:
+ * - file_name: Package's file name.
+ */
+int
+opkg_opk_opk_write(struct opkg_opk_opk *opk, const char *file_name);
+
+/*
* Frees a package structure.
* Parameters:
* - opk: Package structure.