Create interfaces for string-seeded blinking
[darcs-mirror-pidgin-blinklight.debian.git] / src / demoblink.c
index c744795..311a351 100644 (file)
@@ -48,7 +48,11 @@ int main(int argc, char **argv) {
        }
        printf("Using file %s.\n", file);
 
-       blinklight_startblink();
+       if (argc>1) {
+               blinklight_startblink(argv[1]);
+       } else {
+               blinklight_startblink(NULL);
+       }
 
        while (timeout_interval > 0) {
                usleep(timeout_interval*1000);