FireBurn

Untitled

Sep 17th, 2019
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. diff -u /usr/include/pulse/stream.h stream.h
  2. --- /usr/include/pulse/stream.h 2019-09-18 00:31:48.345326026 +0100
  3. +++ stream.h 2019-09-18 00:31:51.461294746 +0100
  4. @@ -342,17 +342,17 @@
  5. pa_stream *pa_stream_ref(pa_stream *s);
  6.  
  7. /** Return the current state of the stream. */
  8. -pa_stream_state_t pa_stream_get_state(pa_stream *p);
  9. +pa_stream_state_t pa_stream_get_state(const pa_stream *p);
  10.  
  11. /** Return the context this stream is attached to. */
  12. -pa_context* pa_stream_get_context(pa_stream *p);
  13. +pa_context* pa_stream_get_context(const pa_stream *p);
  14.  
  15. /** Return the sink input resp.\ source output index this stream is
  16. * identified in the server with. This is useful with the
  17. * introspection functions such as pa_context_get_sink_input_info()
  18. * or pa_context_get_source_output_info(). This returns PA_INVALID_INDEX
  19. * on failure. */
  20. -uint32_t pa_stream_get_index(pa_stream *s);
  21. +uint32_t pa_stream_get_index(const pa_stream *s);
  22.  
  23. /** Return the index of the sink or source this stream is connected to
  24. * in the server. This is useful with the introspection
  25. @@ -363,7 +363,7 @@
  26. * it is recommended to use pa_stream_set_moved_callback() to be notified
  27. * about this. This function will return with PA_INVALID_INDEX on failure,
  28. * including the being server older than 0.9.8. \since 0.9.8 */
  29. -uint32_t pa_stream_get_device_index(pa_stream *s);
  30. +uint32_t pa_stream_get_device_index(const pa_stream *s);
  31.  
  32. /** Return the name of the sink or source this stream is connected to
  33. * in the server. This is useful with the introspection
  34. @@ -374,17 +374,17 @@
  35. * it is recommended to use pa_stream_set_moved_callback() to be notified
  36. * about this. This function will fail when the server is older than
  37. * 0.9.8. \since 0.9.8 */
  38. -const char *pa_stream_get_device_name(pa_stream *s);
  39. +const char *pa_stream_get_device_name(const pa_stream *s);
  40.  
  41. /** Return 1 if the sink or source this stream is connected to has
  42. * been suspended. This will return 0 if not, and a negative value on
  43. * error. This function will return with -PA_ERR_NOTSUPPORTED when the
  44. * server is older than 0.9.8. \since 0.9.8 */
  45. -int pa_stream_is_suspended(pa_stream *s);
  46. +int pa_stream_is_suspended(const pa_stream *s);
  47.  
  48. /** Return 1 if the this stream has been corked. This will return 0 if
  49. * not, and a negative value on error. \since 0.9.11 */
  50. -int pa_stream_is_corked(pa_stream *s);
  51. +int pa_stream_is_corked(const pa_stream *s);
  52.  
  53. /** Connect the stream to a sink. It is strongly recommended to pass
  54. * NULL in both \a dev and \a volume and to set neither
  55. @@ -566,12 +566,12 @@
  56. *
  57. * (size_t) -1 is returned on error.
  58. */
  59. -size_t pa_stream_writable_size(pa_stream *p);
  60. +size_t pa_stream_writable_size(const pa_stream *p);
  61.  
  62. /** Return the number of bytes that may be read using pa_stream_peek().
  63. *
  64. * (size_t) -1 is returned on error. */
  65. -size_t pa_stream_readable_size(pa_stream *p);
  66. +size_t pa_stream_readable_size(const pa_stream *p);
  67.  
  68. /** Drain a playback stream. Use this for notification when the
  69. * playback buffer is empty after playing all the audio in the buffer.
  70. @@ -602,7 +602,7 @@
  71. * known (e.g.\ if no underflow has occurred, or server is older than 1.0).
  72. * Can be used inside the underflow callback to get information about the current underflow.
  73. * (Only for playback streams) \since 1.0 */
  74. -int64_t pa_stream_get_underflow_index(pa_stream *p);
  75. +int64_t pa_stream_get_underflow_index(const pa_stream *p);
  76.  
  77. /** Set the callback function that is called when a buffer underflow happens. (Only for playback streams) */
  78. void pa_stream_set_underflow_callback(pa_stream *p, pa_stream_notify_cb_t cb, void *userdata);
  79. @@ -751,7 +751,7 @@
  80. const pa_channel_map* pa_stream_get_channel_map(pa_stream *s);
  81.  
  82. /** Return a pointer to the stream's format. \since 1.0 */
  83. -const pa_format_info* pa_stream_get_format_info(pa_stream *s);
  84. +const pa_format_info* pa_stream_get_format_info(const pa_stream *s);
  85.  
  86. /** Return the per-stream server-side buffer metrics of the
  87. * stream. Only valid after the stream has been connected successfully
  88. @@ -801,7 +801,7 @@
  89. /** Return the sink input index previously set with
  90. * pa_stream_set_monitor_stream(). Returns PA_INVALID_INDEX
  91. * on failure. \since 0.9.11 */
  92. -uint32_t pa_stream_get_monitor_stream(pa_stream *s);
  93. +uint32_t pa_stream_get_monitor_stream(const pa_stream *s);
  94.  
  95. PA_C_DECL_END
Advertisement
Add Comment
Please, Sign In to add comment