diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llmessage/lldbstrings.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/lldbstrings.h | 227 |
1 files changed, 227 insertions, 0 deletions
diff --git a/linden/indra/llmessage/lldbstrings.h b/linden/indra/llmessage/lldbstrings.h new file mode 100644 index 0000000..122e45b --- /dev/null +++ b/linden/indra/llmessage/lldbstrings.h | |||
@@ -0,0 +1,227 @@ | |||
1 | /** | ||
2 | * @file lldbstrings.h | ||
3 | * @brief Database String Lengths. | ||
4 | * | ||
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLDBSTRINGS_H | ||
29 | #define LL_LLDBSTRINGS_H | ||
30 | |||
31 | /** | ||
32 | * Defines the length of strings that are stored in the database (and | ||
33 | * the size of the buffer large enough to hold each one) | ||
34 | */ | ||
35 | |||
36 | // asset.name varchar(63) | ||
37 | // -also- | ||
38 | // user_inventory_item.name varchar(63) | ||
39 | // -also- | ||
40 | // user_inventory_folder.name varchar(63) was CAT_NAME_SIZE | ||
41 | // Must be >= DB_FULL_NAME_STR_LEN so that calling cards work | ||
42 | const S32 DB_INV_ITEM_NAME_STR_LEN = 63; // was MAX_ASSET_NAME_LENGTH | ||
43 | const S32 DB_INV_ITEM_NAME_BUF_SIZE = 64; // was ITEM_NAME_SIZE | ||
44 | |||
45 | // asset.description varchar(127) | ||
46 | // -also- | ||
47 | // user_inventory_item.description varchar(127) | ||
48 | const S32 DB_INV_ITEM_DESC_STR_LEN = 127; // was MAX_ASSET_DESCRIPTION_LENGTH | ||
49 | const S32 DB_INV_ITEM_DESC_BUF_SIZE = 128; // was ITEM_DESC_SIZE | ||
50 | |||
51 | // groups.name varchar(35) | ||
52 | const S32 DB_GROUP_NAME_STR_LEN = 35; | ||
53 | const S32 DB_GROUP_NAME_BUF_SIZE = 36; | ||
54 | const S32 DB_GROUP_NAME_MIN_LEN = 4; | ||
55 | |||
56 | //group_roles.name | ||
57 | const U32 DB_GROUP_ROLE_NAME_STR_LEN = 20; | ||
58 | const U32 DB_GROUP_ROLE_NAME_BUF_SIZE = DB_GROUP_ROLE_NAME_STR_LEN + 1; | ||
59 | |||
60 | //group_roles.title | ||
61 | const U32 DB_GROUP_ROLE_TITLE_STR_LEN = 20; | ||
62 | const U32 DB_GROUP_ROLE_TITLE_BUF_SIZE = DB_GROUP_ROLE_TITLE_STR_LEN + 1; | ||
63 | |||
64 | |||
65 | // group.charter text | ||
66 | const S32 DB_GROUP_CHARTER_STR_LEN = 511; | ||
67 | const S32 DB_GROUP_CHARTER_BUF_SIZE = 512; | ||
68 | |||
69 | // group.officer_title varchar(20) | ||
70 | // -also- | ||
71 | // group.member_title varchar(20) | ||
72 | const S32 DB_GROUP_TITLE_STR_LEN = 20; | ||
73 | const S32 DB_GROUP_TITLE_BUF_SIZE = 21; | ||
74 | |||
75 | // Since chat and im both dump into the database text message log, | ||
76 | // they derive their max size from the same constant. | ||
77 | const S32 MAX_MSG_STR_LEN = 1023; | ||
78 | const S32 MAX_MSG_BUF_SIZE = 1024; | ||
79 | |||
80 | // instant_message.message text | ||
81 | const S32 DB_IM_MSG_STR_LEN = MAX_MSG_STR_LEN; | ||
82 | const S32 DB_IM_MSG_BUF_SIZE = MAX_MSG_BUF_SIZE; | ||
83 | |||
84 | // groupnotices | ||
85 | const S32 DB_GROUP_NOTICE_SUBJ_STR_LEN = 63; | ||
86 | const S32 DB_GROUP_NOTICE_SUBJ_STR_SIZE = 64; | ||
87 | const S32 DB_GROUP_NOTICE_MSG_STR_LEN = MAX_MSG_STR_LEN - DB_GROUP_NOTICE_SUBJ_STR_LEN; | ||
88 | const S32 DB_GROUP_NOTICE_MSG_STR_SIZE = MAX_MSG_BUF_SIZE - DB_GROUP_NOTICE_SUBJ_STR_SIZE; | ||
89 | |||
90 | // log_text_message.message text | ||
91 | const S32 DB_CHAT_MSG_STR_LEN = MAX_MSG_STR_LEN; | ||
92 | const S32 DB_CHAT_MSG_BUF_SIZE = MAX_MSG_BUF_SIZE; | ||
93 | |||
94 | // money_stipend.description varchar(254) | ||
95 | const S32 DB_STIPEND_DESC_STR_LEN = 254; | ||
96 | const S32 DB_STIPEND_DESC_BUF_SIZE = 255; | ||
97 | |||
98 | // script_email_message.from_email varchar(78) | ||
99 | const S32 DB_EMAIL_FROM_STR_LEN = 78; | ||
100 | const S32 DB_EMAIL_FROM_BUF_SIZE = 79; | ||
101 | |||
102 | // script_email_message.subject varchar(72) | ||
103 | const S32 DB_EMAIL_SUBJECT_STR_LEN = 72; | ||
104 | const S32 DB_EMAIL_SUBJECT_BUF_SIZE = 73; | ||
105 | |||
106 | // system_globals.motd varchar(254) | ||
107 | const S32 DB_MOTD_STR_LEN = 254; | ||
108 | const S32 DB_MOTD_BUF_SIZE = 255; | ||
109 | |||
110 | // Must be <= user_inventory_item.name so that calling cards work | ||
111 | // First name + " " + last name...or a system assigned "from" name | ||
112 | // instant_message.from_agent_name varchar(63) | ||
113 | // -also- | ||
114 | // user_mute.mute_agent_name varchar(63) | ||
115 | const S32 DB_FULL_NAME_STR_LEN = 63; | ||
116 | const S32 DB_FULL_NAME_BUF_SIZE = 64; // was USER_NAME_SIZE | ||
117 | |||
118 | // user.username varchar(31) | ||
119 | const S32 DB_FIRST_NAME_STR_LEN = 31; | ||
120 | const S32 DB_FIRST_NAME_BUF_SIZE = 32; // was MAX_FIRST_NAME | ||
121 | |||
122 | // user_last_name.name varchar(31) | ||
123 | const S32 DB_LAST_NAME_STR_LEN = 31; | ||
124 | const S32 DB_LAST_NAME_BUF_SIZE = 32; // was MAX_LAST_NAME | ||
125 | |||
126 | // user.password varchar(100) | ||
127 | const S32 DB_USER_PASSWORD_STR_LEN = 100; | ||
128 | const S32 DB_USER_PASSWORD_BUF_SIZE = 101; // was MAX_PASSWORD | ||
129 | |||
130 | // user.email varchar(254) | ||
131 | const S32 DB_USER_EMAIL_ADDR_STR_LEN = 254; | ||
132 | const S32 DB_USER_EMAIL_ADDR_BUF_SIZE = 255; | ||
133 | |||
134 | // user.about text | ||
135 | const S32 DB_USER_ABOUT_STR_LEN = 511; | ||
136 | const S32 DB_USER_ABOUT_BUF_SIZE = 512; | ||
137 | |||
138 | // user.fl_about_text text | ||
139 | // Must be 255 not 256 as gets packed into message Variable 1 | ||
140 | const S32 DB_USER_FL_ABOUT_STR_LEN = 254; | ||
141 | const S32 DB_USER_FL_ABOUT_BUF_SIZE = 255; | ||
142 | |||
143 | // user.profile_url text | ||
144 | // Must be 255 not 256 as gets packed into message Variable 1 | ||
145 | const S32 DB_USER_PROFILE_URL_STR_LEN = 254; | ||
146 | const S32 DB_USER_PROFILE_URL_BUF_SIZE = 255; | ||
147 | |||
148 | // user.want_to varchar(254) | ||
149 | const S32 DB_USER_WANT_TO_STR_LEN = 254; | ||
150 | const S32 DB_USER_WANT_TO_BUF_SIZE = 255; | ||
151 | |||
152 | // user.skills varchar(254) | ||
153 | const S32 DB_USER_SKILLS_STR_LEN = 254; | ||
154 | const S32 DB_USER_SKILLS_BUF_SIZE = 255; | ||
155 | |||
156 | // user_nv.name varchar(128) | ||
157 | const S32 DB_NV_NAME_STR_LEN = 128; | ||
158 | const S32 DB_NV_NAME_BUF_SIZE = 129; | ||
159 | |||
160 | // votes.vote_text varchar(254) | ||
161 | const S32 DB_VOTE_TEXT_STR_LEN = 254; | ||
162 | const S32 DB_VOTE_TEXT_BUF_SIZE = 255; | ||
163 | |||
164 | // vpte type text varchar(9) | ||
165 | const S32 DB_VOTE_TYPE_STR_LEN = 9; | ||
166 | const S32 DB_VOTE_TYPE_BUF_SIZE = 10; | ||
167 | |||
168 | // vote result text | ||
169 | const S32 DB_VOTE_RESULT_BUF_LEN = 8; | ||
170 | const S32 DB_VOTE_RESULT_BUF_SIZE = 9; | ||
171 | |||
172 | // user_start_location.location_name varchar(254) | ||
173 | const S32 DB_START_LOCATION_STR_LEN = 254; | ||
174 | const S32 DB_START_LOCATION_BUF_SIZE = 255; | ||
175 | |||
176 | // money_tax_assessment.sim varchar(100) | ||
177 | //const S32 DB_SIM_NAME_STR_LEN = 100; | ||
178 | //const S32 DB_SIM_NAME_BUF_SIZE = 101; | ||
179 | |||
180 | // born on date date | ||
181 | const S32 DB_BORN_STR_LEN = 15; | ||
182 | const S32 DB_BORN_BUF_SIZE = 16; | ||
183 | |||
184 | // place.name | ||
185 | const S32 DB_PLACE_NAME_LEN = 63; | ||
186 | const S32 DB_PLACE_NAME_SIZE = 64; | ||
187 | const S32 DB_PARCEL_NAME_LEN = 63; | ||
188 | const S32 DB_PARCEL_NAME_SIZE = 64; | ||
189 | |||
190 | // place.desc | ||
191 | const S32 DB_PLACE_DESC_LEN = 255; | ||
192 | const S32 DB_PLACE_DESC_SIZE = 256; | ||
193 | const S32 DB_PARCEL_DESC_LEN = 255; | ||
194 | const S32 DB_PARCEL_DESC_SIZE = 256; | ||
195 | const S32 DB_PARCEL_MUSIC_URL_LEN = 255; | ||
196 | const S32 DB_PARCEL_MEDIA_URL_LEN = 255; | ||
197 | const S32 DB_PARCEL_MUSIC_URL_SIZE = 256; | ||
198 | |||
199 | // date time that is easily human readable | ||
200 | const S32 DB_DATETIME_STR_LEN = 35; | ||
201 | const S32 DB_DATETIME_BUF_SIZE = 36; | ||
202 | |||
203 | // date time that isn't easily human readable | ||
204 | const S32 DB_TERSE_DATETIME_STR_LEN = 15; | ||
205 | const S32 DB_TERSE_DATETIME_BUF_SIZE = 16; | ||
206 | |||
207 | // indra.simulator constants | ||
208 | const S32 DB_SIM_NAME_STR_LEN = 35; | ||
209 | const S32 DB_SIM_NAME_BUF_SIZE = 36; | ||
210 | const S32 DB_HOST_NAME_STR_LEN = 100; | ||
211 | const S32 DB_HOST_NAME_BUF_SIZE = 101; | ||
212 | const S32 DB_ESTATE_NAME_STR_LEN = 63; | ||
213 | const S32 DB_ESTATE_NAME_BUF_SIZE = DB_ESTATE_NAME_STR_LEN + 1; | ||
214 | |||
215 | // user_note.note | ||
216 | const S32 DB_USER_NOTE_LEN = 1023; | ||
217 | const S32 DB_USER_NOTE_SIZE = 1024; | ||
218 | |||
219 | // pick.name | ||
220 | const S32 DB_PICK_NAME_LEN = 63; | ||
221 | const S32 DB_PICK_NAME_SIZE = 64; | ||
222 | |||
223 | // pick.desc | ||
224 | const S32 DB_PICK_DESC_LEN = 1023; | ||
225 | const S32 DB_PICK_DESC_SIZE = 1024; | ||
226 | |||
227 | #endif // LL_LLDBSTRINGS_H | ||