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

Diff of /dgee/dbstore/groupUserMapTable.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     * groupUserMap 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_GROUPUSERMAP_TABLE_H
26    #define DG_GROUPUSERMAP_TABLE_H
27    
28    #include "dbObject.h"
29    
30    
31    #define C_GROUPNAME_LEN 32
32    #define C_USERNAME_LEN 64
33    
34    /* Define the GroupUserMap Table
35     */
36    #define DBGROUPUSERMAP_KFIELDS \
37     \
38    X_CHAR( groupName, C_GROUPNAME_LEN) \
39     \
40     \
41    
42    
43    #define DBGROUPUSERMAP_DFIELDS \
44     \
45    X_CHAR( userName, C_USERNAME_LEN) \
46     \
47     \
48    
49    
50    /* Create the Table Structures -----------------------------------------------
51     */
52    #include "start_decl.h"
53    typedef struct {
54            DBGROUPUSERMAP_KFIELDS
55    } dbGroupUserMapKey;
56    
57    typedef struct {
58            DBGROUPUSERMAP_DFIELDS
59    } dbGroupUserMapData;
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      dbGroupUserMapKey   key;
69      /* And then the data structure */
70      dbGroupUserMapData  data;
71    
72      /* Everything after here is 'free' for use */
73    
74    } dbGroupUserMap;
75    
76    #ifdef DBSTORE_WANT_DETAILS
77    
78    #include "start_prop_decl.h"
79    #define KTYPE dbGroupUserMapKey
80    dbProperty groupUserMapKeyProperties[] = {
81            DBGROUPUSERMAP_KFIELDS
82            { NULL }
83    };
84    #undef KTYPE
85    #define KTYPE dbGroupUserMapData
86    dbProperty groupUserMapDataProperties[] = {
87            DBGROUPUSERMAP_DFIELDS
88            { NULL }
89    };
90    #undef KTYPE
91    #include "end_decl.h"
92    
93    char *groupUserMapDBH = NULL;
94    
95    /* Define the complete GroupUserMap Object so the
96     * constructor knows everything it needs.
97     */
98    dbObjDesc dbGroupUserMapDef = {
99            sizeof(dbGroupUserMapKey),   /* Key Size    */
100            sizeof(dbGroupUserMapData),  /* Data Size   */
101            sizeof(dbGroupUserMap),      /* Object Size */
102            "groupusermap",             /* Table Name  */
103            KEY_IS_NOT_UNIQUE,
104            &groupUserMapDBH,            /* groupUserMap DBH */
105            groupUserMapKeyProperties,
106            groupUserMapDataProperties
107    };
108    #else
109    extern dbObjDesc dbGroupUserMapDef;
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