source: trunk/third/moira/regtape/common.h @ 26024

Revision 26024, 874 bytes checked in by jdreed, 11 years ago (diff)
In moira: * Snapshot moira at r4113 to pick up new firewall-related changes
Line 
1/* $Id: common.h 4111 2013-05-22 20:26:51Z zacheiss $
2 *
3 * Copyright (C) 1987-1999 by the Massachusetts Institute of Technology
4 *
5 */
6
7struct 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;
25
26  /* Only used by student load */
27  char *reg_type;
28
29  char *affiliation_basic;
30  char *affiliation_detailed;
31  char *email_address;
32};
33
34void fixphone(char *phone);
35void fixaddress(char *address);
36
37void process_entry(struct entry *e, int secure);
38void newuser(struct entry *e, int secure);
39
40int set_next_users_id(void);
41int set_next_uid(void);
42
43void sqlexit(void);
44void dbmserr(char *where, int what);
45
46#define SQL_DUPLICATE -2112
47#define sqlfail() (sqlca.sqlcode && sqlca.sqlcode != 1403)
Note: See TracBrowser for help on using the repository browser.