Tizen 2.0 Release
[external/libgnutls26.git] / guile / src / make-enum-map.scm
1 ;;; Help produce Guile wrappers for GnuTLS types.
2 ;;;
3 ;;; GnuTLS --- Guile bindings for GnuTLS.
4 ;;; Copyright (C) 2007, 2010 Free Software Foundation, Inc.
5 ;;;
6 ;;; GnuTLS is free software; you can redistribute it and/or
7 ;;; modify it under the terms of the GNU Lesser General Public
8 ;;; License as published by the Free Software Foundation; either
9 ;;; version 2.1 of the License, or (at your option) any later version.
10 ;;;
11 ;;; GnuTLS 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 GNU
14 ;;; Lesser General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU Lesser General Public
17 ;;; License along with GnuTLS; if not, write to the Free Software
18 ;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
20 ;;; Written by Ludovic Courtès <ludo@chbouib.org>.
21
22
23 (use-modules (gnutls build enums))
24
25 \f
26 ;;;
27 ;;; The program.
28 ;;;
29
30 (define (main . args)
31   (let ((port (current-output-port))
32         (enums (if (null? args)
33                    %gnutls-enums
34                    %gnutls-extra-enums)))
35     (for-each (lambda (enum)
36                 (output-enum-smob-definitions enum port))
37               enums)
38     (output-enum-definition-function enums port)))
39
40 (apply main (cdr (command-line)))
41
42 ;;; Local Variables:
43 ;;; mode: scheme
44 ;;; coding: latin-1
45 ;;; End:
46
47 ;;; arch-tag: 3deb7d3a-005d-4f83-a72a-7382ef1e74a0