barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since 3c7d007a was
e374dee,
checked in by James M. Kretchmar <kretch@mit.edu>, 21 years ago
|
*** empty log message ***
|
-
Property mode set to
100644
|
File size:
912 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 | #if 0 |
---|
38 | faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...) |
---|
39 | { |
---|
40 | return; /* kretch */ |
---|
41 | |
---|
42 | if (!sess) { |
---|
43 | fprintf(stderr, "faimdprintf: no session! boo! (%d, %s)\n", dlevel, format); |
---|
44 | return; |
---|
45 | } |
---|
46 | |
---|
47 | if ((dlevel <= sess->debug) && sess->debugcb) { |
---|
48 | va_list ap; |
---|
49 | |
---|
50 | va_start(ap, format); |
---|
51 | sess->debugcb(sess, dlevel, format, ap); |
---|
52 | va_end(ap); |
---|
53 | } |
---|
54 | |
---|
55 | return; |
---|
56 | } |
---|
57 | |
---|
58 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.