Mercurial > pidgin
annotate libfaim/aim_util.c @ 133:e277d5f0c1dd
[gaim-migrate @ 143]
Let's see if I can remember everything I did:
- Fixed a bug I let slip. If you choose the new option to not play
login sounds when you log in, and then quit before the timeout is
up, it would save that you didn't want login sounds at all.
- Added two new plugin events: event_away and event_buddy_away.
- Made GtkWidget *imaway in away.c and void play(uchar *, int) in
sound.c not static any more (though not referenced in gaim.h).
This is so plugins can use those (and not have to worry about
writing their own sound code).
- Wrote a quick plugin to auto-iconify windows when you go away. I
had just been locally patching my own copy, since I figured it wasn't
worth including as an option. It also demonstrates some of the issues
of deciding between USE_APPLET and not. Perhaps plugins are the way
to go with some things that would otherwise have been options (for
example, the Lag-O-Meter is one of those things that could possibly
have been a plugin instead of hard-coded in).
I think that's everything.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 19 Apr 2000 02:04:30 +0000 |
parents | 68b230f8da5f |
children | 6ced2f1c8b24 |
rev | line source |
---|---|
2 | 1 /* |
2 * | |
3 * | |
4 * | |
5 */ | |
6 | |
7 #include "aim.h" | |
8 | |
9 int aimutil_put8(u_char *buf, u_short data) | |
10 { | |
11 buf[0] = data&0xff; | |
12 return 1; | |
13 } | |
14 | |
15 /* | |
16 * Endian-ness issues here? | |
17 */ | |
18 int aimutil_put16(u_char *buf, u_short data) | |
19 { | |
20 buf[0] = (data>>8)&0xff; | |
21 buf[1] = (data)&0xff; | |
22 return 2; | |
23 } | |
24 | |
25 int aimutil_put32(u_char *buf, u_long data) | |
26 { | |
27 buf[0] = (data>>24)&0xff; | |
28 buf[1] = (data>>16)&0xff; | |
29 buf[2] = (data>>8)&0xff; | |
30 buf[3] = (data)&0xff; | |
31 return 4; | |
32 } | |
33 | |
34 int aimutil_putstr(u_char *dest, u_char *src, int len) | |
35 { | |
36 memcpy(dest, src, len); | |
37 return len; | |
38 } |