Version 0.2.15.
[gsasl.git] / src / internal.h
blobe0f10dc7021d42ecf2dd553bbbc8cfda7d43342b
1 /* internal.h internal header file for gsasl
2 * Copyright (C) 2002, 2003, 2004, 2005, 2006 Simon Josefsson
4 * This file is part of GNU SASL.
6 * GNU SASL 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.
11 * GNU SASL 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.
16 * You should have received a copy of the GNU General Public License
17 * along with GNU SASL; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #ifndef _INTERNAL_H
23 #define _INTERNAL_H
25 #if HAVE_CONFIG_H
26 # include "config.h"
27 #endif
29 #include <stdio.h>
30 #include <stdlib.h>
31 #include <stdarg.h>
32 #include <ctype.h>
33 #include <string.h>
34 #include <errno.h>
35 #include <stdbool.h>
37 #include <sys/types.h>
38 #include <sys/socket.h> /* for AF_INET */
39 #include <sys/select.h> /* select() */
41 #include <unistd.h>
42 #ifdef HAVE_NETDB_H
43 # include <netdb.h>
44 #endif
45 #ifdef HAVE_SYS_TIME_H
46 # include <sys/time.h> /* select() */
47 #endif
48 #ifdef HAVE_PWD_H
49 # include <pwd.h> /* getpwnam */
50 #endif
51 #ifdef HAVE_NETINET_IN_H
52 # include <netinet/in.h>
53 #endif
55 #include <gsasl.h>
57 /* Gnulib. */
58 #include "strdup.h"
59 #include "progname.h"
60 #include "error.h"
61 #include "getpass.h"
62 #include "getaddrinfo.h"
63 #include "readline.h"
64 #include "quote.h"
66 /* Get i18n. */
67 #include <gettext.h>
68 #ifdef HAVE_LOCALE_H
69 # include <locale.h>
70 #else
71 # define setlocale(Category, Locale) /* empty */
72 #endif
73 #define _(String) gettext (String)
74 #define gettext_noop(String) String
75 #define N_(String) gettext_noop (String)
77 extern int writeln (const char *str);
78 extern int readln (char **out);
80 #include "gsasl_cmd.h"
81 extern struct gengetopt_args_info args_info;
83 #endif /* _INTERNAL_H */