Lines Matching full:led_function
113 const char *led_function = sd_bus_message_get_member(msg); in led_function_router() local
114 if(led_function == NULL) in led_function_router()
121 if( (strcmp(led_function, "setOn") == 0) || in led_function_router()
122 (strcmp(led_function, "setOff") == 0)) in led_function_router()
124 rc = led_stable_state_function(led_name, led_function); in led_function_router()
127 else if( (strcmp(led_function, "setBlinkFast") == 0) || in led_function_router()
128 (strcmp(led_function, "setBlinkSlow") == 0)) in led_function_router()
130 rc = led_default_blink(led_name, led_function); in led_function_router()
133 else if(strcmp(led_function, "BlinkCustom") == 0) in led_function_router()
138 else if(strcmp(led_function, "GetLedState") == 0) in led_function_router()
153 fprintf(stderr,"Invalid LED function:[%s]\n",led_function); in led_function_router()
165 led_stable_state_function(const char *led_name, const char *led_function) in led_stable_state_function() argument
171 if(strcmp(led_function, "setOff") == 0) in led_stable_state_function()
176 else if(strcmp(led_function, "setOn") == 0) in led_stable_state_function()
182 fprintf(stderr,"Invalid LED stable state operation:[%s] \n",led_function); in led_stable_state_function()
193 fprintf(stderr,"Error disabling blink. Function:[%s]\n", led_function); in led_stable_state_function()
203 fprintf(stderr,"Error driving LED. Function:[%s]\n", led_function); in led_stable_state_function()