Mercurial > noffle
comparison src/group.c @ 127:3c71e28c8eef noffle
[svn] Release-1-0 mergedocs/NOTES
author | bears |
---|---|
date | Tue, 25 Jul 2000 13:14:54 +0100 |
parents | 38b0a1532a37 |
children | fed1334d766b |
comparison
equal
deleted
inserted
replaced
126:7c7a7c96d35b | 127:3c71e28c8eef |
---|---|
5 the groups we know of. One database record is cached in the global struct | 5 the groups we know of. One database record is cached in the global struct |
6 grp. Group information is transfered between the grp and the database by | 6 grp. Group information is transfered between the grp and the database by |
7 loadGrp() and saveGrp(). This is done transparently. Access to the groups | 7 loadGrp() and saveGrp(). This is done transparently. Access to the groups |
8 database is done by group name, by the functions defined in group.h. | 8 database is done by group name, by the functions defined in group.h. |
9 | 9 |
10 $Id: group.c 135 2000-06-05 08:57:05Z bears $ | 10 $Id: group.c 183 2000-07-25 12:14:54Z bears $ |
11 */ | 11 */ |
12 | 12 |
13 #if HAVE_CONFIG_H | 13 #if HAVE_CONFIG_H |
14 #include <config.h> | 14 #include <config.h> |
15 #endif | 15 #endif |
176 Utl_cpyStr( grp.serv, "(unknown)" ); | 176 Utl_cpyStr( grp.serv, "(unknown)" ); |
177 grp.dsc[ 0 ] = '\0'; | 177 grp.dsc[ 0 ] = '\0'; |
178 grp.entry.first = 1; | 178 grp.entry.first = 1; |
179 grp.entry.last = 0; | 179 grp.entry.last = 0; |
180 grp.entry.rmtNext = GRP_RMT_NEXT_NOT_SUBSCRIBED; | 180 grp.entry.rmtNext = GRP_RMT_NEXT_NOT_SUBSCRIBED; |
181 grp.entry.created = 0; | 181 grp.entry.created = time( NULL ); |
182 grp.entry.lastAccess = 0; | 182 grp.entry.lastAccess = 0; |
183 grp.postAllow = 'y'; | 183 grp.postAllow = 'y'; |
184 saveGrp(); | 184 saveGrp(); |
185 } | 185 } |
186 | 186 |
293 saveGrp(); | 293 saveGrp(); |
294 } | 294 } |
295 } | 295 } |
296 | 296 |
297 void | 297 void |
298 Grp_setCreated( const char *name, time_t value ) | |
299 { | |
300 if ( loadGrp( name ) ) | |
301 { | |
302 grp.entry.created = value; | |
303 saveGrp(); | |
304 } | |
305 } | |
306 | |
307 void | |
308 Grp_setRmtNext( const char *name, int value ) | 298 Grp_setRmtNext( const char *name, int value ) |
309 { | 299 { |
310 if ( loadGrp( name ) ) | 300 if ( loadGrp( name ) ) |
311 { | 301 { |
312 grp.entry.rmtNext = value; | 302 grp.entry.rmtNext = value; |