示例#1
0
static AJ_Status RegisterObjectList()
{
    AJCFG_ObjectList[CONFIG_OBJECT_INDEX].flags &= ~(AJ_OBJ_FLAG_HIDDEN | AJ_OBJ_FLAG_DISABLED);
    AJCFG_ObjectList[CONFIG_OBJECT_INDEX].flags |= AJ_OBJ_FLAG_ANNOUNCED;

    return AJ_RegisterObjectList(AJCFG_ObjectList, AJCFG_OBJECT_LIST_INDEX);
}
示例#2
0
static AJ_Status RegisterObjectList()
{
    uint8_t i = NOTIFICATION_PRODUCER_OBJECTS_INDEX;

    AJNS_Common_RegisterObjects();
    for (; i < NOTIFICATION_PRODUCER_OBJECTS_INDEX + NOTIFICATION_PRODUCER_OBJECTS_COUNT; i++) {
        AJNS_ObjectList[i].flags &= ~(AJ_OBJ_FLAG_HIDDEN | AJ_OBJ_FLAG_DISABLED);
        AJNS_ObjectList[i].flags |= AJ_OBJ_FLAG_ANNOUNCED;
    }

    return AJ_RegisterObjectList(AJNS_ObjectList, AJNS_OBJECT_LIST_INDEX);
}