#include "module.h"
#include "uobject.h"
#include "exportable.h"
+#include "loadable.h"
enum {
MODE_INFO,
if (u_object_deserialize(obj, f) != 0) {
goto out;
}
+
+ if (U_OBJECT_IS_LOADABLE(obj) && u_object_load(obj) != 0) {
+ goto out;
+ }
+
u_object_export_name(obj, name, sizeof name);
printf("exporting %s to %s\n", upkg_export_name(pkg, idx), name);
goto out;
}
+ if (U_OBJECT_IS_LOADABLE(obj)) {
+ u_object_unload(obj);
+ }
+
out:
upkg_export_close(f);
return rc;