content_server 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. data/lib/content_data/content_data.rb +194 -56
  2. data/lib/content_data/version.rb +1 -1
  3. data/lib/content_server/backup_server.rb +4 -27
  4. data/lib/content_server/content_server.rb +3 -27
  5. data/lib/content_server/file_streamer.rb +2 -0
  6. data/lib/content_server/remote_content.rb +1 -2
  7. data/lib/content_server/server.rb +23 -3
  8. data/lib/content_server/version.rb +1 -1
  9. data/lib/email/version.rb +1 -1
  10. data/lib/file_copy/version.rb +1 -1
  11. data/lib/file_indexing/index_agent.rb +1 -1
  12. data/lib/file_indexing/version.rb +1 -1
  13. data/lib/file_monitoring/file_monitoring.rb +45 -32
  14. data/lib/file_monitoring/monitor_path.rb +219 -181
  15. data/lib/file_monitoring/version.rb +1 -1
  16. data/lib/file_utils/file_generator/file_generator.rb +1 -1
  17. data/lib/file_utils/file_utils.rb +2 -2
  18. data/lib/file_utils/version.rb +1 -1
  19. data/lib/log/version.rb +1 -1
  20. data/lib/networking/version.rb +1 -1
  21. data/lib/params/version.rb +1 -1
  22. data/lib/process_monitoring/version.rb +1 -1
  23. data/lib/run_in_background/version.rb +1 -1
  24. data/lib/testing_memory/testing_memory.rb +1 -1
  25. data/lib/testing_server/testing_server.rb +1 -1
  26. data/lib/testing_server/version.rb +1 -1
  27. data/spec/content_data/validations_spec.rb +2 -2
  28. data/spec/content_server/file_streamer_spec.rb +5 -0
  29. data/spec/networking/tcp_spec.rb +1 -3
  30. data/spec/validations/index_validations_spec.rb +2 -2
  31. data/test/content_data/content_data_test.rb +8 -7
  32. data/test/file_generator/file_generator_spec.rb +3 -2
  33. data/test/file_monitoring/monitor_path_test.rb +38 -4
  34. data/test/file_utils/fileutil_mksymlink_test.rb +9 -0
  35. data/test/file_utils/time_modification_test.rb +6 -2
  36. data/test/run_in_background/test_app +17 -15
  37. metadata +2 -93
  38. data/lib/content_server/queue_indexer.rb +0 -86
  39. data/test/file_indexing/index_agent_test.rb +0 -51
  40. data/test/file_indexing/index_agent_test/New.txt +0 -0
  41. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/bin/libexslt.dll +0 -0
  42. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/bin/libxslt.dll +0 -0
  43. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/bin/xsltproc.exe +0 -0
  44. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libexslt/exslt.h +0 -102
  45. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libexslt/exsltconfig.h +0 -73
  46. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libexslt/exsltexports.h +0 -140
  47. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libexslt/libexslt.h +0 -29
  48. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/attributes.h +0 -38
  49. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/documents.h +0 -93
  50. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/extensions.h +0 -262
  51. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/extra.h +0 -80
  52. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/functions.h +0 -78
  53. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/imports.h +0 -75
  54. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/keys.h +0 -53
  55. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/libxslt.h +0 -30
  56. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/namespaces.h +0 -68
  57. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/numbersInternals.h +0 -69
  58. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/pattern.h +0 -81
  59. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/preproc.h +0 -43
  60. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/security.h +0 -104
  61. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/templates.h +0 -77
  62. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/transform.h +0 -207
  63. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/trio.h +0 -216
  64. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/triodef.h +0 -220
  65. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/variables.h +0 -91
  66. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/win32config.h +0 -101
  67. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xslt.h +0 -103
  68. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltInternals.h +0 -1967
  69. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltconfig.h +0 -172
  70. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltexports.h +0 -142
  71. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltlocale.h +0 -57
  72. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltutils.h +0 -309
  73. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/include/libxslt/xsltwin32config.h +0 -105
  74. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/lib/libexslt.lib +0 -0
  75. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/lib/libexslt_a.lib +0 -0
  76. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/lib/libxslt.lib +0 -0
  77. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/lib/libxslt_a.lib +0 -0
  78. data/test/file_indexing/index_agent_test/libxslt-1.1.26.win32/readme.txt +0 -22
  79. data/test/file_indexing/index_agent_test/patterns.input +0 -3
  80. data/test/file_monitoring/file_monitoring_test.rb +0 -0
  81. data/test/file_monitoring/file_monitoring_test/conf.yml +0 -4
  82. data/test/file_monitoring/file_monitoring_test/conf_win32.yml +0 -5
  83. data/test/file_monitoring/file_monitoring_test/log +0 -56
