landtransport.h

Go to the documentation of this file.
00001 
00002 /*  $Id: landtransport.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 /* file:    ipc.h
00029 -- desc:    Public header file for IPCLib
00030 -- version: V1.0
00031 -- by:      Don Park
00032 -- when:    November 1988
00033 -- hist:    30Nov88 V1.0 DDP    New.
00034 */
00035 
00036 typedef Str255  PIN;    /* Process Name */
00037 typedef short   PID;    /* Process ID */
00038 
00039 /* IPC specific error codes:
00040 -- ipcErrBase:      Start of IPC error code range (expected to be negative).
00041 -- ipcNSProcErr:    Specified Process (either by PID or PIN) is currently NOT
00042 --                  open.
00043 -- ipcFullErr:      Too many IPC processes are open.
00044 -- ipcBadPIDErr:    Given PID is NOT a valid PID.
00045 -- ipcBadPINErr:    Given PIN is NOT a valid PIN.
00046 -- ipcBadMsgErr:    Given Message is NOT a valid Message.
00047 */
00048 #define ipcErrBase      -2000
00049 #define ipcNSProcErr    (ipcErrBase - 0)
00050 #define ipcFullErr      (ipcErrBase - 1)
00051 #define ipcBadPIDErr    (ipcErrBase - 2)
00052 #define ipcBadPINErr    (ipcErrBase - 3)
00053 #define ipcBadMsgErr    (ipcErrBase - 4)
00054 
00055 extern OSErr    ipcOpen         ( PIN*, PID* );
00056 extern OSErr    ipcClose        ( PID );
00057 extern OSErr    ipcFind         ( PIN*, PID* );
00058 extern OSErr    ipcWho          ( PID, PIN* );
00059 
00060 extern OSErr    ipcSend         ( PID, PID, Handle );
00061 extern OSErr    ipcReceive      ( PID, PID*, Handle* );
00062 extern OSErr    ipcClear        ( PID );
00063 
00064 #ifdef  GLOBALSOK
00065 extern OSErr    ipcError        ( void );
00066 #endif

Generated on Wed May 31 18:19:50 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6