PennMUSH Community

root/1.8.3/trunk/hdrs/help.h

Revision 919, 1.0 kB (checked in by shawnw, 1 year ago)

1.8.3p3

Line 
1 /* help.h */
2
3 #ifndef __HELP_H
4 #define __HELP_H
5
6 #define  LINE_SIZE              90
7 #define  TOPIC_NAME_LEN         30
8
9 /** A help index entry.
10  *
11  */
12 typedef struct {
13   long pos;                     /**< Position of topic in help file, in bytes */
14   char topic[TOPIC_NAME_LEN + 1];       /**< name of topic of help entry */
15 } help_indx;
16
17 /** A help command.
18  * Multiple help commands can be defined, each associated with a help
19  * file and an in-memory index.
20  */
21 typedef struct {
22   char *command;        /**< The name of the help command */
23   char *file;           /**< The file of help text */
24   int admin;            /**< Is this an admin-only help command? */
25   help_indx *indx;      /**< An array of help index entries */
26   size_t entries;       /**< Number of entries in the help file */
27 } help_file;
28
29
30 extern void init_help_files(void);
31 extern void add_help_file
32   (const char *command_name, const char *filename, int admin);
33 extern void help_reindex(dbref player);
34 #endif                          /* __HELP_H */
Note: See TracBrowser for help on using the browser.