home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-18 | 3.6 KB | 131 lines | [TEXT/MMCC] |
- /******************************************************************************
- File: ModuleFunctions.c
-
- Contains: This file contains the the code to perform the actions of the
- External Module.
-
- Written by: Brian Powell
-
- Copyright: © 1994 by Brian Powell, all rights reserved.
-
- ******************************************************************************/
-
- // Include Files
- #include "WorkshopModule.h"
-
- /******************************************************************************
- * ModuleInit
- *
- * Image Workshop is initializing. This is your chance to initialize your
- * module for anything you may need.
- *
- * data1: NULL
- * data2: NULL
- ******************************************************************************/
-
- short ModuleInit(ExternalProcPtrs functions, Ptr data1, Ptr data2, Handle *myData)
- {
- short error = 0;
-
- return (error);
- }
-
- /******************************************************************************
- * ModuleRead
- *
- * If your module is a reader, then this code is called to read and create the
- * new image.
- *
- * data1: StandardFileReply *, This is the file to load
- * data2: Boolean *, Whether or not you should create a new image, or merely a
- * new layer.
- ******************************************************************************/
-
- short ModuleRead(ExternalProcPtrs functions, Ptr data1, Ptr data2, Handle *myData)
- {
- short error = 0;
-
- return (error);
- }
-
- /******************************************************************************
- * ModuleSave
- *
- * If your module saves files, then this code is called to save the image.
- *
- * data1: SFReply *, File to save into
- * data2: NULL
- ******************************************************************************/
-
- short ModuleSave(ExternalProcPtrs functions, Ptr data1, Ptr data2, Handle *myData)
- {
- short error = 0;
-
- return (error);
- }
-
- /******************************************************************************
- * ModuleExecute
- *
- * If you have a general module, whenever your module is selected by the user,
- * this code is called to execute.
- *
- * data1: NULL
- * data2: NULL
- ******************************************************************************/
-
- short ModuleExecute(ExternalProcPtrs functions, Ptr data1, Ptr data2, Handle *myData)
- {
- short error = 0;
-
- return (error);
- }
-
- /******************************************************************************
- * ModuleDispose
- *
- * Image Workshop is quitting. Do any disposal items you need to.
- *
- * data1: NULL
- * data2: NULL
- ******************************************************************************/
-
- short ModuleDispose(ExternalProcPtrs functions, Ptr data1, Ptr data2, Handle *myData)
- {
- short error = 0;
-
- return (error);
- }
-
- /******************************************************************************
- * ModuleProcessTask
- *
- * Your task needs processing. Do an iteration, and let control back.
- *
- * data1: long*. Return the percentage complete your function is (0-100).
- * data2: long*. The maximum number of ticks you'll allow between calls.
- ******************************************************************************/
-
- short ModuleProcessTask(ExternalProcPtrs functions, Ptr data1, Ptr data2, Handle *myData)
- {
- short error = 0;
-
- return (error);
- }
-
- /******************************************************************************
- * ModuleCancelTask
- *
- * The user canceled your task.
- *
- * data1: NULL
- * data2: NULL
- ******************************************************************************/
-
- short ModuleCancelTask(ExternalProcPtrs functions, Ptr data1, Ptr data2, Handle *myData)
- {
- short error = 0;
-
- return (error);
- }
-