added photo listener
authorChristian Pointner <equinox@realraum.at>
Sun, 14 Mar 2010 17:55:25 +0000 (17:55 +0000)
committerChristian Pointner <equinox@realraum.at>
Sun, 14 Mar 2010 17:55:25 +0000 (17:55 +0000)
powersensordaemon/powersensordaemon.c

index 2d5572b..0a94676 100644 (file)
@@ -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;