dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/include il_linker.h, 1.16, 1.17 il_write


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/include il_linker.h, 1.16, 1.17 il_writer.h, 1.7, 1.8
Date: Tue, 08 Jul 2003 20:53:25 -0400

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv10981/include

Modified Files:
        il_linker.h il_writer.h 
Log Message:


Put some of the support code in place for writing win32 resources
and icons (not complete yet).


Index: il_linker.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_linker.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** il_linker.h 16 Jun 2003 05:15:40 -0000      1.16
--- il_linker.h 9 Jul 2003 00:53:22 -0000       1.17
***************
*** 103,106 ****
--- 103,127 ----
                                                int isPrivate, FILE *stream);
  
+ /* Note: only one of "ILLinkerAddWin32Resource", "ILLinkerAddWin32Icon",
+    and "ILLinkerAddWin32Version" should be used */
+ 
+ /*
+  * Add a Win32 resource file to the final image.  Returns zero
+  * if out of memory.
+  */
+ int ILLinkerAddWin32Resource(ILLinker *linker, const char *filename);
+ 
+ /*
+  * Add a Win32 icon file to the final image.  Returns zero
+  * if out of memory.
+  */
+ int ILLinkerAddWin32Icon(ILLinker *linker, const char *filename);
+ 
+ /*
+  * Add Win32 version information to the final image, based upon the
+  * assembly information.  Returns zero if out of memory.
+  */
+ int ILLinkerAddWin32Version(ILLinker *linker);
+ 
  /*
   * Set the entry point to a particular class or method name.

Index: il_writer.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_writer.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** il_writer.h 31 Oct 2002 14:21:02 -0000      1.7
--- il_writer.h 9 Jul 2003 00:53:22 -0000       1.8
***************
*** 165,168 ****
--- 165,190 ----
  
  /*
+  * Create a resource section handler for an image, in writing mode.
+  * Returns NULL if out of memory.
+  */
+ ILResourceSection *ILResourceSectionCreateWriter(ILImage *image);
+ 
+ /*
+  * Add an entry to a resource section handler.  Returns a cookie
+  * for adding bytes to the entry, or NULL if out of memory.
+  */
+ void *ILResourceSectionAddEntry(ILResourceSection *section, const char *name);
+ 
+ /*
+  * Add bytes to a resource section entry.  Returns zero if out of memory.
+  */
+ int ILResourceSectionAddBytes(void *entry, const void *buffer, int len);
+ 
+ /*
+  * Flush the contents of a resource section to a writer.
+  */
+ void ILResourceSectionFlush(ILResourceSection *section, ILWriter *writer);
+ 
+ /*
   * Initialize the constant pool attached to the given class and
   * adds the first entry





reply via email to

[Prev in Thread] Current Thread [Next in Thread]