src/protocols/oscar/meta.c

Thu, 17 Oct 2002 05:06:15 +0000

author
Duffman
date
Thu, 17 Oct 2002 05:06:15 +0000
changeset 3725
40fe9bcc8c9e
parent 3630
caa952062dc2
permissions
-rw-r--r--

[gaim-migrate @ 3861]
This is better because Duffman says so, oh yeah!

No, but seriously... before these changes, if you got new email on an
account, but didn't read it, gaim would pop up a little "read yo email,
sucka!" notice every once in a while, because AIM sends you a little
email status thing every once in a while. This should alleviate that
problem (by attempting to keep track of the number of unread emails in
your account).

committer: Mark Doliner <markdoliner@pidgin.im>

/*
 * Administrative things for libfaim.
 *
 *  
 */

#define FAIM_INTERNAL
#include <aim.h>

#ifdef _WIN32
#include "win32dep.h"
#endif

faim_export char *aim_getbuilddate(void)
{
	return AIM_BUILDDATE;
}

faim_export char *aim_getbuildtime(void)
{
	return AIM_BUILDTIME;
}

faim_export int aim_getbuildstring(char *buf, int buflen)
{

	snprintf(buf, buflen, "%d.%d.%d-%s%s", 
			FAIM_VERSION_MAJOR,
			FAIM_VERSION_MINOR,
			FAIM_VERSION_MINORMINOR,
			aim_getbuilddate(),
			aim_getbuildtime());

	return 0;
}

faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...)
{
	if (!sess) {
		fprintf(stderr, "faimdprintf: no session! boo! (%d, %s)\n", dlevel, format);
		return;
	}

	if ((dlevel <= sess->debug) && sess->debugcb) {
		va_list ap;

		va_start(ap, format);
		sess->debugcb(sess, dlevel, format, ap);
		va_end(ap);
	}

	return;
}

mercurial