summaryrefslogtreecommitdiffstats
path: root/include/libaccess/ava.h
blob: c8570b90077f197132c2acd3afd8ea0daefb0e6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/** BEGIN COPYRIGHT BLOCK
 * Copyright 2001 Sun Microsystems, Inc.
 * Portions copyright 1999, 2001-2003 Netscape Communications Corporation.
 * All rights reserved.
 * END COPYRIGHT BLOCK **/
#ifndef _ava_h
#define _ava_h

#define ENTRIES_ALLOCSIZE 100
#define ORGS_ALLOCSIZE    15


#ifdef XP_WIN32
#define NSAPI_PUBLIC __declspec(dllexport)
#else /* !XP_WIN32 */
#define NSAPI_PUBLIC
#endif


typedef struct {
  char *email;
  char *locality;
  char *userid; 
  char *state;
  char *country;
  char *company;
  int numOrgs;
  char **organizations;
  char *CNEntry;
} AVAEntry;

typedef struct {
  char *userdb;
  int numEntries;
  AVAEntry **enteredTable; 
} AVATable;


#endif