- /*
- * Copyright 1995, 1998 Perforce Software.
- *
- * This file is part of WebKeeper, a perforce client apache module.
- *
- * License is hereby granted to use this software and distribute it
- * freely, as long as this copyright notice is retained and modifications
- * are clearly marked.
- *
- * ALL WARRANTIES ARE HEREBY DISCLAIMED.
- *
- * $Id: //guest/paul_goffin/apache1.3.6/src/modules/perforce/mod_webkeep.h#2 $
- */
- /*
- * webkeep.h - glue mod_webkeep.c to the Perforce api via webkeep.cc
- *
- * This header file is for inclusion by mod_webkeep.c when building
- * webkeeper into an Apache web server.
- */
- typedef struct _WebKeepPrinter WebKeepPrinter;
- typedef struct _WebKeepConnect WebKeepConnect;
- /*
- * WebKeepConnect - pointers to configuration data stored by Apache
- */
- struct _WebKeepConnect {
- char *port; /* WebKeepPort - default $P4PORT,
- perforce:1666 */
- char *user; /* WebKeepUser - default $P4USER,
- $USERNAME */
- char *pass; /* WebKeepPasswd - no default */
- char *client; /* WebKeepClient - default $P4CLIENT,
- hostname */
- char *indexname; /* filename to look for to use
- * as an index (default index.html) */
- } ;
- /*
- * webkeepprinter - callbacks to Apache code
- */
- struct _WebKeepPrinter {
- void *closure; /* original request */
- /* flags */
- int ignoreerrors;
- int collectinfo; /* building directory */
- int print; /* printing file */
- /* counters */
- int errorcount;
- /* directories and files (for directrory listing) */
- void *files;
- void *dirs;
- /* callbacks */
- void (*data)(WebKeepPrinter *,
- const char *); /* info text */
- void (*text)(WebKeepPrinter *,
- char *, int); /* text & length */
- void (*dir)(WebKeepPrinter *); /* directory dump */
- void (*error)(WebKeepPrinter *,
- char *); /* text only */
- } ;
- # ifdef CPLUSPLUS
- extern "C" {
- # endif
- int webKeepPrint(WebKeepConnect *p4, const char *path,
- WebKeepPrinter *printer);
- # ifdef CPLUSPLUS
- }
- # endif
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 174 | paul_goffin |
Adopting Raymonds latest versions. Fixes directory listing problem. |
26 years ago | |
#1 | 169 | paul_goffin | Added the Apache directory structure to raymond wiker's webkeeper update. (So novic...es like me can find where to put the stuff!) Inlcuded the mods to the Apache Configuration.tmpl and main Makefile to actually make it build. (The Makefile needs to use "CPP" instead of "CC" to do the final link with the g++ libraries.) This isn't put in by "configure", so you need to edit Makefile (or replace it with the one in this submission if you're building just a standard apache with webkeeper) after the configure process. (This Makefile includes the change, so you can just "diff" it.) Also had to change the include in mod_webkeeper2.cc to "" style from <> style. This version built (and running) on Redhat Linux 5.2 (x86). « |
26 years ago | |
//guest/raymond_wiker/webkeeper/mod_webkeep.h | |||||
#3 | 125 | raymond_wiker |
Debugged & improved somewhat... Now includes icons for directory listing. |
26 years ago | |
#2 | 124 | raymond_wiker |
Added directory indexing. Next: debugging. |
26 years ago | |
#1 | 121 | raymond_wiker | Branched webkeeper files to own view. | 26 years ago | |
//guest/perforce_software/webkeeper/mod_webkeep.h | |||||
#1 | 46 | Perforce maintenance | Add WebKeeper source. | 26 years ago |