@@ -1,43 +0,0 @@
1
- /*
2
- * Summary: precomputing stylesheets
3
- * Description: this is the compilation phase, where most of the
4
- * stylesheet is "compiled" into faster to use data.
5
- *
6
- * Copy: See Copyright for the status of this software.
7
- *
8
- * Author: Daniel Veillard
9
- */
10
-
11
- #ifndef __XML_XSLT_PRECOMP_H__
12
- #define __XML_XSLT_PRECOMP_H__
13
-
14
- #include <libxml/tree.h>
15
- #include "xsltexports.h"
16
- #include "xsltInternals.h"
17
-
18
- #ifdef __cplusplus
19
- extern "C" {
20
- #endif
21
-
22
- /*
23
- * Interfaces
24
- */
25
- extern const xmlChar *xsltExtMarker;
26
-
27
- XSLTPUBFUN xsltElemPreCompPtr XSLTCALL
28
- xsltDocumentComp (xsltStylesheetPtr style,
29
- xmlNodePtr inst,
30
- xsltTransformFunction function);
31
-
32
- XSLTPUBFUN void XSLTCALL
33
- xsltStylePreCompute (xsltStylesheetPtr style,
34
- xmlNodePtr inst);
35
- XSLTPUBFUN void XSLTCALL
36
- xsltFreeStylePreComps (xsltStylesheetPtr style);
37
-
38
- #ifdef __cplusplus
39
- }
40
- #endif
41
-
42
- #endif /* __XML_XSLT_PRECOMP_H__ */
43
-
@@ -1,104 +0,0 @@
1
- /*
2
- * Summary: interface for the libxslt security framework
3
- * Description: the libxslt security framework allow to restrict
4
- * the access to new resources (file or URL) from
5
- * the stylesheet at runtime.
6
- *
7
- * Copy: See Copyright for the status of this software.
8
- *
9
- * Author: Daniel Veillard
10
- */
11
-
12
- #ifndef __XML_XSLT_SECURITY_H__
13
- #define __XML_XSLT_SECURITY_H__
14
-
15
- #include <libxml/tree.h>
16
- #include "xsltexports.h"
17
- #include "xsltInternals.h"
18
-
19
- #ifdef __cplusplus
20
- extern "C" {
21
- #endif
22
-
23
- /**
24
- * xsltSecurityPref:
25
- *
26
- * structure to indicate the preferences for security in the XSLT
27
- * transformation.
28
- */
29
- typedef struct _xsltSecurityPrefs xsltSecurityPrefs;
30
- typedef xsltSecurityPrefs *xsltSecurityPrefsPtr;
31
-
32
- /**
33
- * xsltSecurityOption:
34
- *
35
- * the set of option that can be configured
36
- */
37
- typedef enum {
38
- XSLT_SECPREF_READ_FILE = 1,
39
- XSLT_SECPREF_WRITE_FILE,
40
- XSLT_SECPREF_CREATE_DIRECTORY,
41
- XSLT_SECPREF_READ_NETWORK,
42
- XSLT_SECPREF_WRITE_NETWORK
43
- } xsltSecurityOption;
44
-
45
- /**
46
- * xsltSecurityCheck:
47
- *
48
- * User provided function to check the value of a string like a file
49
- * path or an URL ...
50
- */
51
- typedef int (*xsltSecurityCheck) (xsltSecurityPrefsPtr sec,
52
- xsltTransformContextPtr ctxt,
53
- const char *value);
54
-
55
- /*
56
- * Module interfaces
57
- */
58
- XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL
59
- xsltNewSecurityPrefs (void);
60
- XSLTPUBFUN void XSLTCALL
61
- xsltFreeSecurityPrefs (xsltSecurityPrefsPtr sec);
62
- XSLTPUBFUN int XSLTCALL
63
- xsltSetSecurityPrefs (xsltSecurityPrefsPtr sec,
64
- xsltSecurityOption option,
65
- xsltSecurityCheck func);
66
- XSLTPUBFUN xsltSecurityCheck XSLTCALL
67
- xsltGetSecurityPrefs (xsltSecurityPrefsPtr sec,
68
- xsltSecurityOption option);
69
-
70
- XSLTPUBFUN void XSLTCALL
71
- xsltSetDefaultSecurityPrefs (xsltSecurityPrefsPtr sec);
72
- XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL
73
- xsltGetDefaultSecurityPrefs (void);
74
-
75
- XSLTPUBFUN int XSLTCALL
76
- xsltSetCtxtSecurityPrefs (xsltSecurityPrefsPtr sec,
77
- xsltTransformContextPtr ctxt);
78
-
79
- XSLTPUBFUN int XSLTCALL
80
- xsltSecurityAllow (xsltSecurityPrefsPtr sec,
81
- xsltTransformContextPtr ctxt,
82
- const char *value);
83
- XSLTPUBFUN int XSLTCALL
84
- xsltSecurityForbid (xsltSecurityPrefsPtr sec,
85
- xsltTransformContextPtr ctxt,
86
- const char *value);
87
- /*
88
- * internal interfaces
89
- */
90
- XSLTPUBFUN int XSLTCALL
91
- xsltCheckWrite (xsltSecurityPrefsPtr sec,
92
- xsltTransformContextPtr ctxt,
93
- const xmlChar *URL);
94
- XSLTPUBFUN int XSLTCALL
95
- xsltCheckRead (xsltSecurityPrefsPtr sec,
96
- xsltTransformContextPtr ctxt,
97
- const xmlChar *URL);
98
-
99
- #ifdef __cplusplus
100
- }
101
- #endif
102
-
103
- #endif /* __XML_XSLT_SECURITY_H__ */
104
-
@@ -1,77 +0,0 @@
1
- /*
2
- * Summary: interface for the template processing
3
- * Description: This set of routine encapsulates XPath calls
4
- * and Attribute Value Templates evaluation.
5
- *
6
- * Copy: See Copyright for the status of this software.
7
- *
8
- * Author: Daniel Veillard
9
- */
10
-
11
- #ifndef __XML_XSLT_TEMPLATES_H__
12
- #define __XML_XSLT_TEMPLATES_H__
13
-
14
- #include <libxml/xpath.h>
15
- #include <libxml/xpathInternals.h>
16
- #include "xsltexports.h"
17
- #include "xsltInternals.h"
18
-
19
- #ifdef __cplusplus
20
- extern "C" {
21
- #endif
22
-
23
- XSLTPUBFUN int XSLTCALL
24
- xsltEvalXPathPredicate (xsltTransformContextPtr ctxt,
25
- xmlXPathCompExprPtr comp,
26
- xmlNsPtr *nsList,
27
- int nsNr);
28
- XSLTPUBFUN xmlChar * XSLTCALL
29
- xsltEvalTemplateString (xsltTransformContextPtr ctxt,
30
- xmlNodePtr contextNode,
31
- xmlNodePtr inst);
32
- XSLTPUBFUN xmlChar * XSLTCALL
33
- xsltEvalAttrValueTemplate (xsltTransformContextPtr ctxt,
34
- xmlNodePtr node,
35
- const xmlChar *name,
36
- const xmlChar *ns);
37
- XSLTPUBFUN const xmlChar * XSLTCALL
38
- xsltEvalStaticAttrValueTemplate (xsltStylesheetPtr style,
39
- xmlNodePtr node,
40
- const xmlChar *name,
41
- const xmlChar *ns,
42
- int *found);
43
-
44
- /* TODO: this is obviously broken ... the namespaces should be passed too ! */
45
- XSLTPUBFUN xmlChar * XSLTCALL
46
- xsltEvalXPathString (xsltTransformContextPtr ctxt,
47
- xmlXPathCompExprPtr comp);
48
- XSLTPUBFUN xmlChar * XSLTCALL
49
- xsltEvalXPathStringNs (xsltTransformContextPtr ctxt,
50
- xmlXPathCompExprPtr comp,
51
- int nsNr,
52
- xmlNsPtr *nsList);
53
-
54
- XSLTPUBFUN xmlNodePtr * XSLTCALL
55
- xsltTemplateProcess (xsltTransformContextPtr ctxt,
56
- xmlNodePtr node);
57
- XSLTPUBFUN xmlAttrPtr XSLTCALL
58
- xsltAttrListTemplateProcess (xsltTransformContextPtr ctxt,
59
- xmlNodePtr target,
60
- xmlAttrPtr cur);
61
- XSLTPUBFUN xmlAttrPtr XSLTCALL
62
- xsltAttrTemplateProcess (xsltTransformContextPtr ctxt,
63
- xmlNodePtr target,
64
- xmlAttrPtr attr);
65
- XSLTPUBFUN xmlChar * XSLTCALL
66
- xsltAttrTemplateValueProcess (xsltTransformContextPtr ctxt,
67
- const xmlChar* attr);
68
- XSLTPUBFUN xmlChar * XSLTCALL
69
- xsltAttrTemplateValueProcessNode(xsltTransformContextPtr ctxt,
70
- const xmlChar* str,
71
- xmlNodePtr node);
72
- #ifdef __cplusplus
73
- }
74
- #endif
75
-
76
- #endif /* __XML_XSLT_TEMPLATES_H__ */
77
-
@@ -1,207 +0,0 @@
1
- /*
2
- * Summary: the XSLT engine transformation part.
3
- * Description: This module implements the bulk of the actual
4
- * transformation processing. Most of the xsl: element
5
- * constructs are implemented in this module.
6
- *
7
- * Copy: See Copyright for the status of this software.
8
- *
9
- * Author: Daniel Veillard
10
- */
11
-
12
- #ifndef __XML_XSLT_TRANSFORM_H__
13
- #define __XML_XSLT_TRANSFORM_H__
14
-
15
- #include <libxml/parser.h>
16
- #include <libxml/xmlIO.h>
17
- #include "xsltexports.h"
18
- #include <libxslt/xsltInternals.h>
19
-
20
- #ifdef __cplusplus
21
- extern "C" {
22
- #endif
23
-
24
- /**
25
- * XInclude default processing.
26
- */
27
- XSLTPUBFUN void XSLTCALL
28
- xsltSetXIncludeDefault (int xinclude);
29
- XSLTPUBFUN int XSLTCALL
30
- xsltGetXIncludeDefault (void);
31
-
32
- /**
33
- * Export context to users.
34
- */
35
- XSLTPUBFUN xsltTransformContextPtr XSLTCALL
36
- xsltNewTransformContext (xsltStylesheetPtr style,
37
- xmlDocPtr doc);
38
-
39
- XSLTPUBFUN void XSLTCALL
40
- xsltFreeTransformContext(xsltTransformContextPtr ctxt);
41
-
42
- XSLTPUBFUN xmlDocPtr XSLTCALL
43
- xsltApplyStylesheetUser (xsltStylesheetPtr style,
44
- xmlDocPtr doc,
45
- const char **params,
46
- const char *output,
47
- FILE * profile,
48
- xsltTransformContextPtr userCtxt);
49
- XSLTPUBFUN void XSLTCALL
50
- xsltProcessOneNode (xsltTransformContextPtr ctxt,
51
- xmlNodePtr node,
52
- xsltStackElemPtr params);
53
- /**
54
- * Private Interfaces.
55
- */
56
- XSLTPUBFUN void XSLTCALL
57
- xsltApplyStripSpaces (xsltTransformContextPtr ctxt,
58
- xmlNodePtr node);
59
- XSLTPUBFUN xmlDocPtr XSLTCALL
60
- xsltApplyStylesheet (xsltStylesheetPtr style,
61
- xmlDocPtr doc,
62
- const char **params);
63
- XSLTPUBFUN xmlDocPtr XSLTCALL
64
- xsltProfileStylesheet (xsltStylesheetPtr style,
65
- xmlDocPtr doc,
66
- const char **params,
67
- FILE * output);
68
- XSLTPUBFUN int XSLTCALL
69
- xsltRunStylesheet (xsltStylesheetPtr style,
70
- xmlDocPtr doc,
71
- const char **params,
72
- const char *output,
73
- xmlSAXHandlerPtr SAX,
74
- xmlOutputBufferPtr IObuf);
75
- XSLTPUBFUN int XSLTCALL
76
- xsltRunStylesheetUser (xsltStylesheetPtr style,
77
- xmlDocPtr doc,
78
- const char **params,
79
- const char *output,
80
- xmlSAXHandlerPtr SAX,
81
- xmlOutputBufferPtr IObuf,
82
- FILE * profile,
83
- xsltTransformContextPtr userCtxt);
84
- XSLTPUBFUN void XSLTCALL
85
- xsltApplyOneTemplate (xsltTransformContextPtr ctxt,
86
- xmlNodePtr node,
87
- xmlNodePtr list,
88
- xsltTemplatePtr templ,
89
- xsltStackElemPtr params);
90
- XSLTPUBFUN void XSLTCALL
91
- xsltDocumentElem (xsltTransformContextPtr ctxt,
92
- xmlNodePtr node,
93
- xmlNodePtr inst,
94
- xsltStylePreCompPtr comp);
95
- XSLTPUBFUN void XSLTCALL
96
- xsltSort (xsltTransformContextPtr ctxt,
97
- xmlNodePtr node,
98
- xmlNodePtr inst,
99
- xsltStylePreCompPtr comp);
100
- XSLTPUBFUN void XSLTCALL
101
- xsltCopy (xsltTransformContextPtr ctxt,
102
- xmlNodePtr node,
103
- xmlNodePtr inst,
104
- xsltStylePreCompPtr comp);
105
- XSLTPUBFUN void XSLTCALL
106
- xsltText (xsltTransformContextPtr ctxt,
107
- xmlNodePtr node,
108
- xmlNodePtr inst,
109
- xsltStylePreCompPtr comp);
110
- XSLTPUBFUN void XSLTCALL
111
- xsltElement (xsltTransformContextPtr ctxt,
112
- xmlNodePtr node,
113
- xmlNodePtr inst,
114
- xsltStylePreCompPtr comp);
115
- XSLTPUBFUN void XSLTCALL
116
- xsltComment (xsltTransformContextPtr ctxt,
117
- xmlNodePtr node,
118
- xmlNodePtr inst,
119
- xsltStylePreCompPtr comp);
120
- XSLTPUBFUN void XSLTCALL
121
- xsltAttribute (xsltTransformContextPtr ctxt,
122
- xmlNodePtr node,
123
- xmlNodePtr inst,
124
- xsltStylePreCompPtr comp);
125
- XSLTPUBFUN void XSLTCALL
126
- xsltProcessingInstruction(xsltTransformContextPtr ctxt,
127
- xmlNodePtr node,
128
- xmlNodePtr inst,
129
- xsltStylePreCompPtr comp);
130
- XSLTPUBFUN void XSLTCALL
131
- xsltCopyOf (xsltTransformContextPtr ctxt,
132
- xmlNodePtr node,
133
- xmlNodePtr inst,
134
- xsltStylePreCompPtr comp);
135
- XSLTPUBFUN void XSLTCALL
136
- xsltValueOf (xsltTransformContextPtr ctxt,
137
- xmlNodePtr node,
138
- xmlNodePtr inst,
139
- xsltStylePreCompPtr comp);
140
- XSLTPUBFUN void XSLTCALL
141
- xsltNumber (xsltTransformContextPtr ctxt,
142
- xmlNodePtr node,
143
- xmlNodePtr inst,
144
- xsltStylePreCompPtr comp);
145
- XSLTPUBFUN void XSLTCALL
146
- xsltApplyImports (xsltTransformContextPtr ctxt,
147
- xmlNodePtr node,
148
- xmlNodePtr inst,
149
- xsltStylePreCompPtr comp);
150
- XSLTPUBFUN void XSLTCALL
151
- xsltCallTemplate (xsltTransformContextPtr ctxt,
152
- xmlNodePtr node,
153
- xmlNodePtr inst,
154
- xsltStylePreCompPtr comp);
155
- XSLTPUBFUN void XSLTCALL
156
- xsltApplyTemplates (xsltTransformContextPtr ctxt,
157
- xmlNodePtr node,
158
- xmlNodePtr inst,
159
- xsltStylePreCompPtr comp);
160
- XSLTPUBFUN void XSLTCALL
161
- xsltChoose (xsltTransformContextPtr ctxt,
162
- xmlNodePtr node,
163
- xmlNodePtr inst,
164
- xsltStylePreCompPtr comp);
165
- XSLTPUBFUN void XSLTCALL
166
- xsltIf (xsltTransformContextPtr ctxt,
167
- xmlNodePtr node,
168
- xmlNodePtr inst,
169
- xsltStylePreCompPtr comp);
170
- XSLTPUBFUN void XSLTCALL
171
- xsltForEach (xsltTransformContextPtr ctxt,
172
- xmlNodePtr node,
173
- xmlNodePtr inst,
174
- xsltStylePreCompPtr comp);
175
- XSLTPUBFUN void XSLTCALL
176
- xsltRegisterAllElement (xsltTransformContextPtr ctxt);
177
-
178
- XSLTPUBFUN xmlNodePtr XSLTCALL
179
- xsltCopyTextString (xsltTransformContextPtr ctxt,
180
- xmlNodePtr target,
181
- const xmlChar *string,
182
- int noescape);
183
-
184
- /* Following 2 functions needed for libexslt/functions.c */
185
- XSLTPUBFUN void XSLTCALL
186
- xsltLocalVariablePop (xsltTransformContextPtr ctxt,
187
- int limitNr,
188
- int level);
189
- XSLTPUBFUN int XSLTCALL
190
- xsltLocalVariablePush (xsltTransformContextPtr ctxt,
191
- xsltStackElemPtr variable,
192
- int level);
193
- /*
194
- * Hook for the debugger if activated.
195
- */
196
- XSLTPUBFUN void XSLTCALL
197
- xslHandleDebugger (xmlNodePtr cur,
198
- xmlNodePtr node,
199
- xsltTemplatePtr templ,
200
- xsltTransformContextPtr ctxt);
201
-
202
- #ifdef __cplusplus
203
- }
204
- #endif
205
-
206
- #endif /* __XML_XSLT_TRANSFORM_H__ */
207
-
@@ -1,216 +0,0 @@
1
- /*************************************************************************
2
- *
3
- * $Id$
4
- *
5
- * Copyright (C) 1998 Bjorn Reese and Daniel Stenberg.
6
- *
7
- * Permission to use, copy, modify, and distribute this software for any
8
- * purpose with or without fee is hereby granted, provided that the above
9
- * copyright notice and this permission notice appear in all copies.
10
- *
11
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
12
- * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
13
- * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
14
- * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
15
- *
16
- *************************************************************************
17
- *
18
- * http://ctrio.sourceforge.net/
19
- *
20
- ************************************************************************/
21
-
22
- #ifndef TRIO_TRIO_H
23
- #define TRIO_TRIO_H
24
-
25
- #if !defined(WITHOUT_TRIO)
26
-
27
- /*
28
- * Use autoconf defines if present. Packages using trio must define
29
- * HAVE_CONFIG_H as a compiler option themselves.
30
- */
31
- #if defined(HAVE_CONFIG_H)
32
- # include <config.h>
33
- #endif
34
-
35
- #include "triodef.h"
36
-
37
- #include <stdio.h>
38
- #include <stdlib.h>
39
- #if defined(TRIO_COMPILER_ANCIENT)
40
- # include <varargs.h>
41
- #else
42
- # include <stdarg.h>
43
- #endif
44
-
45
- #ifdef __cplusplus
46
- extern "C" {
47
- #endif
48
-
49
- /*
50
- * Error codes.
51
- *
52
- * Remember to add a textual description to trio_strerror.
53
- */
54
- enum {
55
- TRIO_EOF = 1,
56
- TRIO_EINVAL = 2,
57
- TRIO_ETOOMANY = 3,
58
- TRIO_EDBLREF = 4,
59
- TRIO_EGAP = 5,
60
- TRIO_ENOMEM = 6,
61
- TRIO_ERANGE = 7,
62
- TRIO_ERRNO = 8,
63
- TRIO_ECUSTOM = 9
64
- };
65
-
66
- /* Error macros */
67
- #define TRIO_ERROR_CODE(x) ((-(x)) & 0x00FF)
68
- #define TRIO_ERROR_POSITION(x) ((-(x)) >> 8)
69
- #define TRIO_ERROR_NAME(x) trio_strerror(x)
70
-
71
- typedef int (*trio_outstream_t) TRIO_PROTO((trio_pointer_t, int));
72
- typedef int (*trio_instream_t) TRIO_PROTO((trio_pointer_t));
73
-
74
- TRIO_CONST char *trio_strerror TRIO_PROTO((int));
75
-
76
- /*************************************************************************
77
- * Print Functions
78
- */
79
-
80
- int trio_printf TRIO_PROTO((TRIO_CONST char *format, ...));
81
- int trio_vprintf TRIO_PROTO((TRIO_CONST char *format, va_list args));
82
- int trio_printfv TRIO_PROTO((TRIO_CONST char *format, void **args));
83
-
84
- int trio_fprintf TRIO_PROTO((FILE *file, TRIO_CONST char *format, ...));
85
- int trio_vfprintf TRIO_PROTO((FILE *file, TRIO_CONST char *format, va_list args));
86
- int trio_fprintfv TRIO_PROTO((FILE *file, TRIO_CONST char *format, void **args));
87
-
88
- int trio_dprintf TRIO_PROTO((int fd, TRIO_CONST char *format, ...));
89
- int trio_vdprintf TRIO_PROTO((int fd, TRIO_CONST char *format, va_list args));
90
- int trio_dprintfv TRIO_PROTO((int fd, TRIO_CONST char *format, void **args));
91
-
92
- int trio_cprintf TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
93
- TRIO_CONST char *format, ...));
94
- int trio_vcprintf TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
95
- TRIO_CONST char *format, va_list args));
96
- int trio_cprintfv TRIO_PROTO((trio_outstream_t stream, trio_pointer_t closure,
97
- TRIO_CONST char *format, void **args));
98
-
99
- int trio_sprintf TRIO_PROTO((char *buffer, TRIO_CONST char *format, ...));
100
- int trio_vsprintf TRIO_PROTO((char *buffer, TRIO_CONST char *format, va_list args));
101
- int trio_sprintfv TRIO_PROTO((char *buffer, TRIO_CONST char *format, void **args));
102
-
103
- int trio_snprintf TRIO_PROTO((char *buffer, size_t max, TRIO_CONST char *format, ...));
104
- int trio_vsnprintf TRIO_PROTO((char *buffer, size_t bufferSize, TRIO_CONST char *format,
105
- va_list args));
106
- int trio_snprintfv TRIO_PROTO((char *buffer, size_t bufferSize, TRIO_CONST char *format,
107
- void **args));
108
-
109
- int trio_snprintfcat TRIO_PROTO((char *buffer, size_t max, TRIO_CONST char *format, ...));
110
- int trio_vsnprintfcat TRIO_PROTO((char *buffer, size_t bufferSize, TRIO_CONST char *format,
111
- va_list args));
112
-
113
- char *trio_aprintf TRIO_PROTO((TRIO_CONST char *format, ...));
114
- char *trio_vaprintf TRIO_PROTO((TRIO_CONST char *format, va_list args));
115
-
116
- int trio_asprintf TRIO_PROTO((char **ret, TRIO_CONST char *format, ...));
117
- int trio_vasprintf TRIO_PROTO((char **ret, TRIO_CONST char *format, va_list args));
118
-
119
- /*************************************************************************
120
- * Scan Functions
121
- */
122
- int trio_scanf TRIO_PROTO((TRIO_CONST char *format, ...));
123
- int trio_vscanf TRIO_PROTO((TRIO_CONST char *format, va_list args));
124
- int trio_scanfv TRIO_PROTO((TRIO_CONST char *format, void **args));
125
-
126
- int trio_fscanf TRIO_PROTO((FILE *file, TRIO_CONST char *format, ...));
127
- int trio_vfscanf TRIO_PROTO((FILE *file, TRIO_CONST char *format, va_list args));
128
- int trio_fscanfv TRIO_PROTO((FILE *file, TRIO_CONST char *format, void **args));
129
-
130
- int trio_dscanf TRIO_PROTO((int fd, TRIO_CONST char *format, ...));
131
- int trio_vdscanf TRIO_PROTO((int fd, TRIO_CONST char *format, va_list args));
132
- int trio_dscanfv TRIO_PROTO((int fd, TRIO_CONST char *format, void **args));
133
-
134
- int trio_cscanf TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
135
- TRIO_CONST char *format, ...));
136
- int trio_vcscanf TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
137
- TRIO_CONST char *format, va_list args));
138
- int trio_cscanfv TRIO_PROTO((trio_instream_t stream, trio_pointer_t closure,
139
- TRIO_CONST char *format, void **args));
140
-
141
- int trio_sscanf TRIO_PROTO((TRIO_CONST char *buffer, TRIO_CONST char *format, ...));
142
- int trio_vsscanf TRIO_PROTO((TRIO_CONST char *buffer, TRIO_CONST char *format, va_list args));
143
- int trio_sscanfv TRIO_PROTO((TRIO_CONST char *buffer, TRIO_CONST char *format, void **args));
144
-
145
- /*************************************************************************
146
- * Locale Functions
147
- */
148
- void trio_locale_set_decimal_point TRIO_PROTO((char *decimalPoint));
149
- void trio_locale_set_thousand_separator TRIO_PROTO((char *thousandSeparator));
150
- void trio_locale_set_grouping TRIO_PROTO((char *grouping));
151
-
152
- /*************************************************************************
153
- * Renaming
154
- */
155
- #ifdef TRIO_REPLACE_STDIO
156
- /* Replace the <stdio.h> functions */
157
- #ifndef HAVE_PRINTF
158
- # define printf trio_printf
159
- #endif
160
- #ifndef HAVE_VPRINTF
161
- # define vprintf trio_vprintf
162
- #endif
163
- #ifndef HAVE_FPRINTF
164
- # define fprintf trio_fprintf
165
- #endif
166
- #ifndef HAVE_VFPRINTF
167
- # define vfprintf trio_vfprintf
168
- #endif
169
- #ifndef HAVE_SPRINTF
170
- # define sprintf trio_sprintf
171
- #endif
172
- #ifndef HAVE_VSPRINTF
173
- # define vsprintf trio_vsprintf
174
- #endif
175
- #ifndef HAVE_SNPRINTF
176
- # define snprintf trio_snprintf
177
- #endif
178
- #ifndef HAVE_VSNPRINTF
179
- # define vsnprintf trio_vsnprintf
180
- #endif
181
- #ifndef HAVE_SCANF
182
- # define scanf trio_scanf
183
- #endif
184
- #ifndef HAVE_VSCANF
185
- # define vscanf trio_vscanf
186
- #endif
187
- #ifndef HAVE_FSCANF
188
- # define fscanf trio_fscanf
189
- #endif
190
- #ifndef HAVE_VFSCANF
191
- # define vfscanf trio_vfscanf
192
- #endif
193
- #ifndef HAVE_SSCANF
194
- # define sscanf trio_sscanf
195
- #endif
196
- #ifndef HAVE_VSSCANF
197
- # define vsscanf trio_vsscanf
198
- #endif
199
- /* These aren't stdio functions, but we make them look similar */
200
- #define dprintf trio_dprintf
201
- #define vdprintf trio_vdprintf
202
- #define aprintf trio_aprintf
203
- #define vaprintf trio_vaprintf
204
- #define asprintf trio_asprintf
205
- #define vasprintf trio_vasprintf
206
- #define dscanf trio_dscanf
207
- #define vdscanf trio_vdscanf
208
- #endif
209
-
210
- #ifdef __cplusplus
211
- } /* extern "C" */
212
- #endif
213
-
214
- #endif /* WITHOUT_TRIO */
215
-
216
- #endif /* TRIO_TRIO_H */