[xpcom] Add handling for array of booleans (whoops)
authorKalle Vahlman <kalle.vahlman@movial.com>
Wed, 22 Apr 2009 10:08:27 +0000 (13:08 +0300)
committerKalle Vahlman <kalle.vahlman@movial.com>
Wed, 22 Apr 2009 10:08:27 +0000 (13:08 +0300)
xpcom-dbusservice/DBusMarshaling.cpp

index c3bccbb60aed65dada2f6598b7e08001a0875105..0447e201168c9d7bd384840c7376c25f6196c6e8 100644 (file)
@@ -709,6 +709,12 @@ void addArrayDataToIter(JSContext* cx, void *data_ptr, PRUint32 start, PRUint32
 #define ADD_DATA \
             for (PRUint32 i = start; i < count; i++) \
                 dbus_message_iter_append_basic(aIter, aDBusType, data+i)
+        case nsIDataType::VTYPE_BOOL:
+        {
+            PRBool *data = (PRBool *)data_ptr;
+            ADD_DATA;
+            break;
+        }
         case nsIDataType::VTYPE_INT8:
         case nsIDataType::VTYPE_UINT8:
         {