summaryrefslogtreecommitdiff
path: root/cgi-bin/help-index.h
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-03-14 16:55:44 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-03-14 16:55:44 +0000
commitf7deaa1a21758ec90bf23314af018481ea8aea7f (patch)
tree28c1e9c935060b27e10b2e9daa788f69508f3726 /cgi-bin/help-index.h
parentb86bc4cf571c35972a94a634ea884baff9799fa9 (diff)
downloadcups-f7deaa1a21758ec90bf23314af018481ea8aea7f.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@279 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cgi-bin/help-index.h')
-rw-r--r--cgi-bin/help-index.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/cgi-bin/help-index.h b/cgi-bin/help-index.h
index d564663a0..c7cbe2b54 100644
--- a/cgi-bin/help-index.h
+++ b/cgi-bin/help-index.h
@@ -1,9 +1,9 @@
/*
- * "$Id: help-index.h 5143 2006-02-21 19:13:01Z mike $"
+ * "$Id: help-index.h 6257 2007-02-11 01:11:57Z mike $"
*
* On-line help index definitions for the Common UNIX Printing System (CUPS).
*
- * Copyright 1997-2006 by Easy Software Products.
+ * Copyright 1997-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
@@ -36,19 +36,26 @@
* Data structures...
*/
-typedef struct /**** Help node structure... ****/
+typedef struct help_word_s /**** Help word structure... ****/
+{
+ int count; /* Number of occurrences */
+ char *text; /* Word text */
+} help_word_t;
+
+typedef struct help_node_s /**** Help node structure... ****/
{
char *filename; /* Filename, relative to help dir */
char *section; /* Section name (NULL if none) */
char *anchor; /* Anchor name (NULL if none) */
char *text; /* Text in anchor */
+ cups_array_t *words; /* Words after this node */
time_t mtime; /* Last modification time */
off_t offset; /* Offset in file */
size_t length; /* Length in bytes */
int score; /* Search score */
} help_node_t;
-typedef struct /**** Help index structure ****/
+typedef struct help_index_s /**** Help index structure ****/
{
int search; /* 1 = search index, 0 = normal */
cups_array_t *nodes; /* Nodes sorted by filename */
@@ -73,5 +80,5 @@ extern help_index_t *helpSearchIndex(help_index_t *hi, const char *query,
#endif /* !_CUPS_HELP_INDEX_H_ */
/*
- * End of "$Id: help-index.h 5143 2006-02-21 19:13:01Z mike $".
+ * End of "$Id: help-index.h 6257 2007-02-11 01:11:57Z mike $".
*/