common: indent, not logic change

ulab-next-nosound
Jay Sorg 10 years ago
parent ff8275da58
commit 9e1e6d3c3e

@ -27,7 +27,8 @@
* @return pointer to new FIFO or NULL if system out of memory * @return pointer to new FIFO or NULL if system out of memory
*****************************************************************************/ *****************************************************************************/
FIFO *fifo_create() FIFO * APP_CC
fifo_create(void)
{ {
return (FIFO *) g_malloc(sizeof(FIFO), 1); return (FIFO *) g_malloc(sizeof(FIFO), 1);
} }
@ -36,7 +37,8 @@ FIFO *fifo_create()
* Delete specified FIFO * Delete specified FIFO
*****************************************************************************/ *****************************************************************************/
void fifo_delete(FIFO *self) void APP_CC
fifo_delete(FIFO *self)
{ {
USER_DATA *udp; USER_DATA *udp;
@ -85,7 +87,8 @@ void fifo_delete(FIFO *self)
* @return 0 on success, -1 on error * @return 0 on success, -1 on error
*****************************************************************************/ *****************************************************************************/
int fifo_add_item(FIFO *self, void *item) int APP_CC
fifo_add_item(FIFO *self, void *item)
{ {
USER_DATA *udp; USER_DATA *udp;
@ -121,7 +124,8 @@ int fifo_add_item(FIFO *self, void *item)
* @return top item from FIFO or NULL if FIFO is empty * @return top item from FIFO or NULL if FIFO is empty
*****************************************************************************/ *****************************************************************************/
void *fifo_remove_item(FIFO *self) void * APP_CC
fifo_remove_item(FIFO *self)
{ {
void *item; void *item;
USER_DATA *udp; USER_DATA *udp;
@ -155,7 +159,8 @@ void *fifo_remove_item(FIFO *self)
* @return true if FIFO is empty, false otherwise * @return true if FIFO is empty, false otherwise
*****************************************************************************/ *****************************************************************************/
int fifo_is_empty(FIFO *self) int APP_CC
fifo_is_empty(FIFO *self)
{ {
if (!self) if (!self)
return 1; return 1;

@ -21,6 +21,8 @@
#ifndef _FIFO_H #ifndef _FIFO_H
#define _FIFO_H #define _FIFO_H
#include "arch.h"
typedef struct user_data USER_DATA; typedef struct user_data USER_DATA;
struct user_data struct user_data
@ -36,10 +38,10 @@ typedef struct fifo
int auto_free; int auto_free;
} FIFO; } FIFO;
FIFO *fifo_create(); FIFO * APP_CC fifo_create(void);
void fifo_delete(FIFO *self); void APP_CC fifo_delete(FIFO *self);
int fifo_add_item(FIFO *self, void *item); int APP_CC fifo_add_item(FIFO *self, void *item);
void *fifo_remove_item(FIFO *self); void * APP_CC fifo_remove_item(FIFO *self);
int fifo_is_empty(); int APP_CC fifo_is_empty(FIFO *self);
#endif #endif

Loading…
Cancel
Save