(scm_lreadr): use scm_c_substring_read_only for string
[bpt/guile.git] / libguile-ltdl / guile-ltdl.h
1 /* guile-ltdl.h -- dlopen function actually used by guile
2 Copyright (C) 1998-2000, 2002 Free Software Foundation, Inc.
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 As a special exception to the GNU Lesser General Public License,
10 if you distribute this file as part of a program or library that
11 is built using GNU libtool, you may include it under the same
12 distribution terms that you use for the rest of that program.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free
21 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 02111-1307 USA
23 */
24
25 /* Only include this header file once. */
26 #ifndef SCM_LTDL_H
27 #define SCM_LTDL_H 1
28
29 typedef struct scm_i_lt_dlhandle_struct *scm_lt_dlhandle;
30 typedef struct scm_i_lt_dlsymlist_struct scm_lt_dlsymlist;
31 typedef void * scm_lt_ptr;
32
33 void scm_lt_dlpreload_default (const scm_lt_dlsymlist *preloads);
34 int scm_lt_dlinit (void);
35 scm_lt_dlhandle scm_lt_dlopenext (const char *filename);
36 scm_lt_ptr scm_lt_dlsym (scm_lt_dlhandle handle, const char *name);
37 const char *scm_lt_dlerror (void);
38 int scm_lt_dlclose (scm_lt_dlhandle handle);
39
40 #endif /* !SCM_LTDL_H */