File tree 10 files changed +33
-23
lines changed
10 files changed +33
-23
lines changed Original file line number Diff line number Diff line change 1
1
%feature(" intern_function" , " swig-lispify" );
2
2
%feature(" export" );
3
3
%typemap(cin) u_short " :unsigned-short" ;
4
-
5
4
%insert(" lisphead" ) %{
6
- (defpackage :dns
7
- (:use :cl :cffi))
8
5
(in-package :dns)
9
6
%}
10
7
Original file line number Diff line number Diff line change 4
4
:licence " WTFPL"
5
5
:serial t
6
6
:description " Helpful DNS functions where Lisp doesn't efficiently do the right things"
7
- :components ((:file " ffi" ))
7
+ :components ((:file " package" )
8
+ (:file " ffi" ))
8
9
:depends-on (:cffi ))
Original file line number Diff line number Diff line change 4
4
; ;; Do not make changes to this file unless you know what you are doing--modify
5
5
; ;; the SWIG interface file instead.
6
6
7
- (defpackage :dns
8
- (:use :cl :cffi ))
9
7
(in-package :dns )
10
8
11
9
Original file line number Diff line number Diff line change
1
+ (defpackage :dns
2
+ (:use :cl :cffi )
3
+ (:export
4
+ # :initialize-library))
5
+ (in-package :dns )
6
+
7
+ (cffi :define-foreign-library dns
8
+ (:unix (:or " c-src/libdns.so" )))
9
+
10
+ (defun initialize-library ()
11
+ (cffi :use-foreign-library dns))
Original file line number Diff line number Diff line change 7
7
8
8
(in-package :http3 )
9
9
10
- (cffi :define-foreign-library lsquic
11
- (:unix (:or " lsquic/src/liblsquic/liblsquic.so" )))
12
-
13
- (cffi :define-foreign-library dns
14
- (:unix (:or " c-src/libdns.so" )))
15
-
16
- (cffi :define-foreign-library udp
17
- (:unix (:or " c-src/libudp.so" )))
18
-
19
- (cffi :use-foreign-library lsquic)
20
- (cffi :use-foreign-library dns)
21
- (cffi :use-foreign-library udp)
Original file line number Diff line number Diff line change 37
37
(subseq name (length s))
38
38
name)))
39
39
prefixes-to-remove))) flag package ))))
40
+
41
+ (cffi :define-foreign-library lsquic
42
+ (:unix (:or " lsquic/src/liblsquic/liblsquic.so" )))
43
+ (cffi :use-foreign-library lsquic)
44
+
45
+ (dns :initialize-library)
46
+ (udp :initialize-library)
Original file line number Diff line number Diff line change 4
4
; ;; Do not make changes to this file unless you know what you are doing--modify
5
5
; ;; the SWIG interface file instead.
6
6
7
- (defpackage :udp
8
- (:use :cl :cffi ))
9
7
(in-package :udp )
10
8
11
9
Original file line number Diff line number Diff line change
1
+ (defpackage :udp
2
+ (:use :cl :cffi )
3
+ (:export
4
+ # :initialize-library))
5
+ (in-package :udp )
6
+
7
+ (cffi :define-foreign-library udp
8
+ (:unix (:or " c-src/libudp.so" )))
9
+
10
+ (defun initialize-library ()
11
+ (cffi :use-foreign-library udp))
Original file line number Diff line number Diff line change 4
4
:licence " WTFPL"
5
5
:serial t
6
6
:description " Helpful UDP functions where Lisp doesn't efficiently do the right things"
7
- :components ((:file " ffi" ))
7
+ :components ((:file " package" )
8
+ (:file " ffi" ))
8
9
:depends-on (:cffi ))
Original file line number Diff line number Diff line change 1
1
%feature(" intern_function" , " swig-lispify" );
2
2
%feature(" export" );
3
3
%insert(" lisphead" ) %{
4
- (defpackage :udp
5
- (:use :cl :cffi))
6
4
(in-package :udp)
7
5
%}
8
6
You can’t perform that action at this time.
0 commit comments