/*
 * cs_datatypes.h
 *
 *  Created on: 4 Apr 2018
 *      Author: development
 */

#ifndef MODULES_CONTEXTSPLIT_CS_DATATYPES_H_
#define MODULES_CONTEXTSPLIT_CS_DATATYPES_H_

#include "httpd.h"
#include "http_config.h"

/*--------------------------------------------------------------------------*/
/*                                                                          */
/* Data declarations.                                                       */
/*                                                                          */
/* Here are the static cells and structure declarations private to our      */
/* module.                                                                  */
/*                                                                          */
/*--------------------------------------------------------------------------*/

/*
 * Sample configuration record.  Used for both per-directory and per-server
 * configuration data.
 *
 * It's perfectly reasonable to have two different structures for the two
 * different environments.  The same command handlers will be called for
 * both, though, so the handlers need to be able to tell them apart.  One
 * possibility is for both structures to start with an int which is 0 for
 * one and 1 for the other.
 *
 * Note that while the per-directory and per-server configuration records are
 * available to most of the module handlers, they should be treated as
 * READ-ONLY by all except the command and merge handlers.  Sometimes handlers
 * are handed a record that applies to the current location by implication or
 * inheritance, and modifying it will change the rules for other locations.
 */
typedef struct cs_cfg {
	/* TODO - this is the structure that defines the context splitter
	 * module configuration
	 */
	void * pvUnused;
} cs_cfg;

extern module g_ContextsplitModule;

#endif /* MODULES_CONTEXTSPLIT_CS_DATATYPES_H_ */
