Next: Setting module attributes
Up: Modules
Previous: Introduction to modules
  Contents
  Index
Loading shared object files
The first thing to do, when you want to add some function to a module,
is to open its file. All the work is done internally by the library,
and you just need to call:
-
- int gocr_moduleLoad ( char *filename );
If filename is just the filename, libgocr will search for
the file in the following directories:
- A colon-separated list of directories in the user's LD_LIBRARY path
environment variable.
- The list of libraries specified in /etc/ld.so.cache.
- /usr/lib, followed by /lib.
- The directory libgocr was installed in.
This function returns a module id (that can be used to set attributes,
see below) if the operation was successful, -1 otherwise.
root
2002-02-17