diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llinventory | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to 'linden/indra/llinventory')
-rw-r--r-- | linden/indra/llinventory/llinventory.cpp | 10 | ||||
-rw-r--r-- | linden/indra/llinventory/llinventory.h | 12 | ||||
-rw-r--r-- | linden/indra/llinventory/llpermissions.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llinventory/llpermissions.h | 4 | ||||
-rw-r--r-- | linden/indra/llinventory/llsaleinfo.cpp | 4 | ||||
-rw-r--r-- | linden/indra/llinventory/llsaleinfo.h | 4 |
6 files changed, 19 insertions, 19 deletions
diff --git a/linden/indra/llinventory/llinventory.cpp b/linden/indra/llinventory/llinventory.cpp index 4c58789..8cd0700 100644 --- a/linden/indra/llinventory/llinventory.cpp +++ b/linden/indra/llinventory/llinventory.cpp | |||
@@ -217,7 +217,7 @@ BOOL LLInventoryObject::importLegacyStream(std::istream& input_stream) | |||
217 | 217 | ||
218 | // exportFile should be replaced with exportLegacyStream | 218 | // exportFile should be replaced with exportLegacyStream |
219 | // not sure whether exportLegacyStream(llofstream(fp)) would work, fp may need to get icramented... | 219 | // not sure whether exportLegacyStream(llofstream(fp)) would work, fp may need to get icramented... |
220 | BOOL LLInventoryObject::exportFile(FILE* fp, BOOL) const | 220 | BOOL LLInventoryObject::exportFile(LLFILE* fp, BOOL) const |
221 | { | 221 | { |
222 | char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */ | 222 | char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */ |
223 | fprintf(fp, "\tinv_object\t0\n\t{\n"); | 223 | fprintf(fp, "\tinv_object\t0\n\t{\n"); |
@@ -520,7 +520,7 @@ BOOL LLInventoryItem::unpackMessage(LLMessageSystem* msg, const char* block, S32 | |||
520 | } | 520 | } |
521 | 521 | ||
522 | // virtual | 522 | // virtual |
523 | BOOL LLInventoryItem::importFile(FILE* fp) | 523 | BOOL LLInventoryItem::importFile(LLFILE* fp) |
524 | { | 524 | { |
525 | // *NOTE: Changing the buffer size will require changing the scanf | 525 | // *NOTE: Changing the buffer size will require changing the scanf |
526 | // calls below. | 526 | // calls below. |
@@ -674,7 +674,7 @@ BOOL LLInventoryItem::importFile(FILE* fp) | |||
674 | return success; | 674 | return success; |
675 | } | 675 | } |
676 | 676 | ||
677 | BOOL LLInventoryItem::exportFile(FILE* fp, BOOL include_asset_key) const | 677 | BOOL LLInventoryItem::exportFile(LLFILE* fp, BOOL include_asset_key) const |
678 | { | 678 | { |
679 | char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */ | 679 | char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */ |
680 | fprintf(fp, "\tinv_item\t0\n\t{\n"); | 680 | fprintf(fp, "\tinv_item\t0\n\t{\n"); |
@@ -1429,7 +1429,7 @@ void LLInventoryCategory::unpackMessage(LLMessageSystem* msg, | |||
1429 | } | 1429 | } |
1430 | 1430 | ||
1431 | // virtual | 1431 | // virtual |
1432 | BOOL LLInventoryCategory::importFile(FILE* fp) | 1432 | BOOL LLInventoryCategory::importFile(LLFILE* fp) |
1433 | { | 1433 | { |
1434 | // *NOTE: Changing the buffer size will require changing the scanf | 1434 | // *NOTE: Changing the buffer size will require changing the scanf |
1435 | // calls below. | 1435 | // calls below. |
@@ -1495,7 +1495,7 @@ BOOL LLInventoryCategory::importFile(FILE* fp) | |||
1495 | return TRUE; | 1495 | return TRUE; |
1496 | } | 1496 | } |
1497 | 1497 | ||
1498 | BOOL LLInventoryCategory::exportFile(FILE* fp, BOOL) const | 1498 | BOOL LLInventoryCategory::exportFile(LLFILE* fp, BOOL) const |
1499 | { | 1499 | { |
1500 | char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */ | 1500 | char uuid_str[UUID_STR_LENGTH]; /* Flawfinder: ignore */ |
1501 | fprintf(fp, "\tinv_category\t0\n\t{\n"); | 1501 | fprintf(fp, "\tinv_category\t0\n\t{\n"); |
diff --git a/linden/indra/llinventory/llinventory.h b/linden/indra/llinventory/llinventory.h index b4199db..1bb6b85 100644 --- a/linden/indra/llinventory/llinventory.h +++ b/linden/indra/llinventory/llinventory.h | |||
@@ -101,8 +101,8 @@ public: | |||
101 | 101 | ||
102 | // file support - implemented here so that a minimal information | 102 | // file support - implemented here so that a minimal information |
103 | // set can be transmitted between simulator and viewer. | 103 | // set can be transmitted between simulator and viewer. |
104 | // virtual BOOL importFile(FILE* fp); | 104 | // virtual BOOL importFile(LLFILE* fp); |
105 | virtual BOOL exportFile(FILE* fp, BOOL include_asset_key = TRUE) const; | 105 | virtual BOOL exportFile(LLFILE* fp, BOOL include_asset_key = TRUE) const; |
106 | 106 | ||
107 | virtual BOOL importLegacyStream(std::istream& input_stream); | 107 | virtual BOOL importLegacyStream(std::istream& input_stream); |
108 | virtual BOOL exportLegacyStream(std::ostream& output_stream, BOOL include_asset_key = TRUE) const; | 108 | virtual BOOL exportLegacyStream(std::ostream& output_stream, BOOL include_asset_key = TRUE) const; |
@@ -259,8 +259,8 @@ public: | |||
259 | // we want to detect network mangling somehow. | 259 | // we want to detect network mangling somehow. |
260 | virtual BOOL unpackMessage(LLMessageSystem* msg, const char* block, S32 block_num = 0); | 260 | virtual BOOL unpackMessage(LLMessageSystem* msg, const char* block, S32 block_num = 0); |
261 | // file support | 261 | // file support |
262 | virtual BOOL importFile(FILE* fp); | 262 | virtual BOOL importFile(LLFILE* fp); |
263 | virtual BOOL exportFile(FILE* fp, BOOL include_asset_key = TRUE) const; | 263 | virtual BOOL exportFile(LLFILE* fp, BOOL include_asset_key = TRUE) const; |
264 | 264 | ||
265 | virtual BOOL importLegacyStream(std::istream& input_stream); | 265 | virtual BOOL importLegacyStream(std::istream& input_stream); |
266 | virtual BOOL exportLegacyStream(std::ostream& output_stream, BOOL include_asset_key = TRUE) const; | 266 | virtual BOOL exportLegacyStream(std::ostream& output_stream, BOOL include_asset_key = TRUE) const; |
@@ -319,8 +319,8 @@ public: | |||
319 | bool fromLLSD(LLSD& sd); | 319 | bool fromLLSD(LLSD& sd); |
320 | 320 | ||
321 | // file support | 321 | // file support |
322 | virtual BOOL importFile(FILE* fp); | 322 | virtual BOOL importFile(LLFILE* fp); |
323 | virtual BOOL exportFile(FILE* fp, BOOL include_asset_key = TRUE) const; | 323 | virtual BOOL exportFile(LLFILE* fp, BOOL include_asset_key = TRUE) const; |
324 | 324 | ||
325 | virtual BOOL importLegacyStream(std::istream& input_stream); | 325 | virtual BOOL importLegacyStream(std::istream& input_stream); |
326 | virtual BOOL exportLegacyStream(std::ostream& output_stream, BOOL include_asset_key = TRUE) const; | 326 | virtual BOOL exportLegacyStream(std::ostream& output_stream, BOOL include_asset_key = TRUE) const; |
diff --git a/linden/indra/llinventory/llpermissions.cpp b/linden/indra/llinventory/llpermissions.cpp index 8d800aa..afa2772 100644 --- a/linden/indra/llinventory/llpermissions.cpp +++ b/linden/indra/llinventory/llpermissions.cpp | |||
@@ -544,7 +544,7 @@ void LLPermissions::unpackMessage(LLMessageSystem* msg, const char* block, S32 b | |||
544 | // File support | 544 | // File support |
545 | // | 545 | // |
546 | 546 | ||
547 | BOOL LLPermissions::importFile(FILE* fp) | 547 | BOOL LLPermissions::importFile(LLFILE* fp) |
548 | { | 548 | { |
549 | init(LLUUID::null, LLUUID::null, LLUUID::null, LLUUID::null); | 549 | init(LLUUID::null, LLUUID::null, LLUUID::null, LLUUID::null); |
550 | const S32 BUFSIZE = 16384; | 550 | const S32 BUFSIZE = 16384; |
@@ -648,7 +648,7 @@ BOOL LLPermissions::importFile(FILE* fp) | |||
648 | } | 648 | } |
649 | 649 | ||
650 | 650 | ||
651 | BOOL LLPermissions::exportFile(FILE* fp) const | 651 | BOOL LLPermissions::exportFile(LLFILE* fp) const |
652 | { | 652 | { |
653 | char uuid_str[256]; /* Flawfinder: ignore */ | 653 | char uuid_str[256]; /* Flawfinder: ignore */ |
654 | 654 | ||
diff --git a/linden/indra/llinventory/llpermissions.h b/linden/indra/llinventory/llpermissions.h index 05a30f6..6c858bf 100644 --- a/linden/indra/llinventory/llpermissions.h +++ b/linden/indra/llinventory/llpermissions.h | |||
@@ -302,8 +302,8 @@ public: | |||
302 | void unpackMessage(LLMessageSystem* msg, const char* block, S32 block_num = 0); | 302 | void unpackMessage(LLMessageSystem* msg, const char* block, S32 block_num = 0); |
303 | 303 | ||
304 | // Load/save support | 304 | // Load/save support |
305 | BOOL importFile(FILE* fp); | 305 | BOOL importFile(LLFILE* fp); |
306 | BOOL exportFile(FILE* fp) const; | 306 | BOOL exportFile(LLFILE* fp) const; |
307 | 307 | ||
308 | BOOL importLegacyStream(std::istream& input_stream); | 308 | BOOL importLegacyStream(std::istream& input_stream); |
309 | BOOL exportLegacyStream(std::ostream& output_stream) const; | 309 | BOOL exportLegacyStream(std::ostream& output_stream) const; |
diff --git a/linden/indra/llinventory/llsaleinfo.cpp b/linden/indra/llinventory/llsaleinfo.cpp index bff075b..7aabdda 100644 --- a/linden/indra/llinventory/llsaleinfo.cpp +++ b/linden/indra/llinventory/llsaleinfo.cpp | |||
@@ -84,7 +84,7 @@ U32 LLSaleInfo::getCRC32() const | |||
84 | } | 84 | } |
85 | 85 | ||
86 | 86 | ||
87 | BOOL LLSaleInfo::exportFile(FILE* fp) const | 87 | BOOL LLSaleInfo::exportFile(LLFILE* fp) const |
88 | { | 88 | { |
89 | fprintf(fp, "\tsale_info\t0\n\t{\n"); | 89 | fprintf(fp, "\tsale_info\t0\n\t{\n"); |
90 | fprintf(fp, "\t\tsale_type\t%s\n", lookup(mSaleType)); | 90 | fprintf(fp, "\t\tsale_type\t%s\n", lookup(mSaleType)); |
@@ -158,7 +158,7 @@ BOOL LLSaleInfo::importXML(LLXMLNode* node) | |||
158 | return success; | 158 | return success; |
159 | } | 159 | } |
160 | 160 | ||
161 | BOOL LLSaleInfo::importFile(FILE* fp, BOOL& has_perm_mask, U32& perm_mask) | 161 | BOOL LLSaleInfo::importFile(LLFILE* fp, BOOL& has_perm_mask, U32& perm_mask) |
162 | { | 162 | { |
163 | has_perm_mask = FALSE; | 163 | has_perm_mask = FALSE; |
164 | 164 | ||
diff --git a/linden/indra/llinventory/llsaleinfo.h b/linden/indra/llinventory/llsaleinfo.h index 0af8d89..9aa1024 100644 --- a/linden/indra/llinventory/llsaleinfo.h +++ b/linden/indra/llinventory/llsaleinfo.h | |||
@@ -91,8 +91,8 @@ public: | |||
91 | 91 | ||
92 | 92 | ||
93 | // file serialization | 93 | // file serialization |
94 | BOOL exportFile(FILE* fp) const; | 94 | BOOL exportFile(LLFILE* fp) const; |
95 | BOOL importFile(FILE* fp, BOOL& has_perm_mask, U32& perm_mask); | 95 | BOOL importFile(LLFILE* fp, BOOL& has_perm_mask, U32& perm_mask); |
96 | 96 | ||
97 | BOOL exportLegacyStream(std::ostream& output_stream) const; | 97 | BOOL exportLegacyStream(std::ostream& output_stream) const; |
98 | LLSD asLLSD() const; | 98 | LLSD asLLSD() const; |