1 #ifndef ACTIONS_H_INCLUDED
2 #define ACTIONS_H_INCLUDED
3 #define ACTIONS_H_VERSION "$Id: actions.h,v 1.4 2001/09/16 15:47:37 jongfoster Exp $"
4 /*********************************************************************
6 * File : $Source: /cvsroot/ijbswa/current/actions.h,v $
8 * Purpose : Declares functions to work with actions files
9 * Functions declared include: FIXME
11 * Copyright : Written by and Copyright (C) 2001 the SourceForge
12 * IJBSWA team. http://ijbswa.sourceforge.net
14 * Based on the Internet Junkbuster originally written
15 * by and Copyright (C) 1997 Anonymous Coders and
16 * Junkbusters Corporation. http://www.junkbusters.com
18 * This program is free software; you can redistribute it
19 * and/or modify it under the terms of the GNU General
20 * Public License as published by the Free Software
21 * Foundation; either version 2 of the License, or (at
22 * your option) any later version.
24 * This program is distributed in the hope that it will
25 * be useful, but WITHOUT ANY WARRANTY; without even the
26 * implied warranty of MERCHANTABILITY or FITNESS FOR A
27 * PARTICULAR PURPOSE. See the GNU General Public
28 * License for more details.
30 * The GNU General Public License should be included with
31 * this file. If not, you can view it at
32 * http://www.gnu.org/copyleft/gpl.html
33 * or write to the Free Software Foundation, Inc., 59
34 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
38 * Revision 1.4 2001/09/16 15:47:37 jongfoster
39 * First version of CGI-based edit interface. This is very much a
40 * work-in-progress, and you can't actually use it to edit anything
41 * yet. You must #define FEATURE_CGI_EDIT_ACTIONS for these changes
44 * Revision 1.3 2001/09/14 00:17:32 jongfoster
45 * Tidying up memory allocation. New function init_action().
47 * Revision 1.2 2001/07/29 19:01:11 jongfoster
48 * Changed _FILENAME_H to FILENAME_H_INCLUDED.
49 * Added forward declarations for needed structures.
51 * Revision 1.1 2001/05/31 21:16:46 jongfoster
52 * Moved functions to process the action list into this new file.
55 *********************************************************************/
64 struct current_action_spec;
69 /* This structure is used to hold user-defined aliases */
73 struct action_spec action[1];
74 struct action_alias * next;
78 extern int get_actions (char *line,
79 struct action_alias * alias_list,
80 struct action_spec *cur_action);
81 extern void free_alias_list(struct action_alias *alias_list);
83 extern void init_action(struct action_spec *dest);
84 extern void free_action(struct action_spec *src);
85 extern void merge_actions (struct action_spec *dest,
86 const struct action_spec *src);
87 extern void copy_action (struct action_spec *dest,
88 const struct action_spec *src);
89 extern char * actions_to_text (struct action_spec *action);
90 #ifdef FEATURE_CGI_EDIT_ACTIONS
91 extern char * actions_to_html (struct action_spec *action);
92 #endif /* def FEATURE_CGI_EDIT_ACTIONS */
94 extern void init_current_action (struct current_action_spec *dest);
95 extern void free_current_action (struct current_action_spec *src);
96 extern void merge_current_action (struct current_action_spec *dest,
97 const struct action_spec *src);
98 extern char * current_action_to_text(struct current_action_spec *action);
100 extern int get_action_token(char **line, char **name, char **value);
101 extern void unload_actions_file(void *file_data);
102 extern int load_actions_file(struct client_state *csp);
106 /* Revision control strings from this header and associated .c file */
107 extern const char actions_rcs[];
108 extern const char actions_h_rcs[];
114 #endif /* ndef ACTIONS_H_INCLUDED */