Lines Matching defs:flag
332 static int GetServiceAttr(const cJSON *curArrItem, Service *curServ, const char *attrName, int flag,
333 int (*processAttr)(Service *curServ, const char *attrName, int value, int flag))
341 curServ->attribute &= ~flag;
345 curServ->attribute |= flag;
349 return processAttr(curServ, attrName, value, flag);
685 int GetCritical(const cJSON *curArrItem, Service *curServ, const char *attrName, int flag)
696 return GetServiceAttr(curArrItem, curServ, attrName, flag, NULL);
705 curServ->attribute &= ~flag;
708 curServ->attribute |= flag;
724 curServ->attribute |= flag;
727 curServ->attribute &= ~flag;
880 static int SetConsoleValue(Service *service, const char *attrName, int value, int flag)
883 UNUSED(flag);
920 static int GetServicePeriod(const cJSON *curArrItem, Service *curServ, const char *attrName, int flag)
952 INIT_ERROR_CHECK(ret == 0, return SERVICE_FAILURE, "Failed to get once flag for service %s", service->name);
954 INIT_ERROR_CHECK(ret == 0, return SERVICE_FAILURE, "Failed to get import flag for service %s", service->name);
956 INIT_ERROR_CHECK(ret == 0, return SERVICE_FAILURE, "Failed to get critical flag for service %s", service->name);
958 INIT_ERROR_CHECK(ret == 0, return SERVICE_FAILURE, "Failed to get disabled flag for service %s", service->name);
976 INIT_ERROR_CHECK(ret == 0, return SERVICE_FAILURE, "Failed to get ondemand flag for service %s", service->name);
978 INIT_ERROR_CHECK(ret == 0, return SERVICE_FAILURE, "Failed to get setuid flag for service %s", service->name);