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_ADD_DEVICE_ENV_H__
18 #define __CHXJ_ADD_DEVICE_ENV_H__
21 #include "chxj_specified_device.h"
23 /* "X-Chxj-Provider" => { 0 => 'unknown', 1 => 'docomo', 2 => 'au', 3 => 'SoftBank' */
24 #define HTTP_X_CHXJ_PROVIDER "X-Chxj-Provider"
25 #define HTTP_X_CHXJ_PROVIDER_STRING "X-Chxj-Provider-String"
27 /* "X-Chxj-DeviceId" => { docomo => 'D503i' and so on, au => 'CA31' and so on, SoftBank => '706P' and so on */
28 #define HTTP_X_CHXJ_DEVICEID "X-Chxj-DeviceId"
30 /* "X-Chxj-DeviceName" => { 'SoftBank 706P' and so on. } <device_name> */
31 #define HTTP_X_CHXJ_DEVICENAME "X-Chxj-DeviceName"
33 /* "X-Chxj-HtmlSpecType" => { JXHTML, JHTML, CHTML1.0 CHTML2.0 CHTML3.0 CHTML4.0 CHTML5.0 IXHTML1.0 } */
34 #define HTTP_X_CHXJ_HTMLSPECTYPE "X-Chxj-HtmlSpecType"
36 /* "X-Chxj-Width" => { <width> } */
37 #define HTTP_X_CHXJ_WIDTH "X-Chxj-Width"
39 /* "X-Chxj-Height" => { <height> } */
40 #define HTTP_X_CHXJ_HEIGHT "X-Chxj-Height"
42 /* "X-Chxj-Gif" => { true/false } */
43 #define HTTP_X_CHXJ_GIF "X-Chxj-Gif"
45 /* "X-Chxj-Jpeg" => { true/false } */
46 #define HTTP_X_CHXJ_JPEG "X-Chxj-Jpeg"
48 /* "X-Chxj-Png" => { true/false } */
49 #define HTTP_X_CHXJ_PNG "X-Chxj-Png"
51 /* "X-Chxj-Bmp2" => { true/false } */
52 #define HTTP_X_CHXJ_BMP2 "X-Chxj-Bmp2"
54 /* "X-Chxj-Bmp4" => { true/false } */
55 #define HTTP_X_CHXJ_BMP4 "X-Chxj-Bmp4"
57 /* "X-Chxj-Color" => { <color> } */
58 #define HTTP_X_CHXJ_COLOR "X-Chxj-Color"
60 /* "X-Chxj-WP-Width" => { <wp_width> } */
61 #define HTTP_X_CHXJ_WP_WIDTH "X-Chxj-WP-Width"
63 /* "X-Chxj-WP-Height" => { <wp_height> } */
64 #define HTTP_X_CHXJ_WP_HEIGHT "X-Chxj-WP-Height"
66 /* "X-Chxj-Cache" => { <cache> } */
67 #define HTTP_X_CHXJ_CACHE "X-Chxj-Cache"
69 /* "X-Chxj-Dpi-Width" => { <dpi_width> } */
70 #define HTTP_X_CHXJ_DPI_WIDTH "X-Chxj-Dpi-Width"
72 /* "X-Chxj-Dpi-Height" => { <dpi_heigh> } */
73 #define HTTP_X_CHXJ_DPI_HEIGHT "X-Chxj-Dpi-Height"
75 /* "X-Chxj-Color" => { <color> } */
76 #define HTTP_X_CHXJ_COLOR "X-Chxj-Color"
78 /* "X-Chxj-Emoji-Type" => { <emoji_type> } */
79 #define HTTP_X_CHXJ_EMOJI_TYPE "X-Chxj-Emoji-Type"
81 #define HTTP_X_CHXJ_VERSION "X-Chxj-Version"
83 #define HTTP_X_CHXJ_INFO "X-Chxj-Info"
85 extern void chxj_add_device_env(request_rec *r, device_table *spec);
86 extern device_table *chxj_get_device_env(request_rec *r);