/************************************************************************ * * Copyright 2005 by Sean Conner. All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Comments, questions and criticisms can be sent to: sean@conman.org * *************************************************************************/ #ifndef I_CA412E0F_D512_5F3E_AB0B_4739574108FF #define I_CA412E0F_D512_5F3E_AB0B_4739574108FF #include #include "wbtum.h" #include "timeutil.h" #include "blog.h" typedef struct request { char *origauthor; char *author; char *title; char *class; char *status; char *date; char *adtag; char *origbody; char *body; char const *reqtumbler; struct btm when; tumbler__s tumbler; struct { unsigned int fullurl : 1; unsigned int reverse : 1; unsigned int navigation : 1; unsigned int navprev : 1; unsigned int navnext : 1; unsigned int edit : 1; unsigned int cgiget : 1; unsigned int htmldump : 1; unsigned int emailin : 1; unsigned int regenerate : 1; unsigned int today : 1; unsigned int thisday : 1; } f; } Request; /************************************************/ extern char const *get_remote_user (void); extern bool authenticate_author (Blog const *,Request *); extern http__e entry_add (Blog *,Request *); extern Request *request_init (Request *); extern void request_free (Request *); extern char *safe_strdup (char const *); #endif .