src/protocols/zephyr/ZPending.c

Sat, 19 Aug 2006 00:24:14 +0000

author
Aaron Sheldon <aaronsheldon@users.sourceforge.net>
date
Sat, 19 Aug 2006 00:24:14 +0000
changeset 14252
d10dda2777a9
parent 11105
842fa517e08c
permissions
-rw-r--r--

[gaim-migrate @ 16854]
Generates the image for the about dialog on demand instead of making it
a stock image which remains in memory forever.

/* This file is part of the Project Athena Zephyr Notification System.
 * It contains source for the ZPending function.
 *
 *	Created by:	Robert French
 *
 *	Copyright (c) 1987 by the Massachusetts Institute of Technology.
 *	For copying and distribution information, see the file
 *	"mit-copyright.h". 
 */

#include "internal.h"

int ZPending()
{
	int retval;
	
	if (ZGetFD() < 0) {
		errno = ZERR_NOPORT;
		return (-1);
	}
	
	if ((retval = Z_ReadEnqueue()) != ZERR_NONE) {
		errno = retval;
		return (-1);
	} 
	
	return(ZQLength());
}

mercurial