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)
30 #include "chxj_cookie.h"
32 /*============================================================================*/
33 /* Structure for HDML */
34 /*============================================================================*/
35 typedef struct hdml_t hdml_t;
46 /*--------------------------------------------------------------------------*/
47 /* If the title tag is found, it becomes ``1''. */
48 /*--------------------------------------------------------------------------*/
50 /*--------------------------------------------------------------------------*/
51 /* Counter of pure form tag */
52 /*--------------------------------------------------------------------------*/
55 int var_cnt[MAX_FORM_COUNT];
56 char* postdata[MAX_FORM_COUNT];
57 /*------------------------------*/
58 /* max <input type="radio"> tag */
59 /*------------------------------*/
60 char* radio_value_list[MAX_RADIO_COUNT][MAX_RADIO_VALUE_COUNT];
61 char* radio_name_list[MAX_RADIO_COUNT];
62 int radio_out_cnt[MAX_RADIO_COUNT];
63 char* radio_checked_value[MAX_RADIO_COUNT];
64 /*---------------------------------*/
65 /* for <input type="submit"> tag */
66 /*---------------------------------*/
67 char* submit_button[MAX_SUBMIT_BUTTON_COUNT];
69 /*---------------------------------*/
70 /* for <input type="checkbox"> tag */
71 /*---------------------------------*/
79 /*------------------------------*/
80 /* Counter for variable of HDML */
81 /*------------------------------*/
94 mod_chxj_config* conf;
96 chxjconvrule_entry* entryp;
101 /*============================================================================*/
102 /* Prototype declaration. */
103 /*============================================================================*/
104 extern char* chxj_exchange_hdml(
110 chxjconvrule_entry* entryp,
115 request_rec* r, char* o, char* s, int* len);
116 extern char* qs_conv_istyle_to_format(request_rec* r, char* is);