aRts audio server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.6KB

  1. /*
  2. Copyright (C) 1999 Stefan Westerfeld
  3. stefan@space.twc.de
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15. Permission is also granted to link this program with the Qt
  16. library, treating Qt like a library that normally accompanies the
  17. operating system kernel, whether or not that is in fact the case.
  18. */
  19. #include "common.h"
  20. #include <stdio.h>
  21. using namespace Arts;
  22. int main(int argc, char **argv)
  23. {
  24. Dispatcher dispatcher;
  25. ObjectReference r;
  26. if(argc != 2)
  27. {
  28. fprintf(stderr,"usage: %s <mcop reference>\n",argv[0]);
  29. exit(1);
  30. }
  31. if(!dispatcher.stringToObjectReference(r,argv[1]))
  32. {
  33. fprintf(stderr,
  34. "Can't read this object reference (invalid?)\n");
  35. exit(1);
  36. }
  37. printf("serverID: %s\n",r.serverID.c_str());
  38. printf("objectID: %ld\n\n",r.objectID);
  39. printf("URLs:\n");
  40. std::vector<std::string>::iterator ui;
  41. for(ui = r.urls.begin(); ui != r.urls.end();ui++)
  42. printf(" - %s\n",ui->c_str());
  43. return 0;
  44. }