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