/[rdesktop]/sourceforge.net/trunk/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/trunk/rdesktop/rdesktop.c

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

revision 1226 by astrand, Wed Apr 12 06:47:24 2006 UTC revision 1255 by stargo, Sun Sep 17 11:04:50 2006 UTC
# Line 179  usage(char *program) Line 179  usage(char *program)
179          fprintf(stderr, "         '-r printer:mydeskjet': enable printer redirection\n");          fprintf(stderr, "         '-r printer:mydeskjet': enable printer redirection\n");
180          fprintf(stderr,          fprintf(stderr,
181                  "             or      mydeskjet=\"HP LaserJet IIIP\" to enter server driver as well\n");                  "             or      mydeskjet=\"HP LaserJet IIIP\" to enter server driver as well\n");
182          fprintf(stderr, "         '-r sound:[local|off|remote]': enable sound redirection\n");  #ifdef WITH_RDPSND
183            fprintf(stderr,
184                    "         '-r sound:[local[:driver[:device]]|off|remote]': enable sound redirection\n");
185          fprintf(stderr, "                     remote would leave sound on server\n");          fprintf(stderr, "                     remote would leave sound on server\n");
186            fprintf(stderr, "                     available drivers for 'local':\n");
187            rdpsnd_show_help();
188    #endif
189          fprintf(stderr,          fprintf(stderr,
190                  "         '-r clipboard:[off|PRIMARYCLIPBOARD|CLIPBOARD]': enable clipboard\n");                  "         '-r clipboard:[off|PRIMARYCLIPBOARD|CLIPBOARD]': enable clipboard\n");
191          fprintf(stderr, "                      redirection.\n");          fprintf(stderr, "                      redirection.\n");
# Line 663  main(int argc, char *argv[]) Line 668  main(int argc, char *argv[])
668    
669                                                          if (str_startswith(optarg, "local"))                                                          if (str_startswith(optarg, "local"))
670  #ifdef WITH_RDPSND  #ifdef WITH_RDPSND
671                                                            {
672                                                                    char *driver = NULL, *options =
673                                                                            NULL;
674    
675                                                                    if ((driver =
676                                                                         next_arg(optarg, ':')))
677                                                                    {
678                                                                            if (!strlen(driver))
679                                                                            {
680                                                                                    driver = NULL;
681                                                                            }
682                                                                            else if ((options =
683                                                                                      next_arg(driver,
684                                                                                               ':')))
685                                                                            {
686                                                                                    if (!strlen
687                                                                                        (options))
688                                                                                            options =
689                                                                                                    NULL;
690                                                                            }
691                                                                    }
692    
693                                                                  g_rdpsnd = True;                                                                  g_rdpsnd = True;
694                                                                    if (!rdpsnd_select_driver
695                                                                        (driver, options))
696                                                                    {
697                                                                            warning("Driver not available\n");
698                                                                    }
699                                                            }
700    
701  #else  #else
702                                                                  warning("Not compiled with sound support\n");                                                                  warning("Not compiled with sound support\n");
703  #endif  #endif
# Line 682  main(int argc, char *argv[]) Line 716  main(int argc, char *argv[])
716                                          {                                          {
717  #ifdef WITH_RDPSND  #ifdef WITH_RDPSND
718                                                  g_rdpsnd = True;                                                  g_rdpsnd = True;
719                                                    if (!rdpsnd_select_driver(NULL, NULL))
720                                                    {
721                                                            warning("No sound-driver available\n");
722                                                    }
723  #else  #else
724                                                  warning("Not compiled with sound support\n");                                                  warning("Not compiled with sound support\n");
725  #endif  #endif

Legend:
Removed from v.1226  
changed lines
  Added in v.1255

  ViewVC Help
Powered by ViewVC 1.1.26