libvlc_structures.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*****************************************************************************
  2. * libvlc_structures.h: libvlc_* new external API structures
  3. *****************************************************************************
  4. * Copyright (C) 1998-2008 VLC authors and VideoLAN
  5. * $Id $
  6. *
  7. * Authors: Filippo Carone <[email protected]>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU Lesser General Public License as published by
  11. * the Free Software Foundation; either version 2.1 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with this program; if not, write to the Free Software Foundation,
  21. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  22. *****************************************************************************/
  23. #ifndef LIBVLC_STRUCTURES_H
  24. #define LIBVLC_STRUCTURES_H 1
  25. /**
  26. * \file
  27. * This file defines libvlc_* new external API structures
  28. */
  29. #include <stdint.h>
  30. # ifdef __cplusplus
  31. extern "C" {
  32. # endif
  33. /**
  34. * \ingroup libvlc_core
  35. * @{
  36. */
  37. /** This structure is opaque. It represents a libvlc instance */
  38. typedef struct libvlc_instance_t libvlc_instance_t;
  39. typedef int64_t libvlc_time_t;
  40. /**@} */
  41. /**
  42. * \ingroup libvlc_log
  43. * @{
  44. */
  45. /** This structure is opaque. It represents a libvlc log iterator */
  46. typedef struct libvlc_log_iterator_t libvlc_log_iterator_t;
  47. typedef struct libvlc_log_message_t
  48. {
  49. int i_severity; /* 0=INFO, 1=ERR, 2=WARN, 3=DBG */
  50. const char *psz_type; /* module type */
  51. const char *psz_name; /* module name */
  52. const char *psz_header; /* optional header */
  53. const char *psz_message; /* message */
  54. } libvlc_log_message_t;
  55. /**@} */
  56. # ifdef __cplusplus
  57. }
  58. # endif
  59. #endif