diff options
| author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-26 13:33:44 -0700 |
|---|---|---|
| committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-26 13:33:44 -0700 |
| commit | 56e43c4a3899f9efd4c02f8a2abc0407691b20b5 (patch) | |
| tree | 02f28e8bb0b93e4a1916bb39eba27893aedde777 /common/fifo.c | |
| parent | 27055d5762d23ae3996e7e41ef45ef6454fa2d65 (diff) | |
| parent | 0f9bd232d91a431f68853a308b768e782ab37ff1 (diff) | |
| download | xrdp-proprietary-56e43c4a3899f9efd4c02f8a2abc0407691b20b5.tar.gz xrdp-proprietary-56e43c4a3899f9efd4c02f8a2abc0407691b20b5.zip | |
Merge branch 'devel' of github.com:NeutrinoLabs/xrdp into devel
Diffstat (limited to 'common/fifo.c')
| -rw-r--r-- | common/fifo.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/common/fifo.c b/common/fifo.c index 5e94694d..ebd1ef4d 100644 --- a/common/fifo.c +++ b/common/fifo.c @@ -19,7 +19,7 @@ */ #include "fifo.h" -#include "common/os_calls.h" +#include "os_calls.h" /** * Create new fifo data struct @@ -27,7 +27,8 @@ * @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); } @@ -36,7 +37,8 @@ FIFO *fifo_create() * Delete specified FIFO *****************************************************************************/ -void fifo_delete(FIFO *self) +void APP_CC +fifo_delete(FIFO *self) { USER_DATA *udp; @@ -85,7 +87,8 @@ void fifo_delete(FIFO *self) * @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; @@ -121,7 +124,8 @@ int fifo_add_item(FIFO *self, void *item) * @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; USER_DATA *udp; @@ -155,7 +159,8 @@ void *fifo_remove_item(FIFO *self) * @return true if FIFO is empty, false otherwise *****************************************************************************/ -int fifo_is_empty(FIFO *self) +int APP_CC +fifo_is_empty(FIFO *self) { if (!self) return 1; |
