source: releases/F-Script Anywhere/1.1.5/Source/FSABundle.m@ 501

Last change on this file since 501 was 7, checked in by Nicholas Riley, 22 years ago

F-Script Anywhere 1.1.2a1

File size: 1.4 KB
Line 
1//
2// FSABundle.m
3// F-Script Anywhere
4//
5// Created by Nicholas Riley on Fri Feb 01 2002.
6// Copyright (c) 2002 Nicholas Riley. All rights reserved.
7//
8
9/*
10
11 F-Script Anywhere is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
15
16 F-Script Anywhere is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with F-Script Anywhere; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
25*/
26
27#include <unistd.h>
28#include <Patch.h>
29#import "FSAnywhere.h"
30
31OSStatus PatchInitialize(PatchInitPB *pb)
32{
33 FSALog(@"FSABundle id %s initialized: ppid %d, pid %d\n", pb->identifier, pb->parent, getpid());
34 return noErr;
35}
36
37// Objective-C bundles can't be unloaded, so we don't even try.
38
39OSStatus PatchTerminate(void)
40{
41 FSALog(@"FSABundle terminated\n");
42 return noErr;
43}
44
45OSStatus PatchMessage(UInt32 message, void *data, UInt32 length)
46{
47 FSALog(@"FSABundle received message '%.4s' with data %08lX (length %ld)\n", (char*)&message, (UInt32)data, length);
48 return noErr;
49}
Note: See TracBrowser for help on using the repository browser.