Add a message callback function to the config struct for libopkg users.
[oweals/opkg-lede.git] / libopkg / opkg_conf.h
index 67b660fda5061fe1ab8799c4d9b249132ec82d89..52498f58eb15284fd10b1cb30a1b77ef51343792 100644 (file)
@@ -57,6 +57,9 @@ struct opkg_conf
 
      uint pfm; /* package field mask */
 
+     /* For libopkg users to capture messages. */
+     void (*opkg_vmessage)(int, const char *fmt, va_list ap);
+
      /* options */
      int autoremove;
      int force_depends;