PageRenderTime 45ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/liblo-0.26/src/method.c

#
C | 35 lines | 14 code | 5 blank | 16 comment | 0 complexity | 22c94bf53932e9d8d360067d1a3c8375 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /*
  2. * Copyright (C) 2004 Steve Harris
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License as
  6. * published by the Free Software Foundation; either version 2.1 of the
  7. * License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * $Id$
  15. */
  16. #include <stdio.h>
  17. #include "lo_types_internal.h"
  18. #include "lo/lo.h"
  19. void lo_method_pp(lo_method m)
  20. {
  21. lo_method_pp_prefix(m, "");
  22. }
  23. void lo_method_pp_prefix(lo_method m, const char *p)
  24. {
  25. printf("%spath: %s\n", p, m->path);
  26. printf("%stypespec: %s\n", p, m->typespec);
  27. printf("%shandler: %p\n", p, m->handler);
  28. printf("%suser-data: %p\n", p, m->user_data);
  29. }
  30. /* vi:set ts=8 sts=4 sw=4: */