+long get_windowid(void *frontend);
+
+/* Things gtkdlg.c needs from pterm.c */
+void *get_window(void *frontend); /* void * to avoid depending on gtk.h */
+
+/* Things pterm.c needs from gtkdlg.c */
+int do_config_box(const char *title, Conf *conf,
+ int midsession, int protcfginfo);
+void fatal_message_box(void *window, char *msg);
+void about_box(void *window);
+void *eventlogstuff_new(void);
+void showeventlog(void *estuff, void *parentwin);
+void logevent_dlg(void *estuff, const char *string);
+int reallyclose(void *frontend);
+
+/* Things pterm.c needs from {ptermm,uxputty}.c */
+char *make_default_wintitle(char *hostname);
+int process_nonoption_arg(char *arg, Conf *conf, int *allow_launch);
+
+/* pterm.c needs this special function in xkeysym.c */
+int keysym_to_unicode(int keysym);