diff options
author | VMiklos <vmiklos@frugalware.org> | 2007-09-21 16:16:48 +0200 |
---|---|---|
committer | VMiklos <vmiklos@frugalware.org> | 2007-09-21 16:16:48 +0200 |
commit | 368861e615827f27fb4897dd378b7ac0ffaa2176 (patch) | |
tree | cb8557cf0aa7fd4b7d65d562c07205d8e1b5d6cc | |
parent | 8de38e9b1ec123ad0c73e0db1918eb06b1af3388 (diff) |
skype_data struct: some more comments
also renmae r_inpa to bfd
-rw-r--r-- | skype/skype.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/skype/skype.c b/skype/skype.c index 6aa7259d..dc470749 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -47,8 +47,12 @@ struct skype_data { struct im_connection *ic; char *username; + /* The effective file descriptor. We store it here so any function can + * write() to it. */ int fd; - int r_inpa; + /* File descriptor returned by bitlbee. we store it so we know when + * we're connected and when we aren't. */ + int bfd; /* When we receive a new message id, we query the handle, then the * body. Store the handle here so that we imcb_buddy_msg() when we got * the body. */ @@ -345,8 +349,8 @@ gboolean skype_start_stream( struct im_connection *ic ) if(!sd) return FALSE; - if( sd->r_inpa <= 0 ) - sd->r_inpa = b_input_add( sd->fd, GAIM_INPUT_READ, skype_read_callback, ic ); + if( sd->bfd <= 0 ) + sd->bfd = b_input_add( sd->fd, GAIM_INPUT_READ, skype_read_callback, ic ); /* This will download all buddies. */ buf = g_strdup_printf("SEARCH FRIENDS\n"); |