blob: 2480cab970232e1f43cba29d7e4b8a36fbf008af [file] [log] [blame]
/*
*
* Copyright (c) 2017 Nest Labs, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <nest/test/trait/CommonStructEStructSchema.h>
namespace Schema {
namespace Nest {
namespace Test {
namespace Trait {
namespace TestCommonTrait {
const nl::FieldDescriptor CommonStructEFieldDescriptors[] =
{
{
NULL, offsetof(CommonStructE, seA), SET_TYPE_AND_FLAGS(nl::SerializedFieldTypeUInt32, 0), 1
},
{
NULL, offsetof(CommonStructE, seB), SET_TYPE_AND_FLAGS(nl::SerializedFieldTypeBoolean, 0), 2
},
};
const nl::SchemaFieldDescriptor CommonStructE::FieldSchema =
{
.mNumFieldDescriptorElements = sizeof(CommonStructEFieldDescriptors)/sizeof(CommonStructEFieldDescriptors[0]),
.mFields = CommonStructEFieldDescriptors,
.mSize = sizeof(CommonStructE)
};
}
}
}
}
}