Ignore:
Timestamp:
2006-09-23T16:18:24Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
172a73f1
Parents:
d8e0484
Message:

Implemented a list of away states, using this for a better set_away(), and
got rid of the double <presence> tag sent because of presence_announce().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber.h

    rd8e0484 r5e202b0  
    3939} jabber_flags_t;
    4040
    41 /* iq.c */
    42 xt_status jabber_pkt_iq( struct xt_node *node, gpointer data );
    43 int jabber_start_iq_auth( struct gaim_connection *gc );
    44 int jabber_get_roster( struct gaim_connection *gc );
    45 
    46 xt_status jabber_pkt_message( struct xt_node *node, gpointer data );
    47 
    48 /* presence.c */
    49 xt_status jabber_pkt_presence( struct xt_node *node, gpointer data );
    50 int presence_announce( struct gaim_connection *gc );
    51 int presence_send( struct gaim_connection *gc, char *to, char *show, char *status );
    52 
    53 /* jabber_util.c */
    54 char *set_eval_resprio( set_t *set, char *value );
    55 char *set_eval_tls( set_t *set, char *value );
    56 struct xt_node *jabber_make_packet( char *name, char *type, char *to, struct xt_node *children );
    57 void jabber_cache_packet( struct gaim_connection *gc, struct xt_node *node );
    58 struct xt_node *jabber_packet_from_cache( struct gaim_connection *gc, char *id );
    59 
    60 /* io.c */
    61 int jabber_write_packet( struct gaim_connection *gc, struct xt_node *node );
    62 int jabber_write( struct gaim_connection *gc, char *buf, int len );
    63 gboolean jabber_connected_plain( gpointer data, gint source, b_input_condition cond );
    64 gboolean jabber_start_stream( struct gaim_connection *gc );
    65 void jabber_end_stream( struct gaim_connection *gc );
    66 
    67 /* sasl.c */
    68 xt_status sasl_pkt_mechanisms( struct xt_node *node, gpointer data );
    69 xt_status sasl_pkt_challenge( struct xt_node *node, gpointer data );
    70 xt_status sasl_pkt_result( struct xt_node *node, gpointer data );
    71 gboolean sasl_supported( struct gaim_connection *gc );
    72 
    7341struct jabber_data
    7442{
     
    8654        char *username;         /* USERNAME@server */
    8755        char *server;           /* username@SERVER -=> server/domain, not hostname */
     56        struct jabber_away_state *away_state;
     57        char *away_message;
    8858       
    8959        struct xt_node *node_cache;
    9060};
    9161
     62struct jabber_away_state
     63{
     64        char code[5];
     65        char *full_name;
     66};
     67
     68/* iq.c */
     69xt_status jabber_pkt_iq( struct xt_node *node, gpointer data );
     70int jabber_start_iq_auth( struct gaim_connection *gc );
     71int jabber_get_roster( struct gaim_connection *gc );
     72
     73xt_status jabber_pkt_message( struct xt_node *node, gpointer data );
     74
     75/* presence.c */
     76xt_status jabber_pkt_presence( struct xt_node *node, gpointer data );
     77int presence_send( struct gaim_connection *gc, char *to, char *show, char *status );
     78
     79/* jabber_util.c */
     80char *set_eval_resprio( set_t *set, char *value );
     81char *set_eval_tls( set_t *set, char *value );
     82struct xt_node *jabber_make_packet( char *name, char *type, char *to, struct xt_node *children );
     83void jabber_cache_packet( struct gaim_connection *gc, struct xt_node *node );
     84struct xt_node *jabber_packet_from_cache( struct gaim_connection *gc, char *id );
     85const struct jabber_away_state *jabber_away_state_by_code( char *code );
     86const struct jabber_away_state *jabber_away_state_by_name( char *name );
     87
     88extern const struct jabber_away_state jabber_away_state_list[];
     89
     90/* io.c */
     91int jabber_write_packet( struct gaim_connection *gc, struct xt_node *node );
     92int jabber_write( struct gaim_connection *gc, char *buf, int len );
     93gboolean jabber_connected_plain( gpointer data, gint source, b_input_condition cond );
     94gboolean jabber_start_stream( struct gaim_connection *gc );
     95void jabber_end_stream( struct gaim_connection *gc );
     96
     97/* sasl.c */
     98xt_status sasl_pkt_mechanisms( struct xt_node *node, gpointer data );
     99xt_status sasl_pkt_challenge( struct xt_node *node, gpointer data );
     100xt_status sasl_pkt_result( struct xt_node *node, gpointer data );
     101gboolean sasl_supported( struct gaim_connection *gc );
     102
    92103#endif
Note: See TracChangeset for help on using the changeset viewer.