/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/rdesktop/rdesktop.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/branches/seamlessrdp-branch/rdesktop/rdesktop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 628 by n-ki, Thu Mar 4 12:43:10 2004 UTC revision 630 by n-ki, Fri Mar 5 06:39:00 2004 UTC
# Line 132  usage(char *program) Line 132  usage(char *program)
132          fprintf(stderr, "         '-r printer:mydeskjet': enable printer redirection\n");          fprintf(stderr, "         '-r printer:mydeskjet': enable printer redirection\n");
133          fprintf(stderr,          fprintf(stderr,
134                  "             or      mydeskjet=\"HP LaserJet IIIP\" to enter server driver as well\n");                  "             or      mydeskjet=\"HP LaserJet IIIP\" to enter server driver as well\n");
135          fprintf(stderr, "         '-r sound:[on|off|remote]': enable sound redirection\n");          fprintf(stderr, "         '-r sound:[local|off|remote]': enable sound redirection\n");
136          fprintf(stderr, "                     remote would leave sound on server\n");          fprintf(stderr, "                     remote would leave sound on server\n");
137          fprintf(stderr, "   -0: attach to console\n");          fprintf(stderr, "   -0: attach to console\n");
138          fprintf(stderr, "   -4: use RDP version 4\n");          fprintf(stderr, "   -4: use RDP version 4\n");
# Line 415  main(int argc, char *argv[]) Line 415  main(int argc, char *argv[])
415    
416                                  if (strncmp("sound", optarg, 5) == 0)                                  if (strncmp("sound", optarg, 5) == 0)
417                                  {                                  {
418                                          if (*(optarg + 6) == ':')                                          optarg += 5;
                                         {  
419    
420                                                  if (strncmp("remote", optarg + 7, 6) == 0)                                          if (*optarg == ':')
421                                                          flags |= RDP_LOGON_LEAVE_AUDIO;                                          {
422                                                  else if (strncmp("on", optarg + 7, 2) == 0)                                                  *optarg++;
423                                                    while ((p = next_arg(optarg, ',')))
424                                                  {                                                  {
425                                                            if (strncmp("remote", optarg, 6) == 0)
426                                                                    flags |= RDP_LOGON_LEAVE_AUDIO;
427    
428                                                            if (strncmp("local", optarg, 5) == 0)
429  #ifdef WITH_RDPSND  #ifdef WITH_RDPSND
430                                                          g_rdpsnd = True;                                                                  g_rdpsnd = True;
431  #else  #else
432                                                          warning("Not compiled with sound support");                                                                  warning("Not compiled with sound support");
433  #endif  #endif
434    
435                                                            if (strncmp("off", optarg, 3) == 0)
436                                                                    g_rdpsnd = False;
437    
438                                                            optarg = p;
439                                                  }                                                  }
440                                          }                                          }
441                                          else                                          else

Legend:
Removed from v.628  
changed lines
  Added in v.630

  ViewVC Help
Powered by ViewVC 1.1.26