OO style for ProfWin type
This commit is contained in:
@@ -52,6 +52,12 @@ typedef struct prof_win_t {
|
||||
int paged;
|
||||
int unread;
|
||||
int history_shown;
|
||||
void (*print_time)(struct prof_win_t *self, char show_char);
|
||||
void (*print_line)(struct prof_win_t *self, const char * const msg, ...);
|
||||
void (*refresh)(struct prof_win_t *self);
|
||||
void (*presence_colour_on)(struct prof_win_t *self, const char * const presence);
|
||||
void (*presence_colour_off)(struct prof_win_t *self, const char * const presence);
|
||||
void (*show_contact)(struct prof_win_t *self, PContact contact);
|
||||
gboolean (*handle_error_message)(struct prof_win_t *self,
|
||||
const char * const from, const char * const err_msg);
|
||||
} ProfWin;
|
||||
@@ -59,11 +65,4 @@ typedef struct prof_win_t {
|
||||
ProfWin* win_create(const char * const title, int cols, win_type_t type);
|
||||
void win_free(ProfWin *window);
|
||||
|
||||
void win_print_time(ProfWin *window, char show_char);
|
||||
void win_print_line(ProfWin *window, const char * const msg, ...);
|
||||
void win_refresh(ProfWin *window);
|
||||
void win_presence_colour_on(ProfWin *window, const char * const presence);
|
||||
void win_presence_colour_off(ProfWin *window, const char * const presence);
|
||||
void win_show_contact(ProfWin *window, PContact contact);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user