From b06a66aaeddc129a3a8c08f0ac45be6d7f2c5199 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 05:33:45 +0000 Subject: [PATCH] opkg: trivial adding some comments git-svn-id: http://opkg.googlecode.com/svn/trunk@176 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/opkg.c | 6 ++++++ libopkg/opkg_install.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) 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; -- 2.30.2