home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.mdf / Apps / DevTools / COWS / Code / COWSIPCLibrary.h < prev    next >
Encoding:
Text File  |  1994-03-25  |  1.5 KB  |  60 lines

  1. /*
  2.     Copyright (C) 1994 Sean Luke
  3.  
  4.     COWSIPCLibrary.h
  5.     Version 1.0
  6.     Sean Luke
  7.     
  8. */
  9.  
  10.  
  11.  
  12.  
  13. #import "COWSLibrary.h"
  14. #import "COWSInterpreter.h"
  15. #import <string.h>
  16. #import <stdlib.h>
  17. #import <stdio.h>
  18. #import <remote/NXConnection.h>
  19. #import "COWSProtocols.h"
  20.  
  21.  
  22. #define    COWSIPCLIBRARY_ARGSTATE_READY    0
  23. #define COWSIPCLIBRARY_ARGSTATE_WORKING    1
  24. #define COWSIPCLIBRARY_ARGSTATE_ADDING    2
  25. #define COWSLARGESTPATHLENGTH            MAXHOSTNAMELEN+100
  26.  
  27. @interface COWSIPCLibrary:COWSLibrary <InterpreterToLibrary,InterpreterIPC,InterpreterToAppDelegate>
  28. {
  29.     id             interpreter;
  30.     BOOL        error;
  31.     id            connection;
  32.     id            caller;
  33.     COWSArgumentList*    arguments;
  34.     int            arguments_state;
  35.     COWSStringNode*    result;
  36. }
  37.  
  38. - init;
  39. - loadLibrary:sender;
  40. - pauseCancelled:sender;
  41. - pauseInterpreter:remote_process;
  42.  
  43. // COWS functions
  44.  
  45. - ipc_send:arg_list;            // synchronous to same machine
  46. - ipc_sendout:arg_list;            // asynchronous to same machine
  47. - ipc_send_machine:arg_list;    // synchronous to different machine
  48. - ipc_sendout_machine:arg_list;    // asynchronous to different machine
  49. - ipc_launch:arg_list;            // launches to same machine or different
  50. - ipc_launched:arg_list;            // checks on same machine or different
  51.  
  52. // COWS libraries are registered as APPNAME(COWS) where APPNAME is the app's
  53. // name.  For example, Edit would be Edit(COWS).
  54.  
  55. - finishedInterpreting:(const char*)returnValue:(int)thisMessage:sender;
  56. - errorInterpreting:(int) thisError:(const char*)thisFunction:
  57.     (int)thisPosition:(const char*)thisString:sender;
  58.  
  59.  
  60. @end