OSDN Git Service

*** empty log message ***
[modchxj/mod_chxj.git] / include / chxj_tag_util.h
1 /*
2  * Copyright (C) 2005 QSDN,Inc. All rights reserved.
3  * Copyright (C) 2005 Atsushi Konno All rights reserved.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef __CHXJ_TAG_UTIL_H__
18 #define __CHXJ_TAG_UTIL_H__
19
20 #include "mod_chxj.h"
21
22 /*----------------------------------------------------------------------------*/
23 /* prototype declare                                                          */
24 /*----------------------------------------------------------------------------*/
25 extern char* qs_get_value_attr(
26   Doc*         doc, 
27   Node*        tag, 
28   request_rec* r);
29
30 extern char* qs_get_checked_attr(
31   Doc*         doc, 
32   Node*        tag, 
33   request_rec* r);
34
35 extern char* qs_get_type_attr(
36   Doc*         doc,
37   Node*        tag,
38   request_rec* r);
39
40 extern char* qs_get_name_attr(
41   Doc*         doc,
42   Node*        tag,
43   request_rec* r);
44
45 extern char* qs_get_istyle_attr(
46   Doc*         doc,
47   Node*        tag,
48   request_rec* r);
49
50 extern char* qs_get_maxlength_attr(
51   Doc*         doc, 
52   Node*        tag, 
53   request_rec* r);
54
55 extern char* qs_get_size_attr(
56   Doc*         doc, 
57   Node*        tag, 
58   request_rec* r);
59
60 extern char* qs_get_accesskey_attr(
61   Doc*         doc, 
62   Node*        tag, 
63   request_rec* r);
64
65 extern int qs_is_checked_checkbox_attr(
66   Doc*         doc, 
67   Node*        tag, 
68   request_rec* r);
69
70 extern char* qs_get_selected_value_text(
71   Doc*         doc, 
72   Node*        node, 
73   request_rec* r);
74
75 extern char* qs_get_selected_value(
76   Doc*         doc, 
77   Node*        node,
78   request_rec* r);
79
80 extern char* qs_alloc_zero_byte_string(
81   request_rec* r);
82
83 extern char* qs_trim_string(
84   request_rec* r, 
85   char*        s);
86
87 extern int   chxj_chxjif_is_mine(
88   device_table* spec, 
89   Doc* doc, 
90   Node* tag);
91
92 extern char* qs_get_destlang_attr(Doc* doc, Node* tag, request_rec* r);
93
94 extern char* qs_get_parse_attr(Doc* doc, Node* tag, request_rec* r);
95
96 #endif
97 /*
98  * vim:ts=2 et
99  */