X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mysql_selector.c;h=a2a5bcddaf8b031cb10a02660285f9aa93510b36;hp=7a3b0a7d9c5b99d55c3e094ed497126805f927f2;hb=a10ece92d0501ad9b803dcbac0b455af9fb7baa5;hpb=cb975a0978aec84c4710037ddb407737d455d1d4 diff --git a/mysql_selector.c b/mysql_selector.c index 7a3b0a7d..a2a5bcdd 100644 --- a/mysql_selector.c +++ b/mysql_selector.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1999-2006 Andre Noll + * Copyright (C) 1999-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ /** \endcond */ #include "server.cmdline.h" #include "server.h" -#include "afs.h" +#include "vss.h" #include "db.h" #include #include @@ -113,7 +113,7 @@ static struct server_command cmds[] = { { .name = "cs", .handler = com_cs, -.perms = AFS_WRITE | DB_READ | DB_WRITE, +.perms = VSS_WRITE | DB_READ | DB_WRITE, .description = "change stream", .synopsis = "cs [s]", .help = @@ -124,7 +124,7 @@ static struct server_command cmds[] = { { .name = "csp", .handler = com_cs, -.perms = AFS_WRITE | DB_READ, +.perms = VSS_WRITE | DB_READ, .description = "change stream and play", .synopsis = "csp s", .help = @@ -289,7 +289,7 @@ static struct server_command cmds[] = { { .name = "ns", .handler = com_ps, -.perms = AFS_WRITE | DB_READ | DB_WRITE, +.perms = VSS_WRITE | DB_READ | DB_WRITE, .description = "change to next stream", .synopsis = "ns", .help = @@ -377,7 +377,7 @@ static struct server_command cmds[] = { { .name = "ps", .handler = com_ps, -.perms = AFS_WRITE | DB_READ | DB_WRITE, +.perms = VSS_WRITE | DB_READ | DB_WRITE, .description = "change to previous stream", .synopsis = "ps", .help = @@ -2074,9 +2074,9 @@ static int com_cs(int fd, int argc, char *argv[]) } if (csp) { mmd_lock(); - mmd->new_afs_status_flags |= AFS_PLAYING; + mmd->new_vss_status_flags |= VSS_PLAYING; if (stream_change) - mmd->new_afs_status_flags |= AFS_NEXT; + mmd->new_vss_status_flags |= VSS_NEXT; mmd_unlock(); } ret = 1;