opkg: 's/itsy/opkg/'
[project/opkg-lede.git] / libopkg / libopkg.c
index c57ad0a8810caf37ee008e04c083aa359e39cdaf..ba1b2e0adb1a0b854b85cf1817fdc4d6f1e15e7f 100644 (file)
@@ -1,4 +1,4 @@
-/* opkglib.c - the itsy package management system
+/* opkglib.c - the opkg package management system
 
    Florina Boor
 
@@ -15,9 +15,6 @@
    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;
 
@@ -394,12 +390,9 @@ int default_opkg_message_callback(opkg_conf_t *conf, message_level_t level,
      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;
@@ -523,5 +516,3 @@ opkg_op (int argc, char *argv[])
 
        return err;
 }
-
-#endif /* OPKG_LIB */