mainloop: constify get_retval functions

This commit is contained in:
Lyndon Brown 2018-05-27 06:39:11 +01:00 committed by Arun Raghavan
parent 277c3735df
commit 9b5077c468
4 changed files with 4 additions and 4 deletions

View file

@ -910,7 +910,7 @@ quit:
return -2; return -2;
} }
int pa_mainloop_get_retval(pa_mainloop *m) { int pa_mainloop_get_retval(const pa_mainloop *m) {
pa_assert(m); pa_assert(m);
return m->retval; return m->retval;

View file

@ -96,7 +96,7 @@ a negative value on error. On success returns the number of source dispatched. *
int pa_mainloop_dispatch(pa_mainloop *m); int pa_mainloop_dispatch(pa_mainloop *m);
/** Return the return value as specified with the main loop's quit() routine. */ /** Return the return value as specified with the main loop's quit() routine. */
int pa_mainloop_get_retval(pa_mainloop *m); int pa_mainloop_get_retval(const pa_mainloop *m);
/** Run a single iteration of the main loop. This is a convenience function /** Run a single iteration of the main loop. This is a convenience function
for pa_mainloop_prepare(), pa_mainloop_poll() and pa_mainloop_dispatch(). for pa_mainloop_prepare(), pa_mainloop_poll() and pa_mainloop_dispatch().

View file

@ -231,7 +231,7 @@ void pa_threaded_mainloop_accept(pa_threaded_mainloop *m) {
pa_cond_signal(m->accept_cond, 0); pa_cond_signal(m->accept_cond, 0);
} }
int pa_threaded_mainloop_get_retval(pa_threaded_mainloop *m) { int pa_threaded_mainloop_get_retval(const pa_threaded_mainloop *m) {
pa_assert(m); pa_assert(m);
return pa_mainloop_get_retval(m->real_mainloop); return pa_mainloop_get_retval(m->real_mainloop);

View file

@ -299,7 +299,7 @@ void pa_threaded_mainloop_accept(pa_threaded_mainloop *m);
/** Return the return value as specified with the main loop's /** Return the return value as specified with the main loop's
* pa_mainloop_quit() routine. */ * pa_mainloop_quit() routine. */
int pa_threaded_mainloop_get_retval(pa_threaded_mainloop *m); int pa_threaded_mainloop_get_retval(const pa_threaded_mainloop *m);
/** Return the main loop abstraction layer vtable for this main loop. /** Return the main loop abstraction layer vtable for this main loop.
* There is no need to free this object as it is owned by the loop * There is no need to free this object as it is owned by the loop