Integer type name change.
[silc.git] / apps / silc / screen.h
index 25d083b06278c54c619f6351dd2b294a413faf60..1721475b3ed7bd9784dc7f2228dd1689b8720613 100644 (file)
@@ -26,6 +26,9 @@ typedef struct {
   char *nickname;
   char *connection;
   char *channel;
+  char *channel_mode;
+  char *umode;
+  int away;
 } *SilcScreenBottomLine;
 
 typedef struct {
@@ -35,14 +38,14 @@ typedef struct {
   /* Output windows */
   WINDOW **output_win;
   WINDOW **output_stat_line;
-  unsigned int output_win_count;
+  SilcUInt32 output_win_count;
 
   /* Input window at the bottom of the screen */
   WINDOW *input_win;
   unsigned char *input_buffer;
-  unsigned int input_pos;
-  unsigned int input_end;
-  unsigned int cursor_pos;
+  SilcUInt32 input_pos;
+  SilcUInt32 input_end;
+  SilcUInt32 cursor_pos;
   int virtual_window;
 
   /* Bottom line on screen */
@@ -53,8 +56,8 @@ typedef struct {
 
   /* XXX */
   struct upper_status_line {
-    char *program_name;
-    char *program_version;
+    const char *program_name;
+    const char *program_version;
   } u_stat_line;
 
 } SilcScreenObject;
@@ -75,6 +78,9 @@ typedef SilcScreenObject *SilcScreen;
 /* Maximum length of connection name that will be shown on the screen */
 #define SILC_SCREEN_MAX_CONN_LEN 20
 
+/* Maximum length of user mode that will be shown on the screen */
+#define SILC_SCREEN_MAX_UMODE_LEN 20
+
 /* Macros */
 
 /* Macro used to insert typed character into the buffer. The character
@@ -103,6 +109,7 @@ WINDOW *silc_screen_create_output_window(SilcScreen screen);
 WINDOW *silc_screen_add_output_window(SilcScreen screen);
 void silc_screen_create_input_window(SilcScreen screen);
 void silc_screen_init_upper_status_line(SilcScreen screen);
+void silc_screen_print_upper_stat_line(SilcScreen screen);
 void silc_screen_init_output_status_line(SilcScreen screen);
 void silc_screen_print_clock(SilcScreen screen);
 void silc_screen_print_coordinates(SilcScreen screen, int win_index);