#ifndef _A1SERVER_H_
#define _A1SERVER_H_ 1

/* The Anyone Server (A1S) library.  Allows Lens agent programs to maintain
 * rules submitted by users of the system.  The
 * client programs for the users are written using the A1C library.
 */

#include "bool.h"
#include "ruleset.h"
#include "sysdep.h"
#include "registry.h"

extern Bool AlA1S_init(NOARGS);
extern Bool AlA1S_read_rules PROTOTYPE((Registry));
extern Bool AlA1S_process_changes PROTOTYPE((Registry));
extern Bool AlA1S_write_to_log PROTOTYPE((char *));

#endif

/* ----- Very brief comments ----
 * AlA1S_init()
 * Needs to be called before any other A1S command.
 *
 * AlA1S_read_rules(registry)
 * Locates and reads the rules owned by users, and adds these 
 * to the registry, which must be empty when passed..  The key 
 * of each item in the registry is the 
 * user's name and the value is the ruleset object.
 *
 * AlA1S_process_changes(registry)
 * Reads any rulesets from the dropdir, and replaces them in the registry
 * and in the libdir.

 * AlA1S_write_to_log(message)
 * Store the text passed in message to the anyone server log file.
 */

