aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/lldbstrings.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llmessage/lldbstrings.h
parentREADME.txt (diff)
downloadmeta-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.h227
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
42const S32 DB_INV_ITEM_NAME_STR_LEN = 63; // was MAX_ASSET_NAME_LENGTH
43const 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)
48const S32 DB_INV_ITEM_DESC_STR_LEN = 127; // was MAX_ASSET_DESCRIPTION_LENGTH
49const S32 DB_INV_ITEM_DESC_BUF_SIZE = 128; // was ITEM_DESC_SIZE
50
51// groups.name varchar(35)
52const S32 DB_GROUP_NAME_STR_LEN = 35;
53const S32 DB_GROUP_NAME_BUF_SIZE = 36;
54const S32 DB_GROUP_NAME_MIN_LEN = 4;
55
56//group_roles.name
57const U32 DB_GROUP_ROLE_NAME_STR_LEN = 20;
58const U32 DB_GROUP_ROLE_NAME_BUF_SIZE = DB_GROUP_ROLE_NAME_STR_LEN + 1;
59
60//group_roles.title
61const U32 DB_GROUP_ROLE_TITLE_STR_LEN = 20;
62const U32 DB_GROUP_ROLE_TITLE_BUF_SIZE = DB_GROUP_ROLE_TITLE_STR_LEN + 1;
63
64
65// group.charter text
66const S32 DB_GROUP_CHARTER_STR_LEN = 511;
67const S32 DB_GROUP_CHARTER_BUF_SIZE = 512;
68
69// group.officer_title varchar(20)
70// -also-
71// group.member_title varchar(20)
72const S32 DB_GROUP_TITLE_STR_LEN = 20;
73const 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.
77const S32 MAX_MSG_STR_LEN = 1023;
78const S32 MAX_MSG_BUF_SIZE = 1024;
79
80// instant_message.message text
81const S32 DB_IM_MSG_STR_LEN = MAX_MSG_STR_LEN;
82const S32 DB_IM_MSG_BUF_SIZE = MAX_MSG_BUF_SIZE;
83
84// groupnotices
85const S32 DB_GROUP_NOTICE_SUBJ_STR_LEN = 63;
86const S32 DB_GROUP_NOTICE_SUBJ_STR_SIZE = 64;
87const S32 DB_GROUP_NOTICE_MSG_STR_LEN = MAX_MSG_STR_LEN - DB_GROUP_NOTICE_SUBJ_STR_LEN;
88const S32 DB_GROUP_NOTICE_MSG_STR_SIZE = MAX_MSG_BUF_SIZE - DB_GROUP_NOTICE_SUBJ_STR_SIZE;
89
90// log_text_message.message text
91const S32 DB_CHAT_MSG_STR_LEN = MAX_MSG_STR_LEN;
92const S32 DB_CHAT_MSG_BUF_SIZE = MAX_MSG_BUF_SIZE;
93
94// money_stipend.description varchar(254)
95const S32 DB_STIPEND_DESC_STR_LEN = 254;
96const S32 DB_STIPEND_DESC_BUF_SIZE = 255;
97
98// script_email_message.from_email varchar(78)
99const S32 DB_EMAIL_FROM_STR_LEN = 78;
100const S32 DB_EMAIL_FROM_BUF_SIZE = 79;
101
102// script_email_message.subject varchar(72)
103const S32 DB_EMAIL_SUBJECT_STR_LEN = 72;
104const S32 DB_EMAIL_SUBJECT_BUF_SIZE = 73;
105
106// system_globals.motd varchar(254)
107const S32 DB_MOTD_STR_LEN = 254;
108const 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)
115const S32 DB_FULL_NAME_STR_LEN = 63;
116const S32 DB_FULL_NAME_BUF_SIZE = 64; // was USER_NAME_SIZE
117
118// user.username varchar(31)
119const S32 DB_FIRST_NAME_STR_LEN = 31;
120const S32 DB_FIRST_NAME_BUF_SIZE = 32; // was MAX_FIRST_NAME
121
122// user_last_name.name varchar(31)
123const S32 DB_LAST_NAME_STR_LEN = 31;
124const S32 DB_LAST_NAME_BUF_SIZE = 32; // was MAX_LAST_NAME
125
126// user.password varchar(100)
127const S32 DB_USER_PASSWORD_STR_LEN = 100;
128const S32 DB_USER_PASSWORD_BUF_SIZE = 101; // was MAX_PASSWORD
129
130// user.email varchar(254)
131const S32 DB_USER_EMAIL_ADDR_STR_LEN = 254;
132const S32 DB_USER_EMAIL_ADDR_BUF_SIZE = 255;
133
134// user.about text
135const S32 DB_USER_ABOUT_STR_LEN = 511;
136const 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
140const S32 DB_USER_FL_ABOUT_STR_LEN = 254;
141const 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
145const S32 DB_USER_PROFILE_URL_STR_LEN = 254;
146const S32 DB_USER_PROFILE_URL_BUF_SIZE = 255;
147
148// user.want_to varchar(254)
149const S32 DB_USER_WANT_TO_STR_LEN = 254;
150const S32 DB_USER_WANT_TO_BUF_SIZE = 255;
151
152// user.skills varchar(254)
153const S32 DB_USER_SKILLS_STR_LEN = 254;
154const S32 DB_USER_SKILLS_BUF_SIZE = 255;
155
156// user_nv.name varchar(128)
157const S32 DB_NV_NAME_STR_LEN = 128;
158const S32 DB_NV_NAME_BUF_SIZE = 129;
159
160// votes.vote_text varchar(254)
161const S32 DB_VOTE_TEXT_STR_LEN = 254;
162const S32 DB_VOTE_TEXT_BUF_SIZE = 255;
163
164// vpte type text varchar(9)
165const S32 DB_VOTE_TYPE_STR_LEN = 9;
166const S32 DB_VOTE_TYPE_BUF_SIZE = 10;
167
168// vote result text
169const S32 DB_VOTE_RESULT_BUF_LEN = 8;
170const S32 DB_VOTE_RESULT_BUF_SIZE = 9;
171
172// user_start_location.location_name varchar(254)
173const S32 DB_START_LOCATION_STR_LEN = 254;
174const 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
181const S32 DB_BORN_STR_LEN = 15;
182const S32 DB_BORN_BUF_SIZE = 16;
183
184// place.name
185const S32 DB_PLACE_NAME_LEN = 63;
186const S32 DB_PLACE_NAME_SIZE = 64;
187const S32 DB_PARCEL_NAME_LEN = 63;
188const S32 DB_PARCEL_NAME_SIZE = 64;
189
190// place.desc
191const S32 DB_PLACE_DESC_LEN = 255;
192const S32 DB_PLACE_DESC_SIZE = 256;
193const S32 DB_PARCEL_DESC_LEN = 255;
194const S32 DB_PARCEL_DESC_SIZE = 256;
195const S32 DB_PARCEL_MUSIC_URL_LEN = 255;
196const S32 DB_PARCEL_MEDIA_URL_LEN = 255;
197const S32 DB_PARCEL_MUSIC_URL_SIZE = 256;
198
199// date time that is easily human readable
200const S32 DB_DATETIME_STR_LEN = 35;
201const S32 DB_DATETIME_BUF_SIZE = 36;
202
203// date time that isn't easily human readable
204const S32 DB_TERSE_DATETIME_STR_LEN = 15;
205const S32 DB_TERSE_DATETIME_BUF_SIZE = 16;
206
207// indra.simulator constants
208const S32 DB_SIM_NAME_STR_LEN = 35;
209const S32 DB_SIM_NAME_BUF_SIZE = 36;
210const S32 DB_HOST_NAME_STR_LEN = 100;
211const S32 DB_HOST_NAME_BUF_SIZE = 101;
212const S32 DB_ESTATE_NAME_STR_LEN = 63;
213const S32 DB_ESTATE_NAME_BUF_SIZE = DB_ESTATE_NAME_STR_LEN + 1;
214
215// user_note.note
216const S32 DB_USER_NOTE_LEN = 1023;
217const S32 DB_USER_NOTE_SIZE = 1024;
218
219// pick.name
220const S32 DB_PICK_NAME_LEN = 63;
221const S32 DB_PICK_NAME_SIZE = 64;
222
223// pick.desc
224const S32 DB_PICK_DESC_LEN = 1023;
225const S32 DB_PICK_DESC_SIZE = 1024;
226
227#endif // LL_LLDBSTRINGS_H