33 #include <nsIVariant.h>
34 #include <nsStringGlue.h>
35 #include <xpt_struct.h>
42 #define nsAUTF8String nsACString
43 #define nsUTF8String nsCString
44 #define PromiseFlatUTF8String PromiseFlatCString
108 NS_DECL_NSIWRITABLEVARIANT
189 #define SONGBIRD_VARIANT_CID \
194 { 0x86, 0xb7, 0x4a, 0x14, 0x3c, 0xd1, 0xa1, 0x88 }}
196 #define SONGBIRD_VARIANT_CLASSNAME "sbVariant"
198 #define SONGBIRD_VARIANT_CONTRACTID "@songbirdnest.com/Songbird/Variant;1"
static nsresult ConvertToInt64(const nsDiscriminatedUnion &data, PRInt64 *_retval)
static nsresult SetFromInterface(nsDiscriminatedUnion *data, const nsIID &iid, nsISupports *aValue)
static nsresult ConvertToString(nsDiscriminatedUnion &data, char **_retval)
static nsresult ConvertToFloat(const nsDiscriminatedUnion &data, float *_retval)
static nsresult SetFromWStringWithSize(nsDiscriminatedUnion *data, PRUint32 size, const PRUnichar *aValue)
static nsresult SetFromUint32(nsDiscriminatedUnion *data, PRUint32 aValue)
struct nsDiscriminatedUnion::@10::@11 iface
nsDiscriminatedUnion mData
static nsresult ConvertToStringWithSize(nsDiscriminatedUnion &data, PRUint32 *size, char **str)
static nsresult SetFromStringWithSize(nsDiscriminatedUnion *data, PRUint32 size, const char *aValue)
static nsresult SetToVoid(nsDiscriminatedUnion *data)
struct nsDiscriminatedUnion::@10::@12 array
static nsresult SetFromAUTF8String(nsDiscriminatedUnion *data, const nsACString &aValue)
static nsresult SetFromISupports(nsDiscriminatedUnion *data, nsISupports *aValue)
static nsresult ConvertToWString(const nsDiscriminatedUnion &data, PRUnichar **_retval)
static nsresult SetFromChar(nsDiscriminatedUnion *data, char aValue)
static nsresult SetFromInt32(nsDiscriminatedUnion *data, PRInt32 aValue)
static nsresult SetToEmpty(nsDiscriminatedUnion *data)
static nsresult ConvertToID(const nsDiscriminatedUnion &data, nsID *_retval)
static nsresult SetFromFloat(nsDiscriminatedUnion *data, float aValue)
static nsresult ConvertToInterface(const nsDiscriminatedUnion &data, nsIID **iid, void **iface)
static nsresult ConvertToChar(const nsDiscriminatedUnion &data, char *_retval)
PRUnichar * mWStringValue
static nsresult SetFromUint16(nsDiscriminatedUnion *data, PRUint16 aValue)
static nsresult SetFromID(nsDiscriminatedUnion *data, const nsID &aValue)
static nsresult ConvertToArray(const nsDiscriminatedUnion &data, PRUint16 *type, nsIID *iid, PRUint32 *count, void **ptr)
nsACString * mUTF8StringValue
static nsresult SetFromBool(nsDiscriminatedUnion *data, PRBool aValue)
static nsresult SetFromInt16(nsDiscriminatedUnion *data, PRInt16 aValue)
static nsresult ConvertToUint32(const nsDiscriminatedUnion &data, PRUint32 *_retval)
static nsresult SetFromWChar(nsDiscriminatedUnion *data, PRUnichar aValue)
static nsresult SetFromAString(nsDiscriminatedUnion *data, const nsAString &aValue)
static nsresult ConvertToISupports(const nsDiscriminatedUnion &data, nsISupports **_retval)
static nsresult ConvertToACString(const nsDiscriminatedUnion &data, nsACString &_retval)
nsAString * mAStringValue
static nsresult ConvertToInt16(const nsDiscriminatedUnion &data, PRInt16 *_retval)
static nsresult SetFromUint8(nsDiscriminatedUnion *data, PRUint8 aValue)
nsACString * mCStringValue
union nsDiscriminatedUnion::@10 u
struct nsDiscriminatedUnion::@10::@14 wstr
static nsresult Initialize(nsDiscriminatedUnion *data)
static nsresult SetFromArray(nsDiscriminatedUnion *data, PRUint16 type, const nsIID *iid, PRUint32 count, void *aValue)
static nsresult SetFromString(nsDiscriminatedUnion *data, const char *aValue)
static nsresult ConvertToUint16(const nsDiscriminatedUnion &data, PRUint16 *_retval)
static nsresult Cleanup(nsDiscriminatedUnion *data)
static nsresult ConvertToInt32(const nsDiscriminatedUnion &data, PRInt32 *_retval)
static nsresult SetFromACString(nsDiscriminatedUnion *data, const nsACString &aValue)
static nsresult SetFromInt8(nsDiscriminatedUnion *data, PRUint8 aValue)
static nsresult ConvertToWStringWithSize(const nsDiscriminatedUnion &data, PRUint32 *size, PRUnichar **str)
static nsresult ConvertToBool(const nsDiscriminatedUnion &data, PRBool *_retval)
static nsresult ConvertToUint64(const nsDiscriminatedUnion &data, PRUint64 *_retval)
NS_DECL_ISUPPORTS NS_DECL_NSIVARIANT NS_DECL_NSIWRITABLEVARIANT sbVariant()
static nsresult SetFromUint64(nsDiscriminatedUnion *data, PRUint64 aValue)
static nsresult SetFromDouble(nsDiscriminatedUnion *data, double aValue)
static nsresult ConvertToUint8(const nsDiscriminatedUnion &data, PRUint8 *_retval)
static nsresult SetToEmptyArray(nsDiscriminatedUnion *data)
static nsresult ConvertToInt8(const nsDiscriminatedUnion &data, PRUint8 *_retval)
static nsresult ConvertToAUTF8String(const nsDiscriminatedUnion &data, nsACString &_retval)
nsISupports * mInterfaceValue
static nsresult ConvertToDouble(const nsDiscriminatedUnion &data, double *_retval)
static nsresult SetFromVariant(nsDiscriminatedUnion *data, nsIVariant *aValue)
static nsresult ConvertToWChar(const nsDiscriminatedUnion &data, PRUnichar *_retval)
static nsresult ConvertToAString(const nsDiscriminatedUnion &data, nsAString &_retval)
struct nsDiscriminatedUnion::@10::@13 str
static nsresult SetFromWString(nsDiscriminatedUnion *data, const PRUnichar *aValue)
static nsresult SetFromInt64(nsDiscriminatedUnion *data, PRInt64 aValue)