| 1 |
;;; Help produce Guile wrappers for GnuTLS types. |
| 2 |
;;; |
| 3 |
;;; GnuTLS --- Guile bindings for GnuTLS. |
| 4 |
;;; Copyright (C) 2007-2025 Free Software Foundation, Inc. |
| 5 |
;;; |
| 6 |
;;; This file is part of Guile-GnuTLS. |
| 7 |
;;; |
| 8 |
;;; This library is free software; you can redistribute it and/or |
| 9 |
;;; modify it under the terms of the GNU Lesser General Public |
| 10 |
;;; License as published by the Free Software Foundation; either |
| 11 |
;;; version 2.1 of the License, or (at your option) any later version. |
| 12 |
;;; |
| 13 |
;;; This library is distributed in the hope that it will be useful, |
| 14 |
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
;;; Lesser General Public License for more details. |
| 17 |
;;; |
| 18 |
;;; You should have received a copy of the GNU Lesser General Public |
| 19 |
;;; License along with this library; if not, see <https://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
;;; Written by Ludovic Courtès <[email protected]>. |
| 22 |
|
| 23 |
|
| 24 |
(use-modules (gnutls build enums)) |
| 25 |
|
| 26 |
|
| 27 |
;;; |
| 28 |
;;; The program. |
| 29 |
;;; |
| 30 |
|
| 31 |
(define (main . args) |
| 32 |
(let ((port (current-output-port)) |
| 33 |
(enums %gnutls-enums)) |
| 34 |
(for-each (lambda (enum) |
| 35 |
(output-enum-smob-definitions enum port)) |
| 36 |
enums) |
| 37 |
(output-enum-definition-function enums port))) |
| 38 |
|
| 39 |
(apply main (cdr (command-line))) |
| 40 |
|
| 41 |
;;; Local Variables: |
| 42 |
;;; mode: scheme |
| 43 |
;;; coding: utf-8 |
| 44 |
;;; End: |
| 45 |
|
| 46 |
;;; arch-tag: 3deb7d3a-005d-4f83-a72a-7382ef1e74a0 |