diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-30 03:44:20 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-04-30 03:44:20 (EDT) |
commit | dc25a788d874d9ee95738b9fa56d2a06f6a31141 (patch) | |
tree | c387f2cac34c32e001409f85dfe1281ede74cc6c /src/opk.h | |
parent | c28ea1e0a30ad036a30288c8cda68c80c08ab0ec (diff) |
opk/write: Build mode (WIP)
Diffstat (limited to 'src/opk.h')
-rw-r--r-- | src/opk.h | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -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. |