Ignore:
Timestamp:
2007-03-31T05:40:45Z (17 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
  • protocols/jabber/jabber.h

    rfa29d093 r0da65d5  
    5858struct jabber_data
    5959{
    60         struct gaim_connection *gc;
     60        struct im_connection *ic;
    6161       
    6262        int fd;
     
    8787};
    8888
    89 typedef xt_status (*jabber_cache_event) ( struct gaim_connection *gc, struct xt_node *node, struct xt_node *orig );
     89typedef xt_status (*jabber_cache_event) ( struct im_connection *ic, struct xt_node *node, struct xt_node *orig );
    9090
    9191struct jabber_cache_entry
     
    137137/* iq.c */
    138138xt_status jabber_pkt_iq( struct xt_node *node, gpointer data );
    139 int jabber_init_iq_auth( struct gaim_connection *gc );
    140 xt_status jabber_pkt_bind_sess( struct gaim_connection *gc, struct xt_node *node, struct xt_node *orig );
    141 int jabber_get_roster( struct gaim_connection *gc );
    142 int jabber_get_vcard( struct gaim_connection *gc, char *bare_jid );
    143 int jabber_add_to_roster( struct gaim_connection *gc, char *handle, char *name );
    144 int jabber_remove_from_roster( struct gaim_connection *gc, char *handle );
     139int jabber_init_iq_auth( struct im_connection *ic );
     140xt_status jabber_pkt_bind_sess( struct im_connection *ic, struct xt_node *node, struct xt_node *orig );
     141int jabber_get_roster( struct im_connection *ic );
     142int jabber_get_vcard( struct im_connection *ic, char *bare_jid );
     143int jabber_add_to_roster( struct im_connection *ic, char *handle, char *name );
     144int jabber_remove_from_roster( struct im_connection *ic, char *handle );
    145145
    146146/* message.c */
     
    149149/* presence.c */
    150150xt_status jabber_pkt_presence( struct xt_node *node, gpointer data );
    151 int presence_send_update( struct gaim_connection *gc );
    152 int presence_send_request( struct gaim_connection *gc, char *handle, char *request );
     151int presence_send_update( struct im_connection *ic );
     152int presence_send_request( struct im_connection *ic, char *handle, char *request );
    153153
    154154/* jabber_util.c */
     
    157157struct xt_node *jabber_make_packet( char *name, char *type, char *to, struct xt_node *children );
    158158struct xt_node *jabber_make_error_packet( struct xt_node *orig, char *err_cond, char *err_type );
    159 void jabber_cache_add( struct gaim_connection *gc, struct xt_node *node, jabber_cache_event func );
    160 struct xt_node *jabber_cache_get( struct gaim_connection *gc, char *id );
     159void jabber_cache_add( struct im_connection *ic, struct xt_node *node, jabber_cache_event func );
     160struct xt_node *jabber_cache_get( struct im_connection *ic, char *id );
    161161void jabber_cache_entry_free( gpointer entry );
    162 void jabber_cache_clean( struct gaim_connection *gc );
     162void jabber_cache_clean( struct im_connection *ic );
    163163const struct jabber_away_state *jabber_away_state_by_code( char *code );
    164164const struct jabber_away_state *jabber_away_state_by_name( char *name );
    165 void jabber_buddy_ask( struct gaim_connection *gc, char *handle );
     165void jabber_buddy_ask( struct im_connection *ic, char *handle );
    166166char *jabber_normalize( char *orig );
    167167
     
    172172} get_buddy_flags_t;
    173173
    174 struct jabber_buddy *jabber_buddy_add( struct gaim_connection *gc, char *full_jid );
    175 struct jabber_buddy *jabber_buddy_by_jid( struct gaim_connection *gc, char *jid, get_buddy_flags_t flags );
    176 int jabber_buddy_remove( struct gaim_connection *gc, char *full_jid );
    177 int jabber_buddy_remove_bare( struct gaim_connection *gc, char *bare_jid );
     174struct jabber_buddy *jabber_buddy_add( struct im_connection *ic, char *full_jid );
     175struct jabber_buddy *jabber_buddy_by_jid( struct im_connection *ic, char *jid, get_buddy_flags_t flags );
     176int jabber_buddy_remove( struct im_connection *ic, char *full_jid );
     177int jabber_buddy_remove_bare( struct im_connection *ic, char *bare_jid );
    178178
    179179extern const struct jabber_away_state jabber_away_state_list[];
    180180
    181181/* io.c */
    182 int jabber_write_packet( struct gaim_connection *gc, struct xt_node *node );
    183 int jabber_write( struct gaim_connection *gc, char *buf, int len );
     182int jabber_write_packet( struct im_connection *ic, struct xt_node *node );
     183int jabber_write( struct im_connection *ic, char *buf, int len );
    184184gboolean jabber_connected_plain( gpointer data, gint source, b_input_condition cond );
    185185gboolean jabber_connected_ssl( gpointer data, void *source, b_input_condition cond );
    186 gboolean jabber_start_stream( struct gaim_connection *gc );
    187 void jabber_end_stream( struct gaim_connection *gc );
     186gboolean jabber_start_stream( struct im_connection *ic );
     187void jabber_end_stream( struct im_connection *ic );
    188188
    189189/* sasl.c */
     
    191191xt_status sasl_pkt_challenge( struct xt_node *node, gpointer data );
    192192xt_status sasl_pkt_result( struct xt_node *node, gpointer data );
    193 gboolean sasl_supported( struct gaim_connection *gc );
     193gboolean sasl_supported( struct im_connection *ic );
    194194
    195195#endif
Note: See TracChangeset for help on using the changeset viewer.