Allow retrieving static properties with byte values
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 5 Jan 2009 23:45:06 +0000 (00:45 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 5 Jan 2009 23:45:06 +0000 (00:45 +0100)
src/element.c

index 03bb5f5..ba94705 100644 (file)
@@ -1033,6 +1033,10 @@ gboolean connman_element_get_static_property(struct connman_element *element,
                                *((char **) value) = property->value;
                                found = TRUE;
                                break;
+                       case DBUS_TYPE_BYTE:
+                               memcpy(value, property->value, 1);
+                               found = TRUE;
+                               break;
                        }
                        break;
                }