Changeset 0da65d5 for query.c


Ignore:
Timestamp:
2007-03-31T05:40:45Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
aef4828
Parents:
fa29d093
Message:

s/gaim_connection/im_connection/ and some other minor API changes. The rest
will come tomorrow. It compiles, I'll leave the real testing up to someone
else. ;-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • query.c

    rfa29d093 r0da65d5  
    3030static query_t *query_default( irc_t *irc );
    3131
    32 query_t *query_add( irc_t *irc, struct gaim_connection *gc, char *question, void *yes, void *no, void *data )
     32query_t *query_add( irc_t *irc, struct im_connection *ic, char *question, void *yes, void *no, void *data )
    3333{
    3434        query_t *q = g_new0( query_t, 1 );
    3535       
    36         q->gc = gc;
     36        q->ic = ic;
    3737        q->question = g_strdup( question );
    3838        q->yes = yes;
     
    9797}
    9898
    99 void query_del_by_gc( irc_t *irc, struct gaim_connection *gc )
     99void query_del_by_conn( irc_t *irc, struct im_connection *ic )
    100100{
    101101        query_t *q, *n, *def;
     
    107107        while( q )
    108108        {
    109                 if( q->gc == gc )
     109                if( q->ic == ic )
    110110                {
    111111                        n = q->next;
     
    122122       
    123123        if( count > 0 )
    124                 serv_got_crap( gc, "Flushed %d unanswered question(s) for this connection.", count );
     124                serv_got_crap( ic, "Flushed %d unanswered question(s) for this connection.", count );
    125125       
    126126        q = query_default( irc );
     
    140140        if( ans )
    141141        {
    142                 serv_got_crap( q->gc, "Accepted: %s", q->question );
     142                serv_got_crap( q->ic, "Accepted: %s", q->question );
    143143                q->yes( NULL, q->data );
    144144        }
    145145        else
    146146        {
    147                 serv_got_crap( q->gc, "Rejected: %s", q->question );
     147                serv_got_crap( q->ic, "Rejected: %s", q->question );
    148148                q->no( NULL, q->data );
    149149        }
     
    158158static void query_display( irc_t *irc, query_t *q )
    159159{
    160         if( q->gc )
     160        if( q->ic )
    161161        {
    162                 serv_got_crap( q->gc, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question );
     162                serv_got_crap( q->ic, "New request: %s\nYou can use the \2yes\2/\2no\2 commands to accept/reject this request.", q->question );
    163163        }
    164164        else
Note: See TracChangeset for help on using the changeset viewer.