27 #ifndef __SB_VARIANT_UTILS_LIB_H__
28 #define __SB_VARIANT_UTILS_LIB_H__
51 #include <nsIVariant.h>
69 inline nsQueryInterface
74 nsCOMPtr<nsISupports> variantSupports;
75 rv = aVariant->GetAsISupports(getter_AddRefs(variantSupports));
77 return nsQueryInterface(nsnull);
79 return nsQueryInterface(variantSupports);
94 inline nsQueryInterfaceWithError
99 nsCOMPtr<nsISupports> variantSupports;
100 rv = aVariant->GetAsISupports(getter_AddRefs(variantSupports));
103 return nsQueryInterfaceWithError(nsnull, nsnull);
106 return nsQueryInterfaceWithError(variantSupports, aError);
129 nsIVariant* aVariant2,
nsQueryInterface do_VariantQueryInterface(nsIVariant *aVariant)
nsresult sbVariantsEqual(nsIVariant *aVariant1, nsIVariant *aVariant2, PRBool *aEqual)