mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
* remove a lot of compiler warnings introduced by using some new GCC flags
* add typedefs for public structs and enums and drop the struct/enum prefixs from all uses where it makes sense git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@447 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6c512fb5a3
commit
1f0961368f
200 changed files with 3582 additions and 3468 deletions
|
|
@ -29,10 +29,10 @@
|
|||
#include "packet.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
struct pa_packet* pa_packet_new(size_t length) {
|
||||
struct pa_packet *p;
|
||||
pa_packet* pa_packet_new(size_t length) {
|
||||
pa_packet *p;
|
||||
assert(length);
|
||||
p = pa_xmalloc(sizeof(struct pa_packet)+length);
|
||||
p = pa_xmalloc(sizeof(pa_packet)+length);
|
||||
p->ref = 1;
|
||||
p->length = length;
|
||||
p->data = (uint8_t*) (p+1);
|
||||
|
|
@ -40,10 +40,10 @@ struct pa_packet* pa_packet_new(size_t length) {
|
|||
return p;
|
||||
}
|
||||
|
||||
struct pa_packet* pa_packet_new_dynamic(uint8_t* data, size_t length) {
|
||||
struct pa_packet *p;
|
||||
pa_packet* pa_packet_new_dynamic(uint8_t* data, size_t length) {
|
||||
pa_packet *p;
|
||||
assert(data && length);
|
||||
p = pa_xmalloc(sizeof(struct pa_packet));
|
||||
p = pa_xmalloc(sizeof(pa_packet));
|
||||
p->ref = 1;
|
||||
p->length = length;
|
||||
p->data = data;
|
||||
|
|
@ -51,13 +51,13 @@ struct pa_packet* pa_packet_new_dynamic(uint8_t* data, size_t length) {
|
|||
return p;
|
||||
}
|
||||
|
||||
struct pa_packet* pa_packet_ref(struct pa_packet *p) {
|
||||
pa_packet* pa_packet_ref(pa_packet *p) {
|
||||
assert(p && p->ref >= 1);
|
||||
p->ref++;
|
||||
return p;
|
||||
}
|
||||
|
||||
void pa_packet_unref(struct pa_packet *p) {
|
||||
void pa_packet_unref(pa_packet *p) {
|
||||
assert(p && p->ref >= 1);
|
||||
p->ref--;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue