X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Fsilc%2Fsilc.h;fp=apps%2Fsilc%2Fsilc.h;h=828e2c03db10071020eeab1ddfa1dfe740756280;hp=91fe64b9064b8c16e61c260d6b368fb8cfc35763;hb=318d79b391bf6288e3e28c840217a7097f3d0392;hpb=89b07a460a554eb5173fe07f09b8c51c31d53e29 diff --git a/apps/silc/silc.h b/apps/silc/silc.h index 91fe64b9..828e2c03 100644 --- a/apps/silc/silc.h +++ b/apps/silc/silc.h @@ -43,4 +43,37 @@ #define SILC_CLIENT_DEF_PKCS "rsa" #define SILC_CLIENT_DEF_PKCS_LEN 1024 +/* XXX This is entirely temporary structure until UI is written again. */ +typedef struct { + /* Input buffer that holds the characters user types. This is + used only to store the typed chars for a while. */ + SilcBuffer input_buffer; + + /* The SILC client screen object */ + SilcScreen screen; + + /* Current physical window */ + void *current_win; + + SilcClientConnection conn; + + /* Configuration object */ + SilcClientConfig config; + +#ifdef SILC_SIM + /* SIM (SILC Module) table */ + SilcSimContext **sim; + unsigned int sim_count; +#endif + + /* The allocated client */ + SilcClient client; +} *SilcClientInternal; + +/* Macros */ + +#ifndef CTRL +#define CTRL(x) ((x) & 0x1f) /* Ctrl+x */ +#endif + #endif