Revision 25388,
793 bytes
checked in by jdreed, 13 years ago
(diff) |
In moira:
* Re-snapshot moira at r4048
|
Rev | Line | |
---|
[25388] | 1 | /* $Id: common.h 4046 2011-08-18 18:46:48Z zacheiss $ |
---|
[23095] | 2 | * |
---|
| 3 | * Copyright (C) 1987-1999 by the Massachusetts Institute of Technology |
---|
| 4 | * |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | struct entry { |
---|
| 8 | char *id; |
---|
| 9 | char *last; |
---|
| 10 | char *first; |
---|
| 11 | char *middle; |
---|
| 12 | char *type; |
---|
| 13 | |
---|
| 14 | char *name; |
---|
| 15 | char *dept; |
---|
| 16 | char *haddr; |
---|
| 17 | char *hphone; |
---|
| 18 | char *oaddr; |
---|
| 19 | char *ophone; |
---|
| 20 | |
---|
| 21 | char *xtitle; |
---|
| 22 | char *xaddress; |
---|
| 23 | char *xphone1; |
---|
| 24 | char *xphone2; |
---|
[25198] | 25 | |
---|
| 26 | /* Only used by student load */ |
---|
[25388] | 27 | char *reg_type; |
---|
[23095] | 28 | }; |
---|
| 29 | |
---|
| 30 | void fixphone(char *phone); |
---|
| 31 | void fixaddress(char *address); |
---|
| 32 | |
---|
| 33 | void process_entry(struct entry *e, int secure); |
---|
| 34 | void newuser(struct entry *e, int secure); |
---|
| 35 | |
---|
| 36 | int set_next_users_id(void); |
---|
| 37 | int set_next_uid(void); |
---|
| 38 | |
---|
| 39 | void sqlexit(void); |
---|
| 40 | void dbmserr(char *where, int what); |
---|
| 41 | |
---|
| 42 | #define SQL_DUPLICATE -2112 |
---|
| 43 | #define sqlfail() (sqlca.sqlcode && sqlca.sqlcode != 1403) |
---|
Note: See
TracBrowser
for help on using the repository browser.