Lines Matching refs:led_path
55 char led_path[128] = {0}; in write_to_led() local
58 len = snprintf(led_path, sizeof(led_path), in write_to_led()
60 if(len >= sizeof(led_path)) in write_to_led()
66 FILE *fp = fopen(led_path,"w"); in write_to_led()
69 fprintf(stderr,"Error:[%s] opening:[%s]\n",strerror(errno),led_path); in write_to_led()
76 fprintf(stderr, "Error:[%s] writing to :[%s]\n",strerror(errno),led_path); in write_to_led()
98 const char *led_path = sd_bus_message_get_path(msg); in led_function_router() local
99 if(led_path == NULL) in led_function_router()
105 char *led_name = get_led_name(led_path); in led_function_router()
108 fprintf(stderr, "Invalid LED name for path :[%s]\n",led_path); in led_function_router()
365 char led_path[128] = {0}; in read_led() local
368 led_len = snprintf(led_path, sizeof(led_path), in read_led()
370 if(led_len >= sizeof(led_path)) in read_led()
376 FILE *fp = fopen(led_path,"rb"); in read_led()
379 fprintf(stderr,"Error:[%s] opening:[%s]\n",strerror(errno),led_path); in read_led()