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_image.h,1.19,1.20


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/include il_image.h,1.19,1.20
Date: Mon, 07 Jul 2003 08:44:53 -0400

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

Modified Files:
        il_image.h 
Log Message:


Add code to "image" to read the contents of the ".rsrc" section in an IL binary.


Index: il_image.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_image.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** il_image.h  15 May 2003 04:51:47 -0000      1.19
--- il_image.h  7 Jul 2003 12:44:51 -0000       1.20
***************
*** 79,82 ****
--- 79,83 ----
  #define       IL_SECTION_DATA                 7       /* Data section */
  #define       IL_SECTION_TLS                  8       /* TLS data section */
+ #define       IL_SECTION_WINRES               9       /* Windows resource 
section */
  
  /*
***************
*** 451,454 ****
--- 452,484 ----
                                                const char **afterPaths, 
unsigned long numAfterPaths,
                                                int suppressStandardPaths, int 
*sameDir);
+ 
+ /*
+  * Information about the resource section.
+  */
+ typedef struct _tagILResourceSection ILResourceSection;
+ 
+ /*
+  * Create a resource section handler for an image.
+  * Returns NULL if out of memory.
+  */
+ ILResourceSection *ILResourceSectionCreate(ILImage *image);
+ 
+ /*
+  * Destroy a resource section handler.
+  */
+ void ILResourceSectionDestroy(ILResourceSection *section);
+ 
+ /*
+  * Get a named entry from a resource section.  Returns NULL if not found.
+  */
+ void *ILResourceSectionGetEntry(ILResourceSection *section, const char *name,
+                                                               unsigned long 
*length);
+ 
+ /*
+  * Get the first leaf entry under a specific resource directory in a
+  * resource section.  Returns NULL if not found.
+  */
+ void *ILResourceSectionGetFirstEntry(ILResourceSection *section,
+                                                                        const 
char *name, unsigned long *length);
  
  #ifdef        __cplusplus





reply via email to

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