home *** CD-ROM | disk | FTP | other *** search
-
- OK Russ, here it is: rexxflow.library.
-
- Copyright (C) 1991 David Jones.
- Use of this software is governed by the terms and conditions of the
- GNU General Public License. In particular, there is NO WARRANTY.
-
-
- To install, copy the rexxflow.library binary into LIBS:.
-
- In an ARexx script, you must first tell ARexx how to access flow.library:
-
- call addlib("rexxflow.library", 0, -30, 0)
-
-
- One this is done, you will enjoy access to flow.library using the standard
- C interface with the following exceptions:
-
- You can't "void" functions. If you don't want the return value of a
- function (if there even is one), then you must use the "call" command.
-
- wrong: SetDefaultAddress(site)
- right: call SetDefaultAddress(site)
-
- Functions that return values do so normally:
-
- detail = FindDetail(site)
-
-
- Site structures are represented by stem variables. Set up a variable of
- the form:
-
- aSite.domain
- aSite.zone
- aSite.net
- aSite.node
- aSite.point
-
- All fields are numbers except for domain, which is a string. Now, to pass
- a site to flow.library, use the name of the stem variable (aSite). Ex:
-
- call SetDefaultAddress(aSite)
-
- The GetDefaultAddress function should return a site, but ARexx can't
- do this. Instead, the calling syntax for GetDefaultAddress is the same
- as for SetDefaultAddress. Only this time, the name of the variable
- is a reference to the site structure which will be filled in by the call.
-
-
- Work details and work detail nodes are returned as "cookies". You are
- not meant to play with them, but a cookie returned by rexxflow can be
- passed back in to rexxflow with the expected results.
-
-
- There is one extra function: ScanDetail. It goes like this:
-
- call ScanDetail(detail, variable)
-
- where detail is a cookie returned by some other function. Variable is
- a reference to a structure that is built like this:
-
- variable.numnodes = (number of files in work_detail)
- variable.n.filename
- variable.n.asname
- variable.n.flags
- variable.n.cost
-
- In each case, n is a number. This thing is really an array.
-
-
- To write stuff back, use AddWorkName and ChangeDetailPri.
-
-
- There's bound to be bugs; tell me about them.
-
- Enjoy!
-