OSDN Git Service

3f93e6b078f6469561cbfc5452527e9691d7e229
[modchxj/mod_chxj.git] / include / chxj_add_device_env.h
1 /*
2  * Copyright (C) 2005-2009 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_ADD_DEVICE_ENV_H__
18 #define __CHXJ_ADD_DEVICE_ENV_H__
19
20 #include "mod_chxj.h"
21 #include "chxj_specified_device.h"
22
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"
26
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"
29
30 /* "X-Chxj-DeviceName" => { 'SoftBank 706P' and so on. } <device_name> */
31 #define HTTP_X_CHXJ_DEVICENAME "X-Chxj-DeviceName"
32
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"
35
36 /* "X-Chxj-Width"        => { <width> } */
37 #define HTTP_X_CHXJ_WIDTH "X-Chxj-Width"
38
39 /* "X-Chxj-Height"       => { <height> } */
40 #define HTTP_X_CHXJ_HEIGHT "X-Chxj-Height"
41
42 /* "X-Chxj-Gif"          => { true/false } */
43 #define HTTP_X_CHXJ_GIF    "X-Chxj-Gif"
44
45 /* "X-Chxj-Jpeg"         => { true/false } */
46 #define HTTP_X_CHXJ_JPEG   "X-Chxj-Jpeg"
47
48 /* "X-Chxj-Png"          => { true/false } */
49 #define HTTP_X_CHXJ_PNG    "X-Chxj-Png"
50
51 /* "X-Chxj-Bmp2"         => { true/false } */
52 #define HTTP_X_CHXJ_BMP2   "X-Chxj-Bmp2"
53
54 /* "X-Chxj-Bmp4"         => { true/false } */
55 #define HTTP_X_CHXJ_BMP4   "X-Chxj-Bmp4"
56
57 /* "X-Chxj-Color"        => { <color> } */
58 #define HTTP_X_CHXJ_COLOR  "X-Chxj-Color"
59
60 /* "X-Chxj-WP-Width"     => { <wp_width> } */
61 #define HTTP_X_CHXJ_WP_WIDTH "X-Chxj-WP-Width"
62
63 /* "X-Chxj-WP-Height"    => { <wp_height> } */
64 #define HTTP_X_CHXJ_WP_HEIGHT "X-Chxj-WP-Height"
65
66 /* "X-Chxj-Cache"        => { <cache> } */
67 #define HTTP_X_CHXJ_CACHE    "X-Chxj-Cache"
68
69 /* "X-Chxj-Dpi-Width"        => { <dpi_width> } */
70 #define HTTP_X_CHXJ_DPI_WIDTH "X-Chxj-Dpi-Width"
71
72 /* "X-Chxj-Dpi-Height"       => { <dpi_heigh> } */
73 #define HTTP_X_CHXJ_DPI_HEIGHT "X-Chxj-Dpi-Height"
74
75 /* "X-Chxj-Color"       => { <color> } */
76 #define HTTP_X_CHXJ_COLOR "X-Chxj-Color"
77
78 /* "X-Chxj-Emoji-Type"  => { <emoji_type> } */
79 #define HTTP_X_CHXJ_EMOJI_TYPE "X-Chxj-Emoji-Type"
80
81 #define HTTP_X_CHXJ_VERSION  "X-Chxj-Version"
82
83 #define HTTP_X_CHXJ_INFO     "X-Chxj-Info"
84
85 extern void chxj_add_device_env(request_rec *r, device_table *spec);
86 extern device_table *chxj_get_device_env(request_rec *r);
87
88 #endif
89 /*
90  * vim:ts=2 et
91  */