1 | /* copyright (C) 2001 Sun Microsystems, Inc. and Dan Mueth */ |
---|
2 | |
---|
3 | /* |
---|
4 | * This library is free software; you can redistribute it and/or |
---|
5 | * modify it under the terms of the GNU Lesser General Public |
---|
6 | * License as published by the Free Software Foundation; either |
---|
7 | * version 2.1 of the License, or (at your option) any later version. |
---|
8 | * |
---|
9 | * This library is distributed in the hope that it will be useful, |
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
12 | * Lesser General Public License for more details. |
---|
13 | * |
---|
14 | * You should have received a copy of the GNU Lesser General Public |
---|
15 | * License along with this library; if not, write to the Free Software |
---|
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef SCROLLKEEPER_H |
---|
20 | #define SCROLLKEEPER_H |
---|
21 | |
---|
22 | #include <libxml/tree.h> |
---|
23 | #include <sys/types.h> |
---|
24 | |
---|
25 | #define _(String) gettext (String) |
---|
26 | |
---|
27 | /* |
---|
28 | * |
---|
29 | * Paths |
---|
30 | * |
---|
31 | */ |
---|
32 | #define SCROLLKEEPERLOGFILE "/gnome/head/INSTALL/var/log/scrollkeeper.log" |
---|
33 | #define SCROLLKEEPERLOGFILE_ROT "/gnome/head/INSTALL/var/log/scrollkeeper.log.1" |
---|
34 | #define SCROLLKEEPER_OMF_DTD "/gnome/head/INSTALL/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" |
---|
35 | #define PATHLEN 256 |
---|
36 | |
---|
37 | /* |
---|
38 | * |
---|
39 | * SKOUT: ScrollKeeper output to STDOUT and log file. |
---|
40 | * |
---|
41 | * Each can be quiet, default, verbose, or debug. |
---|
42 | * |
---|
43 | */ |
---|
44 | #define SKOUT_STD_DEBUG 1 |
---|
45 | #define SKOUT_STD_DEFAULT 2 |
---|
46 | #define SKOUT_STD_VERBOSE 3 |
---|
47 | #define SKOUT_STD_QUIET 4 |
---|
48 | #define SKOUT_LOG_DEBUG 16 |
---|
49 | #define SKOUT_LOG_DEFAULT 32 |
---|
50 | #define SKOUT_LOG_VERBOSE 64 |
---|
51 | #define SKOUT_LOG_QUIET 128 |
---|
52 | |
---|
53 | #define SKOUT_QUIET 1 /* Output all messages */ |
---|
54 | #define SKOUT_DEFAULT 2 /* Output DEFAULT, VERBSE, and DEBUG messages */ |
---|
55 | #define SKOUT_VERBOSE 3 /* Output VERBOSE and DEBUG messages */ |
---|
56 | #define SKOUT_DEBUG 4 /* Output DEBUG messages */ |
---|
57 | |
---|
58 | /* |
---|
59 | * |
---|
60 | * Functions. |
---|
61 | * |
---|
62 | */ |
---|
63 | extern int sk_mkdir_with_parents(char *, mode_t, char); |
---|
64 | extern void sk_warning(int, char *, char *, ...); |
---|
65 | extern void sk_message(char, int, int, char *, char *, ...); |
---|
66 | extern void sk_dtd_validation_message(char *, char *, ...); |
---|
67 | extern void check_ptr(void *, char *); |
---|
68 | extern char **sk_get_language_list(void); |
---|
69 | extern int is_file(char *); |
---|
70 | extern int is_dir(char *); |
---|
71 | extern int apply_stylesheets(char *, char *, int, char **, char **, char); |
---|
72 | extern int copy_file(char *, char *); |
---|
73 | extern int install(char *, char *, char *, char); |
---|
74 | extern int create_database_directory(char *, char *, char); |
---|
75 | extern void uninstall(char *, char *, char); |
---|
76 | extern xmlDocPtr merge_locale_trees(char *, char *, char *); |
---|
77 | extern int update_doc_url_in_omf_file(char *, char *, char *); |
---|
78 | |
---|
79 | #endif /* SCROLLKEEPER_H */ |
---|