Changeset 0da65d5 for protocols/jabber/jabber.h
- Timestamp:
- 2007-03-31T05:40:45Z (17 years ago)
- Branches:
- master
- Children:
- aef4828
- Parents:
- fa29d093
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.h
rfa29d093 r0da65d5 58 58 struct jabber_data 59 59 { 60 struct gaim_connection *gc;60 struct im_connection *ic; 61 61 62 62 int fd; … … 87 87 }; 88 88 89 typedef xt_status (*jabber_cache_event) ( struct gaim_connection *gc, struct xt_node *node, struct xt_node *orig );89 typedef xt_status (*jabber_cache_event) ( struct im_connection *ic, struct xt_node *node, struct xt_node *orig ); 90 90 91 91 struct jabber_cache_entry … … 137 137 /* iq.c */ 138 138 xt_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 );139 int jabber_init_iq_auth( struct im_connection *ic ); 140 xt_status jabber_pkt_bind_sess( struct im_connection *ic, struct xt_node *node, struct xt_node *orig ); 141 int jabber_get_roster( struct im_connection *ic ); 142 int jabber_get_vcard( struct im_connection *ic, char *bare_jid ); 143 int jabber_add_to_roster( struct im_connection *ic, char *handle, char *name ); 144 int jabber_remove_from_roster( struct im_connection *ic, char *handle ); 145 145 146 146 /* message.c */ … … 149 149 /* presence.c */ 150 150 xt_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 );151 int presence_send_update( struct im_connection *ic ); 152 int presence_send_request( struct im_connection *ic, char *handle, char *request ); 153 153 154 154 /* jabber_util.c */ … … 157 157 struct xt_node *jabber_make_packet( char *name, char *type, char *to, struct xt_node *children ); 158 158 struct 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 );159 void jabber_cache_add( struct im_connection *ic, struct xt_node *node, jabber_cache_event func ); 160 struct xt_node *jabber_cache_get( struct im_connection *ic, char *id ); 161 161 void jabber_cache_entry_free( gpointer entry ); 162 void jabber_cache_clean( struct gaim_connection *gc );162 void jabber_cache_clean( struct im_connection *ic ); 163 163 const struct jabber_away_state *jabber_away_state_by_code( char *code ); 164 164 const struct jabber_away_state *jabber_away_state_by_name( char *name ); 165 void jabber_buddy_ask( struct gaim_connection *gc, char *handle );165 void jabber_buddy_ask( struct im_connection *ic, char *handle ); 166 166 char *jabber_normalize( char *orig ); 167 167 … … 172 172 } get_buddy_flags_t; 173 173 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 );174 struct jabber_buddy *jabber_buddy_add( struct im_connection *ic, char *full_jid ); 175 struct jabber_buddy *jabber_buddy_by_jid( struct im_connection *ic, char *jid, get_buddy_flags_t flags ); 176 int jabber_buddy_remove( struct im_connection *ic, char *full_jid ); 177 int jabber_buddy_remove_bare( struct im_connection *ic, char *bare_jid ); 178 178 179 179 extern const struct jabber_away_state jabber_away_state_list[]; 180 180 181 181 /* 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 );182 int jabber_write_packet( struct im_connection *ic, struct xt_node *node ); 183 int jabber_write( struct im_connection *ic, char *buf, int len ); 184 184 gboolean jabber_connected_plain( gpointer data, gint source, b_input_condition cond ); 185 185 gboolean 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 );186 gboolean jabber_start_stream( struct im_connection *ic ); 187 void jabber_end_stream( struct im_connection *ic ); 188 188 189 189 /* sasl.c */ … … 191 191 xt_status sasl_pkt_challenge( struct xt_node *node, gpointer data ); 192 192 xt_status sasl_pkt_result( struct xt_node *node, gpointer data ); 193 gboolean sasl_supported( struct gaim_connection *gc );193 gboolean sasl_supported( struct im_connection *ic ); 194 194 195 195 #endif
Note: See TracChangeset
for help on using the changeset viewer.