/[dgee]/dgee/dbstore/groupWSMapTable.h
ViewVC logotype

Diff of /dgee/dbstore/groupWSMapTable.h

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

revision 1.1 by csmith, Thu May 29 18:09:19 2003 UTC revision 1.2 by csmith, Sun Sep 21 10:48:17 2003 UTC
# Line 0  Line 1 
1    /*
2     * DotGNU Execution Environment Core
3     * (c)2003 netFluid Technology Ltd - http://www.nfluid.com
4     *
5     * groupWSMap DB Table -- AUTO GENERATED FROM dbtables.cfg --
6     *
7     * This program is free software; you can redistribute it and/or modify
8     * it under the terms of the GNU General Public License as published by
9     * the Free Software Foundation; either version 2 of the License, or
10     * (at your option) any later version.
11     *
12     * This program is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with this program; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20     *
21     * $Revision$  $Date$
22     *
23     * --------------------------------------------------------------------------
24     */
25    #ifndef DG_GROUPWSMAP_TABLE_H
26    #define DG_GROUPWSMAP_TABLE_H
27    
28    #include "dbObject.h"
29    
30    
31    #define C_GROUPNAME_LEN 32
32    #define C_SERVICENAME_LEN 128
33    
34    /* Define the GroupWSMap Table
35     */
36    #define DBGROUPWSMAP_KFIELDS \
37     \
38    X_CHAR( groupName, C_GROUPNAME_LEN) \
39     \
40     \
41    
42    
43    #define DBGROUPWSMAP_DFIELDS \
44     \
45    X_CHAR( serviceName, C_SERVICENAME_LEN) \
46     \
47     \
48    
49    
50    /* Create the Table Structures -----------------------------------------------
51     */
52    #include "start_decl.h"
53    typedef struct {
54            DBGROUPWSMAP_KFIELDS
55    } dbGroupWSMapKey;
56    
57    typedef struct {
58            DBGROUPWSMAP_DFIELDS
59    } dbGroupWSMapData;
60    #include "end_decl.h"
61    
62    typedef struct {
63      /* Methods then private MUST come first */
64      dbObjMethods method;
65      dbObjPrivate private;
66    
67      /* Followed immediately by the key structure */
68      dbGroupWSMapKey   key;
69      /* And then the data structure */
70      dbGroupWSMapData  data;
71    
72      /* Everything after here is 'free' for use */
73    
74    } dbGroupWSMap;
75    
76    #ifdef DBSTORE_WANT_DETAILS
77    
78    #include "start_prop_decl.h"
79    #define KTYPE dbGroupWSMapKey
80    dbProperty groupWSMapKeyProperties[] = {
81            DBGROUPWSMAP_KFIELDS
82            { NULL }
83    };
84    #undef KTYPE
85    #define KTYPE dbGroupWSMapData
86    dbProperty groupWSMapDataProperties[] = {
87            DBGROUPWSMAP_DFIELDS
88            { NULL }
89    };
90    #undef KTYPE
91    #include "end_decl.h"
92    
93    char *groupWSMapDBH = NULL;
94    
95    /* Define the complete GroupWSMap Object so the
96     * constructor knows everything it needs.
97     */
98    dbObjDesc dbGroupWSMapDef = {
99            sizeof(dbGroupWSMapKey),   /* Key Size    */
100            sizeof(dbGroupWSMapData),  /* Data Size   */
101            sizeof(dbGroupWSMap),      /* Object Size */
102            "groupwsmap",             /* Table Name  */
103            KEY_IS_NOT_UNIQUE,
104            &groupWSMapDBH,            /* groupWSMap DBH */
105            groupWSMapKeyProperties,
106            groupWSMapDataProperties
107    };
108    #else
109    extern dbObjDesc dbGroupWSMapDef;
110    #endif /* DBSTORE_WANT_DETAILS */
111    
112    /* ------------------------------------------------------------------------- */
113    #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