barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since 9c4ec91 was
5e53c4a,
checked in by James M. Kretchmar <kretch@mit.edu>, 21 years ago
|
*** empty log message ***
|
-
Property mode set to
100644
|
File size:
829 bytes
|
Rev | Line | |
---|
[5e53c4a] | 1 | /* |
---|
| 2 | * Administrative things for libfaim. |
---|
| 3 | * |
---|
| 4 | * |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | #define FAIM_INTERNAL |
---|
| 8 | #include <aim.h> |
---|
| 9 | |
---|
| 10 | faim_export char *aim_getbuilddate(void) |
---|
| 11 | { |
---|
| 12 | return AIM_BUILDDATE; |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | faim_export char *aim_getbuildtime(void) |
---|
| 16 | { |
---|
| 17 | return AIM_BUILDTIME; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | faim_export int aim_getbuildstring(char *buf, int buflen) |
---|
| 21 | { |
---|
| 22 | |
---|
| 23 | snprintf(buf, buflen, "%d.%d.%d-%s%s", |
---|
| 24 | FAIM_VERSION_MAJOR, |
---|
| 25 | FAIM_VERSION_MINOR, |
---|
| 26 | FAIM_VERSION_MINORMINOR, |
---|
| 27 | aim_getbuilddate(), |
---|
| 28 | aim_getbuildtime()); |
---|
| 29 | |
---|
| 30 | return 0; |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...) |
---|
| 34 | { |
---|
| 35 | if (!sess) { |
---|
| 36 | fprintf(stderr, "faimdprintf: no session! boo! (%d, %s)\n", dlevel, format); |
---|
| 37 | return; |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | if ((dlevel <= sess->debug) && sess->debugcb) { |
---|
| 41 | va_list ap; |
---|
| 42 | |
---|
| 43 | va_start(ap, format); |
---|
| 44 | sess->debugcb(sess, dlevel, format, ap); |
---|
| 45 | va_end(ap); |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | return; |
---|
| 49 | } |
---|
| 50 | |
---|
Note: See
TracBrowser
for help on using the repository browser.