library implementation skeleton added
[melted_gui] / src / opts.c
index a5a9868..eb2868b 100644 (file)
@@ -35,6 +35,8 @@ static const struct option long_options [] =
 {
     { "directory",              required_argument,    NULL,   '0'},
     { "player",                 required_argument,    NULL,   '1'},
+    { "library",                required_argument,    NULL,   '2'},
+    { "whois",                  required_argument,    NULL,   '3'},
     { "help",                   no_argument,          NULL,   'h'},
     { 0,                        0,                    0,      0}
 };
@@ -79,6 +81,16 @@ int omnplay_opt(int argc, char** argv, omnplay_instance_t* app)
                 };
                 break;
 
+            /** --library */
+            case '2':
+                strncpy(app->library.filename, optarg, PATH_MAX);
+                break;
+
+            /** --whois */
+            case '3':
+                strncpy(app->library.whois, optarg, PATH_MAX);
+                break;
+
             default:
                 fprintf(stderr, "ERROR: Incorrect argument!\n");
                 return 1;