Function definitions

Previous: Internal definitions ] [ Top:  ] [ Next: Working with sessions ]

Our library will consist of the wftk_lib.c file, defined here, along with at least one file for each of the adaptors listed earlier. Most of the nitty-gritty will of course be in the various adaptor definitions, the most important content of this file being the procdef interpreter.

Each group of functions has its own page except for xml_info. There is also a page describing the interpreter state structure, which I've introduced to replace the prototype's global variables. My hope is that this will be thread-safer, even though I really don't know diddly about thread safety yet (except for what logic tells me, which is global variables are susceptible to being clobbered.)
#include "wftk.h"
#include "time.h"
#include "stdarg.h"
#include "wftk_internals.h"

See Definition of _state structure

See The interpreter: figuring out what to do next
See Dealing with processes
See Dealing with values
See Getting and setting process status
See Dealing with tasks
See Dealing with requests
See Working with roles
See Working with users
See Sending notifications
See Making decisions: wftk_decide
See Taking external action
See Working with the enactment history
See Working with sessions
The xml_info function returns an XML structure containing information about the version of the library, the variants of various pieces of it (like what config module is linked), and additional information about what actual adaptors are installed, their versions, where they are, and so on and so forth. Obviously this is something that will change a lot as things go on.
WFTK_EXPORT XML * wftk_info ()
   XML * ret = xml_create ("libinfo");
   xml_set (ret, "lib", "wftk");
   xml_set (ret, "ver", "1.0");
   xml_set (ret, "compiled", __TIME__ " " __DATE__);

   /*config_info (ret);  TODO: finish up the config info portion of this. Should reflect static and dynamic links. */

   return (ret);
Previous: Internal definitions ] [ Top:  ] [ Next: Working with sessions ]

This code and documentation are released under the terms of the GNU license. They are additionally copyright (c) 2000, Vivtek. All rights reserved except those explicitly granted under the terms of the GNU license.