1 /* ltdl.c -- system independent dlopen wrapper
2 Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
3 Originally by Thomas Tanner <tanner@ffii.org>
4 This file is part of GNU Libtool.
6 This library 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 of the License, or (at your option) any later version.
11 As a special exception to the GNU Lesser General Public License,
12 if you distribute this file as part of a program or library that
13 is built using GNU libtool, you may include it under the same
14 distribution terms that you use for the rest of that program.
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
28 #include "guile-ltdl.h"
30 #define lt_dlhandle_struct scm_i_lt_dlhandle_struct
31 #define SCM_INSERTED_DLSYMLIST_STRUCT_DECL scm_i_lt_dlsymlist_struct
33 #define LT_SCOPE static
34 #define SCMLTXT static
35 #define SCMLTSTATIC static
38 #define SCM_UNUSED __attribute__ ((unused))
47 scm_lt_dlpreload_default (const scm_lt_dlsymlist
*preloads
)
49 lt_dlpreload_default(preloads
);
59 scm_lt_dlopenext (const char *filename
)
61 return lt_dlopenext (filename
);
65 scm_lt_dlsym (scm_lt_dlhandle handle
, const char *name
)
67 return lt_dlsym (handle
, name
);
77 scm_lt_dlclose (scm_lt_dlhandle handle
)
79 return lt_dlclose (handle
);