2 * Copyright (C) 2005 QSDN,Inc. All rights reserved.
3 * Copyright (C) 2005 Atsushi Konno All rights reserved.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __CHXJ_HDML_H__
18 #define __CHXJ_HDML_H__
20 /*============================================================================*/
21 /* The maximum number of form is up to ten. */
22 /*============================================================================*/
23 #define MAX_FORM_COUNT (10)
24 #define MAX_RADIO_COUNT (10)
25 #define MAX_RADIO_VALUE_COUNT (100)
26 #define MAX_SUBMIT_BUTTON_COUNT (10)
31 /*============================================================================*/
32 /* Structure for HDML */
33 /*============================================================================*/
34 typedef struct _hdml_t {
43 /*--------------------------------------------------------------------------*/
44 /* If the title tag is found, it becomes ``1''. */
45 /*--------------------------------------------------------------------------*/
47 /*--------------------------------------------------------------------------*/
48 /* Counter of pure form tag */
49 /*--------------------------------------------------------------------------*/
52 int var_cnt[MAX_FORM_COUNT];
53 char* postdata[MAX_FORM_COUNT];
54 /*------------------------------*/
55 /* max <input type="radio"> tag */
56 /*------------------------------*/
57 char* radio_value_list[MAX_RADIO_COUNT][MAX_RADIO_VALUE_COUNT];
58 char* radio_name_list[MAX_RADIO_COUNT];
59 int radio_out_cnt[MAX_RADIO_COUNT];
60 char* radio_checked_value[MAX_RADIO_COUNT];
61 /*---------------------------------*/
62 /* for <input type="submit"> tag */
63 /*---------------------------------*/
64 char* submit_button[MAX_SUBMIT_BUTTON_COUNT];
66 /*---------------------------------*/
67 /* for <input type="checkbox"> tag */
68 /*---------------------------------*/
76 /*------------------------------*/
77 /* Counter for variable of HDML */
78 /*------------------------------*/
91 mod_chxj_config* conf;
93 /*============================================================================*/
94 /* Prototype declaration. */
95 /*============================================================================*/
96 char* chxj_exchange_hdml(request_rec* r, device_table_t* spec, const char* src, apr_size_t srclen, apr_size_t* dstlen) ;
97 char* qs_out_apr_pstrcat(request_rec* r, char* o, char* s, int* len);
98 char* qs_conv_istyle_to_format(request_rec* r, char* is);