From: Christian Pointner Date: Sun, 14 Mar 2010 17:55:25 +0000 (+0000) Subject: added photo listener X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=9db6a57b5f7aec4f91dda128f092d05d574ae358;p=svn42.git added photo listener --- diff --git a/powersensordaemon/powersensordaemon.c b/powersensordaemon/powersensordaemon.c index 2d5572b..0a94676 100644 --- a/powersensordaemon/powersensordaemon.c +++ b/powersensordaemon/powersensordaemon.c @@ -382,13 +382,17 @@ int process_tty(read_buffer_t* buffer, int tty_fd, cmd_t **cmd_q, client_t* clie } if(!strncmp(buffer->buf, "PanicButton", 11)) { - SEND_TO_LISTENER(button_listener, "panic buttont", cmd_fd, buffer->buf); + SEND_TO_LISTENER(button_listener, "panic button", cmd_fd, buffer->buf); } if(!strncmp(buffer->buf, "Temp ", 5)) { SEND_TO_LISTENER(temp_listener, "", cmd_fd, buffer->buf); } + if(!strncmp(buffer->buf, "Photo: ", 5)) { + SEND_TO_LISTENER(photo_listener, "", cmd_fd, buffer->buf); + } + cmd_pop(cmd_q); buffer->offset = 0; return 0;