Lines Matching refs:ggs

103 	if (!s->ggs) return;  in session_setup_g_source()
105 if (s->g_source && s->g_pollfd.fd != s->ggs->fd) { in session_setup_g_source()
116 if (s->ggs->check&GG_CHECK_READ) s->g_pollfd.events|=G_IO_IN; in session_setup_g_source()
117 if (s->ggs->check&GG_CHECK_WRITE) s->g_pollfd.events|=G_IO_OUT; in session_setup_g_source()
119 if (s->g_pollfd.fd != s->ggs->fd) { in session_setup_g_source()
120 s->g_pollfd.fd=s->ggs->fd; in session_setup_g_source()
367 gg_ping(s->ggs); /* send ping, even if server doesn't respond in session_ping()
375 gg_ping(s->ggs); in session_ping()
492 …if (condition&G_IO_ERR) g_warning(N_("Error on connection for %s ,[GGnumber: %i]"),s->jid,s->ggs->… in session_io_handler()
494 g_warning(N_("Hangup on connection for %s ,[GGnumber: %i]"),s->jid,s->ggs->uin); in session_io_handler()
508 event=gg_watch_fd(s->ggs); in session_io_handler()
510 g_warning(N_("Connection broken. Session of %s ,[GGnumber: %i]"),s->jid,s->ggs->uin); in session_io_handler()
517 g_warning(N_("Server closed connection of %s, [GGnumber: %i]"),s->jid,s->ggs->uin); in session_io_handler()
522 g_warning(N_("Login failed for %s ,[GGnumber: %i]"),s->jid,s->ggs->uin); in session_io_handler()
532 g_message(L_("Login succeed for %s ,[GGnumber: %i]"),s->jid,s->ggs->uin); in session_io_handler()
562 gg_userlist_request(s->ggs, GG_USERLIST_GET, NULL); in session_io_handler()
693 if (s->ggs){ in session_destroy()
695 debug("gg_logoff(%p)",s->ggs); in session_destroy()
696 gg_logoff(s->ggs); in session_destroy()
698 gg_free_session(s->ggs); in session_destroy()
820 if (s->ggs) { in session_try_login()
821 gg_free_session(s->ggs); in session_try_login()
822 s->ggs=NULL; in session_try_login()
848 s->ggs=gg_login(&login_params); in session_try_login()
849 if (!s->ggs){ in session_try_login()
944 if (!s->connected || s->ggs==NULL) return -1; in session_send_status()
949 gg_change_status_descr(s->ggs,s->gg_status,s->gg_status_descr); in session_send_status()
952 gg_change_status(s->ggs,s->gg_status); in session_send_status()
1055 if (!s->ggs) return session_try_login(s); in session_set_status()
1085 if (c->gg_notify_type) gg_remove_notify_ex(s->ggs, c->uin, c->gg_notify_type); in session_update_contact()
1086 if (new_notify_type) gg_add_notify_ex(s->ggs, c->uin, new_notify_type); in session_update_contact()
1118 debug("gg_notify_ex(%p,%p,%p,%i)",s->ggs,userlist,types,userlist_len); in session_send_notify()
1119 gg_notify_ex(s->ggs,userlist,types,userlist_len); in session_send_notify()
1150 if (!s->connected || !s->ggs) return -1; in session_send_message()
1156 gg_send_message(s->ggs,chat?GG_CLASS_CHAT:GG_CLASS_MSG,uin, in session_send_message()
1191 g_message(L_("%sGG session: %p"),space,s->ggs); in session_print()
1227 inet_ntoa(*(struct in_addr*)&sess->ggs->server_addr), in session_get_info_string()
1228 sess->ggs->port, in session_get_info_string()