aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llclassifiedflags.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmessage/llclassifiedflags.h')
-rw-r--r--linden/indra/llmessage/llclassifiedflags.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llclassifiedflags.h b/linden/indra/llmessage/llclassifiedflags.h
index 6c15042..9d3e49b 100644
--- a/linden/indra/llmessage/llclassifiedflags.h
+++ b/linden/indra/llmessage/llclassifiedflags.h
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -42,12 +43,23 @@ const U8 CLASSIFIED_FLAG_UPDATE_TIME= 1 << 4;
42const U8 CLASSIFIED_FLAG_AUTO_RENEW = 1 << 5; 43const U8 CLASSIFIED_FLAG_AUTO_RENEW = 1 << 5;
43 44
44const U8 CLASSIFIED_QUERY_FILTER_MATURE = 1 << 1; 45const U8 CLASSIFIED_QUERY_FILTER_MATURE = 1 << 1;
45const U8 CLASSIFIED_QUERY_FILTER_ENABLED = 1 << 2; 46//const U8 CLASSIFIED_QUERY_FILTER_ENABLED = 1 << 2;
46const U8 CLASSIFIED_QUERY_FILTER_PRICE = 1 << 3; 47//const U8 CLASSIFIED_QUERY_FILTER_PRICE = 1 << 3;
48
49// These are new with Adult-enabled viewers (1.23 and later)
50const U8 CLASSIFIED_QUERY_INC_PG = 1 << 2;
51const U8 CLASSIFIED_QUERY_INC_MATURE = 1 << 3;
52const U8 CLASSIFIED_QUERY_INC_ADULT = 1 << 6;
53const U8 CLASSIFIED_QUERY_INC_NEW_VIEWER = (CLASSIFIED_QUERY_INC_PG | CLASSIFIED_QUERY_INC_MATURE | CLASSIFIED_QUERY_INC_ADULT);
47 54
48const S32 MAX_CLASSIFIEDS = 100; 55const S32 MAX_CLASSIFIEDS = 100;
49 56
50ClassifiedFlags pack_classified_flags(BOOL is_mature, BOOL auto_renew); 57// This function is used in AO viewers to pack old query flags into the request
58// so that they can talk to old dataservers properly. When the AO servers are deployed on agni
59// we can revert back to ClassifiedFlags pack_classified_flags and get rider of this one.
60ClassifiedFlags pack_classified_flags_request(BOOL auto_renew, BOOL is_pg, BOOL is_mature, BOOL is_adult);
61
62ClassifiedFlags pack_classified_flags(BOOL auto_renew, BOOL is_pg, BOOL is_mature, BOOL is_adult);
51bool is_cf_mature(ClassifiedFlags flags); 63bool is_cf_mature(ClassifiedFlags flags);
52//bool is_cf_enabled(ClassifiedFlags flags); 64//bool is_cf_enabled(ClassifiedFlags flags);
53bool is_cf_update_time(ClassifiedFlags flags); 65bool is_cf_update_time(ClassifiedFlags flags);