OSDN Git Service

* updated changelog
[modchxj/mod_chxj.git] / include / chxj_tag_util.h
1 /*
2  * Copyright (C) 2005-2011 Atsushi Konno All rights reserved.
3  * Copyright (C) 2005 QSDN,Inc. 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_alloc_zero_byte_string(apr_pool_t *pool);
26 extern char *qs_trim_string(apr_pool_t *p, char *s);
27 extern char *qs_get_value_attr(Doc *doc, Node *tag, apr_pool_t *pool);
28 extern char *qs_get_checked_attr(Doc *doc, Node *tag, apr_pool_t *pool);
29 extern char *qs_get_type_attr(Doc *doc, Node *tag, apr_pool_t *pool);
30 extern char *qs_get_selected_value_text(Doc *doc, Node *node, apr_pool_t *pool);
31 extern char *qs_get_selected_value(Doc *doc, Node *node, apr_pool_t *pool);
32 extern char *qs_get_name_attr(Doc *doc, Node *tag, apr_pool_t *pool);
33 extern char *qs_get_size_attr(Doc *doc, Node *tag, apr_pool_t *pool);
34 extern char *qs_get_accesskey_attr(Doc *doc, Node *tag, apr_pool_t *pool);
35 extern char *qs_get_istyle_attr(Doc *doc, Node *tag, apr_pool_t *pool);
36 extern char *qs_get_maxlength_attr(Doc *doc, Node *tag, apr_pool_t *pool);
37 extern int   qs_is_checked_checkbox_attr(Doc *doc, Node *tag, apr_pool_t *pool);
38 extern int   chxj_chxjif_is_mine(device_table *spec, Doc *doc, Node *tag);
39 extern char *qs_get_destlang_attr(Doc *doc, Node *tag, apr_pool_t *pool);
40 extern char *qs_get_parse_attr(Doc *doc, Node *tag, apr_pool_t *pool);
41 extern char *chxj_form_action_to_hidden_tag(
42   request_rec *r, 
43   apr_pool_t *pool,
44   const char *str,
45   int xmlFlag,
46   int post, 
47   char **new_query_string, 
48   int docomo,
49   int softbank,
50   chxjconvrule_entry *entryp
51   );
52 extern char *chxj_delete_chxj_cc_param(request_rec *r, const char *str);
53
54 #endif
55 /*
56  * vim:ts=2 et
57  */