* Author:
* Paolo Molaro (lupus@ximian.com)
*
- * (C) 2002 Ximian, Inc.
+ * Copyright 2002-2003 Ximian, Inc (http://www.ximian.com)
+ * Copyright 2004-2009 Novell, Inc (http://www.novell.com)
*
*/
#include <mono/metadata/class.h>
MonoImage *image;
const char *pubkey;
guint32 len;
+
+ mono_metadata_init ();
+ mono_images_init ();
+ mono_assemblies_init ();
+ mono_loader_init ();
+
image = mono_image_open (file, NULL);
if (!image) {
printf ("Cannot open image file: %s\n", file);
}
pubkey = mono_image_get_public_key (image, &len);
if (!pubkey) {
- printf ("%s does not represent a strongly named assembly\n", image->name);
+ printf ("%s does not represent a strongly named assembly\n", mono_image_get_name(image));
mono_image_close (image);
return 2;
}
else
pubkey = mono_image_get_strong_name (image, &len);
if (!pubkey) {
- printf ("%s does not represent a strongly named assembly\n", image->name);
+ printf ("%s does not represent a strongly named assembly\n", mono_image_get_name(image));
mono_image_close (image);
return 2;
}
int binlen, ret, lenout;
FILE *file;
- if (!g_file_get_contents (from, &key, &len, NULL)) {
+ if (!g_file_get_contents (from, (gchar**) &key, &len, NULL)) {
printf ("Cannot load file: %s\n", from);
return 2;
}
snsize = 0;
}
- if (!g_file_get_contents (from, &ass, &len, NULL)) {
+ if (!g_file_get_contents (from, (gchar**) &ass, &len, NULL)) {
printf ("Cannot load file: %s\n", from);
mono_image_close (image);
return 2;