X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Firssi%2Fsrc%2Fsilc%2Fcore%2Fsilc-servers.h;h=cc6b94439f1f5ca551c4f7931014df02320b0a67;hb=c257b555225193e54d85daf541d29578b3c93882;hp=c90b84f35ac2c7814cc8cfb6b4de65f433455e82;hpb=d47a87b03b846e2333ef57b2c0d81f1644992964;p=silc.git diff --git a/apps/irssi/src/silc/core/silc-servers.h b/apps/irssi/src/silc/core/silc-servers.h index c90b84f3..cc6b9443 100644 --- a/apps/irssi/src/silc/core/silc-servers.h +++ b/apps/irssi/src/silc/core/silc-servers.h @@ -24,42 +24,31 @@ typedef struct { typedef struct { SilcClientEntry client_entry; SilcClientConnection conn; - uint32 session_id; + SilcUInt32 session_id; char *filepath; bool send; long starttime; /* Start time of transfer */ double kps; /* Kilos per second */ - uint64 offset; /* Current offset */ - uint64 filesize; /* Total file size */ - uint32 percent; /* Percent of current transmission */ + SilcUInt64 offset; /* Current offset */ + SilcUInt64 filesize; /* Total file size */ + SilcUInt32 percent; /* Percent of current transmission */ } *FtpSession; #define STRUCT_SERVER_CONNECT_REC SILC_SERVER_CONNECT_REC typedef struct { #include "server-rec.h" - /* Command sending queue */ - int cmdcount; /* number of commands in `cmdqueue'. Can be more than - there actually is, to make flood control remember - how many messages can be sent before starting the - flood control */ - int cmd_last_split; /* Last command wasn't sent entirely to server. - First item in `cmdqueue' should be re-sent. */ - GSList *cmdqueue; - GTimeVal last_cmd; /* last time command was sent to server */ - - GSList *idles; /* Idle queue - send these commands to server - if there's nothing else to do */ SilcDList ftp_sessions; FtpSession current_session; gpointer chanqueries; SilcClientConnection conn; - uint32 umode; + SilcUInt32 umode; } SILC_SERVER_REC; -SILC_SERVER_REC *silc_server_connect(SILC_SERVER_CONNECT_REC *conn); +SERVER_REC *silc_server_init_connect(SERVER_CONNECT_REC *conn); +void silc_server_connect(SERVER_REC *server); /* Return a string of all channels in server in server->channels_join() format */ @@ -70,5 +59,11 @@ void silc_server_init(void); void silc_server_deinit(void); void silc_server_free_ftp(SILC_SERVER_REC *server, SilcClientEntry client_entry); +bool silc_term_utf8(void); +int silc_send_msg(SILC_SERVER_REC *server, char *nick, char *msg, + int msg_len, SilcMessageFlags flags); +int silc_send_channel(SILC_SERVER_REC *server, + char *channel, char *msg, + SilcMessageFlags flags); #endif