view libfaim/aim_meta.c @ 1345:d6e6fcaa1f39

[gaim-migrate @ 1355] ok. messages work. transports sort of work (you'll sign into them if you have them, but you won't see them and you can't add or remove them). resource is not a part of buddy's names, which is a very very big plus, since it means things will work incredibly well now. at some point the resource may be added back somehow but if it is it won't be part of the name. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 21 Dec 2000 13:54:22 +0000
parents 595ac7759563
children
line wrap: on
line source

/*
 * Administrative things for libfaim.
 *
 * Changes by EWarmenhoven Wed May 31 00:31:52 UTC 2000
 * - I don't wanna use aim_buildcode! :) I'll put the things that get made
 *   by the .sh file into Makefile.am and hopefully that'll work better.
 *  
 */

#include <faim/aim.h>
/* #include <aim_buildcode.h> generated by mkbuildinfo.sh */

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

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

faim_export char *aim_getbuildstring(void)
{
  static char string[100];

  snprintf(string, 99, "%d.%d.%d-%s%s", 
	   FAIM_VERSION_MAJOR,
	   FAIM_VERSION_MINOR,
	   FAIM_VERSION_MINORMINOR,
	   aim_getbuilddate(),
	   aim_getbuildtime());
  return string;
}

#if debug > 0
faim_internal void faimdprintf(int dlevel, const char *format, ...)
{
  if (dlevel >= debug) {
    va_list ap;
    
    va_start(ap, format);
    vfprintf(stderr, format, ap);
    va_end(ap);
  }
  return;
}
#else
faim_internal void faimdprintf(int dlevel, const char *format, ...)
{
  return;
}
#endif