summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libopkg/opkg.c6
-rw-r--r--libopkg/opkg_install.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c
index a4fefa0..857ed74 100644
--- a/libopkg/opkg.c
+++ b/libopkg/opkg.c
@@ -387,6 +387,12 @@ opkg_set_option (opkg_t *opkg, char *option, void *value)
}
+/**
+ * @brief libopkg API: Install package
+ * @param opkg Then opkg handler
+ * @param package_name The name of package in which is going to install
+ * @param progress_callback The callback function that report the status to caller.
+ */
int
opkg_install_package (opkg_t *opkg, const char *package_name, opkg_progress_callback_t progress_callback, void *user_data)
{
diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c
index aa17c9b..3a1d69d 100644
--- a/libopkg/opkg_install.c
+++ b/libopkg/opkg_install.c
@@ -748,7 +748,9 @@ static int opkg_install_check_downgrade(opkg_conf_t *conf, pkg_t *pkg, pkg_t *ol
}
}
-/* and now the meat... */
+/**
+ * @brief Really install a pkg_t
+ */
int opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade)
{
int err = 0;