SwappedValue.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005 Palmsource, Inc.
00003  * 
00004  * This software is licensed as described in the file LICENSE, which
00005  * you should have received as part of this distribution. The terms
00006  * are also available at http://www.openbinder.org/license.html.
00007  * 
00008  * This software consists of voluntary contributions made by many
00009  * individuals. For the exact contribution history, see the revision
00010  * history and logs, available at http://www.openbinder.org
00011  */
00012 
00013 #ifndef _SUPPORT_SWAPPED_VALUE_H
00014 #define _SUPPORT_SWAPPED_VALUE_H
00015 
00022 #include <support/Value.h>
00023 
00024 #if _SUPPORTS_NAMESPACE
00025 namespace palmos {
00026 namespace support {
00027 #endif
00028 
00033 // returns a SValue that is the data and an endianness
00034 status_t create_swappable_value(uint32_t typeCode, void *data, size_t size, SValue *value);
00035 
00036 // returns whether you should swap or not
00037 bool get_swappable_data(const SValue &value, void **data, size_t *size);
00038 
00041 #if _SUPPORTS_NAMESPACE
00042 } } // namespace palmos::render
00043 #endif
00044 
00045 #endif // _SUPPORT_SWAPPED_VALUE_H