2 * Copyright (C) 2005-2009 Atsushi Konno All rights reserved.
3 * Copyright (C) 2005 QSDN,Inc. 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_SPECIFIED_DEVICE_H__
18 #define __CHXJ_SPECIFIED_DEVICE_H__
27 CHXJ_SPEC_Chtml_6_0, /* use XHTML */
28 CHXJ_SPEC_Chtml_7_0, /* use XHTML */
29 CHXJ_SPEC_XHtml_Mobile_1_0,
32 CHXJ_SPEC_Jxhtml, /* use XHTML */
36 #define CHXJ_PIC_OK (0x01)
37 #define CHXJ_PIC_NG (0x00)
40 #include "chxj_cookie.h"
43 typedef struct device_table_t device_table;
45 struct device_table_t {
46 struct device_table_t* next;
47 int provider; /* DOCOMO|AU|SOFTBANK|UNKNOWN */
48 const char* device_id;
49 const char* device_name;
50 spec_type html_spec_type;
53 /*--------------------------------------------------------------------------*/
54 /* Walll Paper Size */
55 /*--------------------------------------------------------------------------*/
58 /*--------------------------------------------------------------------------*/
60 /*--------------------------------------------------------------------------*/
62 /*--------------------------------------------------------------------------*/
63 /* Correspondence image format */
64 /* 1: It is possible to display it. */
65 /* 0: It is not possible to display it. */
66 /*--------------------------------------------------------------------------*/
72 /*--------------------------------------------------------------------------*/
74 /*--------------------------------------------------------------------------*/
77 /*--------------------------------------------------------------------------*/
78 /* Color number type */
81 /* 256 : 256 Colors */
82 /* 4096 : 4096 Colors */
83 /* 65536 : 65536 Colors */
84 /* 262144 : 262144 Colors */
85 /* 15680000: 15680000 over colors */
86 /*--------------------------------------------------------------------------*/
89 char* output_encoding; /* Output encoding */
92 typedef struct device_table_list_t device_table_list;
94 struct device_table_list_t {
95 struct device_table_list_t *next;
102 device_table **sort_table;
106 typedef struct converter_t converter_t;
109 /* convert routine */
110 char *(*converter)(request_rec *r,
111 struct device_table_t *spec,
115 struct chxjconvrule_entry *entryp,
118 char *(*encoder)(request_rec *r,
123 char *(*emoji_only_converter)(
125 struct device_table_t *spec,
130 extern converter_t convert_routine[];
132 extern device_table* chxj_specified_device(
134 const char *user_agent);