<refsect1>
<title>Syntax</title>
<synopsis>
- <function>load-foreign-library</function> <replaceable>filename module supporting-libraries</replaceable> => <returnvalue>success</returnvalue>
+ <function>load-foreign-library</function> <replaceable>filename &key module supporting-libraries</replaceable> => <returnvalue>success</returnvalue>
</synopsis>
</refsect1>
<refsect1>
<term><parameter>filename</parameter></term>
<listitem>
<para>A string or pathname specifying the library location
-in the filesystem.
+in the filesystem. At least one implementation (&lw;) can not
+accept a logical pathname.
</para>
</listitem>
</varlistentry>
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
-;;;; $Id: compress.cl,v 1.5 2002/03/10 11:13:07 kevin Exp $
+;;;; $Id: compress.cl,v 1.6 2002/03/10 20:01:55 kevin Exp $
;;;;
;;;; This file is part of UFFI.
;;;;
(in-package :cl-user)
-(unless (uffi:load-foreign-library "/usr/lib/libz.so" "zlib" '("c"))
+(unless (uffi:load-foreign-library "/usr/lib/libz.so"
+ :module "zlib"
+ :supporting-libraries '("c"))
(warn "Unable to load zlib"))
(uffi:def-function ("compress" c-compress)
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
-;;;; $Id: libraries.cl,v 1.1 2002/03/09 19:55:33 kevin Exp $
+;;;; $Id: libraries.cl,v 1.2 2002/03/10 20:01:55 kevin Exp $
;;;;
;;;; This file is part of the UFFI.
;;;;
(defvar *loaded-libraries* nil
"List of foreign libraries loaded. Used to prevent reloading a library")
-(defun load-foreign-library (filename module supporting-libraries)
+(defun load-foreign-library (filename &key module supporting-libraries)
#+allegro (declare (ignore module supporting-libraries))
#+lispworks (declare (ignore supporting-libraries))
#+cmu (declare (ignore module))
:libraries
(convert-supporting-libraries-to-string
supporting-libraries))
- #+lispworks (fli:register-module module :connection-style :automatic
+ #+lispworks (fli:register-module module
+ :connection-style :automatic
:real-name filename)
#+allegro (load filename)
;;;;
;;;; Copyright (c) 2002 Kevin M. Rosenberg
;;;;
-;;;; $Id: compress.cl,v 1.5 2002/03/10 11:13:07 kevin Exp $
+;;;; $Id: compress.cl,v 1.6 2002/03/10 20:01:55 kevin Exp $
;;;;
;;;; This file is part of UFFI.
;;;;
(in-package :cl-user)
-(unless (uffi:load-foreign-library "/usr/lib/libz.so" "zlib" '("c"))
+(unless (uffi:load-foreign-library "/usr/lib/libz.so"
+ :module "zlib"
+ :supporting-libraries '("c"))
(warn "Unable to load zlib"))
(uffi:def-function ("compress" c-compress)