-/* opkglib.c - the itsy package management system
+/* opkglib.c - the opkg package management system
Florina Boor
General Public License for more details.
*/
-#ifdef OPKG_LIB
-
-#include "opkg.h"
#include "includes.h"
#include "libopkg.h"
#include "opkg_cmd.h"
#include "file_util.h"
+#include "opkg_message.h"
+#include "opkg_error.h"
-
-opkg_message_callback opkg_cb_message = NULL;
-opkg_response_callback opkg_cb_response = NULL;
opkg_status_callback opkg_cb_status = NULL;
opkg_list_callback opkg_cb_list = NULL;
if (conf && (conf->verbosity < level)) {
return 0;
} else {
-#ifdef OPKG_LIB
if ( level == OPKG_ERROR ){
push_error_list(&error_list, msg);
-// printf(msg);
} else
-#endif
printf(msg);
}
return 0;
!strcmp(cmd_name,"status") )
args.noreadfeedsfile = 1;
+ opkg_cb_message = default_opkg_message_callback;
+ opkg_cb_response = default_opkg_response_callback;
+ opkg_cb_status = default_opkg_status_callback;
+
err = opkg_conf_init (&opkg_conf, &args);
if (err)
args_deinit (&args);
- opkg_cb_message = default_opkg_message_callback;
- opkg_cb_response = default_opkg_response_callback;
- opkg_cb_status = default_opkg_status_callback;
if ( strcmp(cmd_name, "files")==0)
opkg_cb_list = default_opkg_files_callback;
else
return err;
}
-
-#endif /* OPKG_LIB */