/[dgee]/dgee/pnetvm/clrCache.h
ViewVC logotype

Diff of /dgee/pnetvm/clrCache.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by csmith, Tue Aug 12 19:17:46 2003 UTC revision 1.2 by csmith, Sun Sep 21 10:37:59 2003 UTC
# Line 0  Line 1 
1    /*
2     * clrCache.h - pnet CLR caching
3     *
4     * Copyright (C) 2003 netFluid Technology Ltd
5     *
6     * This program is free software; you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19     */
20    
21    #ifndef CLRCACHE_H
22    #define CLRCACHE_H
23    
24    #include <phlib/xl_types.h>
25    #include <phlib/xl_linklst.h>
26    
27    /* #include "engine.h" */
28    
29    #include "il_engine.h"
30    #include "il_system.h"
31    #include "il_image.h"
32    
33    /* #include <pnet/lib_defs.h> */
34    
35    #ifdef  __cplusplus
36    extern  "C" {
37    #endif
38    
39    #define DGNAMELEN 256
40    
41    typedef struct {
42      char      name[DGNAMELEN];
43      uchar    *bytes;
44      ulong     len;
45      ILObject *object;
46      ulong     modtime;
47      int       flags;
48    } DGImage;
49    
50    void      pnetVM_initCache         ( );
51    void      pnetVM_addBytecodeToCache( char *name, uchar *bytes, ulong len );
52    DGImage  *pnetVM_findCachedObject  ( char *name );
53    
54    ILObject *_IL_AssemblyContainer_LoadFromMemory(ILExecThread *thread,
55                                                   ILString     *name,
56                                                   ILInt32      *error );
57    #ifdef  __cplusplus
58    };
59    #endif
60    
61    #endif

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26