home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-04-30 | 1.8 KB | 67 lines | [TEXT/MPS ] |
- /*
- File: EchoModule.exp
-
- Contains: The export declarations for the module
-
- Copyright: © 1994-1995 by Apple Computer, Inc., all rights reserved.
-
- */
-
- #include <OpenTptModule.h>
-
- #define kMyModuleName "SmplEcho"
- #define kMyVersion "1.0"
-
- /*
- * Just use this verbatim - substituting the name of your module
- * for "SmplEcho".
- */
- Library
- {
- /*
- * Typically we load modules this way so there are no surprises.
- * This insures that the module, and all other shared libraries
- * that it depends on, are in memory when we load
- */
- flags = noSegUnload, forceDeps, !mc68000, !emulated;
- /*
- * Create the name of the library. We use this format,
- * but you can use anything that you want
- */
- id = kOTLibraryPrefix kMyModuleName "," kMyVersion;
- /*
- * Set up the version number of the library
- */
- version = kMyVersion;
- /*
- * Always use memory = local. You don't want to be creating
- * any memory in the client's pool, since you may stay around
- * long after your client is gone.
- */
- memory = local;
- };
-
- FunctionSet Module_echo
- {
- /*
- * The ID for your module MUST look like the following:
- */
- id = kOTModulePrefix kMyModuleName "," kMyVersion;
- /*
- * The function set for your module can export many functions.
- * However, you must export OTGetInstallInfo by name.
- * If you want an initialization function, it must also be
- * exported by the name InitStreamModule, and will be called the
- * first time your module is loaded.
- *
- * If you also need a termination function, export a function
- * called TerminateStreamModule, and it will be called before
- * Open Transport unloads your module.
- *
- * NOTE: Don't make these "static" functions in your file, or
- * ASLM can't export them.
- */
- exports = extern GetOTInstallInfo,
- extern InitStreamModule;
- };
-