1 /* refdb.h main include file for the refdb project */
2 /* markus@mhoenicka.de 2-10-00 */
3 /* $Id: refdb.h,v 1.14.2.2 2005/11/03 20:40:19 mhoenicka Exp $ */
4 
5 /*
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10 
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15 
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 
20   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
21 
22 
23 #define MAX_FMT_LEN 256 /* maximum length of a getref format string, including the terminating \0 */
24 #define DBNAME_LENGTH 32 /* maximum database name length (imposed by MySQL) */
25 #define PRIV_LENGTH 16 /* maximum length of a privilege name in MySQL security
26 			  tables */
27 #define PASSWD_LENGTH 16 /* this appears to be the maximum length of a MySQL
28 			    password */
29 #define DBUSER_LENGTH 16 /* the maximum database user name length */
30 #define XMLPARSE_CHUNKSIZE 4096 /* the chunk size when reading an XML file */
31 
32 /* this accommodates a variable name of max. 16 chars, a tab,
33    a POSIX full path, and a \0 (273 = _POSIX_PATH_MAX + 18)*/
34 #define PREFS_BUF_LEN 273
35 
36 #ifndef __CYGWIN__
37 #  if !defined _POSIX_PATH_MAX
38 #    define _POSIX_PATH_MAX 256
39 #  endif
40 #endif
41 
42 /* define a few things that should be accessible through libdbi */
43 #define USERNAME_LENGTH 16
44 #define HOSTNAME_LENGTH 64
45 
46 /* these defines are for the getfoo() function */
47 #define GETAU 0
48 #define GETKW 1
49 #define GETJO 2
50 #define GETJF 3
51 #define GETJ1 4
52 #define GETJ2 5
53 #define GETED 6
54 #define GETAS 7
55 #define GETAX 8
56 
57 
58 
59