From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver] / utils / textclient.h
1 /* xscreensaver, Copyright (c) 2012-2016 Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  *
11  * Running "xscreensaver-text" and returning bytes from it.
12  */
13
14 #ifndef __TEXTCLIENT_H__
15 #define __TEXTCLIENT_H__
16
17 # ifdef USE_IPHONE
18 #  undef HAVE_FORKPTY
19 # endif
20
21 typedef struct text_data text_data;
22
23 extern text_data *textclient_open (Display *);
24 extern void textclient_close (text_data *);
25 extern void textclient_reshape (text_data *,
26                                 int pix_w, int pix_h,
27                                 int char_w, int char_h,
28                                 int max_lines);
29 extern int textclient_getc (text_data *);
30 extern Bool textclient_putc (text_data *, XKeyEvent *);
31
32 # if defined(USE_IPHONE) || defined(HAVE_ANDROID)
33 extern char *textclient_mobile_date_string (void);
34 extern char *textclient_mobile_url_string (Display *, const char *url);
35 extern char *textclient_strip_html (const char *);
36 extern char *textclient_strip_rss (const char *);
37 # endif
38
39 #endif /* __TEXTCLIENT_H__ */