1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Make the textarea_data member of struct terminal opaque

Move the definition of struct textarea_data back to src/viewer/text/textarea.c.
This commit is contained in:
Miciah Dashiel Butler Masters 2007-09-01 12:02:21 +00:00 committed by Miciah Dashiel Butler Masters
parent ac230ebc08
commit a66f6f8c90
2 changed files with 12 additions and 11 deletions

View File

@ -49,16 +49,6 @@ enum term_redrawing_state {
TREDRAW_DELAYED = 2, /**< Do not redraw for now */
};
struct textarea_data {
LIST_HEAD(struct textarea_data);
size_t fc_maxlength;
struct form_state *fs;
struct terminal *term;
struct document_view *doc_view;
struct link *link;
unsigned char *fn;
};
/** This is one of the axis of ELinks' user interaction. struct terminal
* defines the terminal ELinks is running on --- each ELinks instance has
* one. It contains the basic terminal attributes, the settings associated
@ -165,7 +155,8 @@ struct terminal {
/** For communication between instances */
struct terminal_interlink *interlink;
struct textarea_data *textarea_data;
/* Data for textarea_edit(). */
void *textarea_data;
struct term_event_mouse prev_mouse_event;
};

View File

@ -573,6 +573,16 @@ error:
return filename;
}
struct textarea_data {
LIST_HEAD(struct textarea_data);
size_t fc_maxlength;
struct form_state *fs;
struct terminal *term;
struct document_view *doc_view;
struct link *link;
unsigned char *fn;
};
static struct textarea_data *
init_textarea_data(struct terminal *term, struct form_state *fs,
struct document_view *doc_view, struct link *link)