mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Fix up according to Coding Style
Only whitespace changes in here
This commit is contained in:
parent
5715b2af30
commit
ecf09f2cd6
60 changed files with 297 additions and 418 deletions
|
|
@ -174,8 +174,7 @@ static int rsa_encrypt(uint8_t *text, int len, uint8_t *res) {
|
|||
return size;
|
||||
}
|
||||
|
||||
static int aes_encrypt(pa_raop_client* c, uint8_t *data, int size)
|
||||
{
|
||||
static int aes_encrypt(pa_raop_client* c, uint8_t *data, int size) {
|
||||
uint8_t *buf;
|
||||
int i=0, j;
|
||||
|
||||
|
|
@ -194,8 +193,7 @@ static int aes_encrypt(pa_raop_client* c, uint8_t *data, int size)
|
|||
return i;
|
||||
}
|
||||
|
||||
static inline void rtrimchar(char *str, char rc)
|
||||
{
|
||||
static inline void rtrimchar(char *str, char rc) {
|
||||
char *sp = str + strlen(str) - 1;
|
||||
while (sp >= str && *sp == rc) {
|
||||
*sp = '\0';
|
||||
|
|
@ -232,8 +230,7 @@ static void on_connection(pa_socket_client *sc, pa_iochannel *io, void *userdata
|
|||
c->callback(c->fd, c->userdata);
|
||||
}
|
||||
|
||||
static void rtsp_cb(pa_rtsp_client *rtsp, pa_rtsp_state state, pa_headerlist* headers, void *userdata)
|
||||
{
|
||||
static void rtsp_cb(pa_rtsp_client *rtsp, pa_rtsp_state state, pa_headerlist* headers, void *userdata) {
|
||||
pa_raop_client* c = userdata;
|
||||
pa_assert(c);
|
||||
pa_assert(rtsp);
|
||||
|
|
@ -368,8 +365,7 @@ static void rtsp_cb(pa_rtsp_client *rtsp, pa_rtsp_state state, pa_headerlist* he
|
|||
}
|
||||
}
|
||||
|
||||
pa_raop_client* pa_raop_client_new(pa_core *core, const char* host)
|
||||
{
|
||||
pa_raop_client* pa_raop_client_new(pa_core *core, const char* host) {
|
||||
pa_raop_client* c = pa_xnew0(pa_raop_client, 1);
|
||||
|
||||
pa_assert(core);
|
||||
|
|
@ -387,8 +383,7 @@ pa_raop_client* pa_raop_client_new(pa_core *core, const char* host)
|
|||
}
|
||||
|
||||
|
||||
void pa_raop_client_free(pa_raop_client* c)
|
||||
{
|
||||
void pa_raop_client_free(pa_raop_client* c) {
|
||||
pa_assert(c);
|
||||
|
||||
if (c->rtsp)
|
||||
|
|
@ -398,8 +393,7 @@ void pa_raop_client_free(pa_raop_client* c)
|
|||
}
|
||||
|
||||
|
||||
int pa_raop_connect(pa_raop_client* c)
|
||||
{
|
||||
int pa_raop_connect(pa_raop_client* c) {
|
||||
char *sci;
|
||||
struct {
|
||||
uint32_t a;
|
||||
|
|
@ -433,8 +427,7 @@ int pa_raop_connect(pa_raop_client* c)
|
|||
}
|
||||
|
||||
|
||||
int pa_raop_flush(pa_raop_client* c)
|
||||
{
|
||||
int pa_raop_flush(pa_raop_client* c) {
|
||||
pa_assert(c);
|
||||
|
||||
pa_rtsp_flush(c->rtsp, c->seq, c->rtptime);
|
||||
|
|
@ -442,8 +435,7 @@ int pa_raop_flush(pa_raop_client* c)
|
|||
}
|
||||
|
||||
|
||||
int pa_raop_client_set_volume(pa_raop_client* c, pa_volume_t volume)
|
||||
{
|
||||
int pa_raop_client_set_volume(pa_raop_client* c, pa_volume_t volume) {
|
||||
int rv;
|
||||
double db;
|
||||
char *param;
|
||||
|
|
@ -465,8 +457,7 @@ int pa_raop_client_set_volume(pa_raop_client* c, pa_volume_t volume)
|
|||
}
|
||||
|
||||
|
||||
int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchunk* encoded)
|
||||
{
|
||||
int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchunk* encoded) {
|
||||
uint16_t len;
|
||||
size_t bufmax;
|
||||
uint8_t *bp, bpos;
|
||||
|
|
@ -548,16 +539,14 @@ int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchun
|
|||
}
|
||||
|
||||
|
||||
void pa_raop_client_set_callback(pa_raop_client* c, pa_raop_client_cb_t callback, void *userdata)
|
||||
{
|
||||
void pa_raop_client_set_callback(pa_raop_client* c, pa_raop_client_cb_t callback, void *userdata) {
|
||||
pa_assert(c);
|
||||
|
||||
c->callback = callback;
|
||||
c->userdata = userdata;
|
||||
}
|
||||
|
||||
void pa_raop_client_set_closed_callback(pa_raop_client* c, pa_raop_client_closed_cb_t callback, void *userdata)
|
||||
{
|
||||
void pa_raop_client_set_closed_callback(pa_raop_client* c, pa_raop_client_closed_cb_t callback, void *userdata) {
|
||||
pa_assert(c);
|
||||
|
||||
c->closed_callback = callback;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue