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

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