| 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 HAVE_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(HAVE_IPHONE) || defined(HAVE_ANDROID) |
| 33 | extern char *textclient_mobile_date_string (void); |
| 34 | extern char *textclient_mobile_url_string (Display *, const char *url); |
| 35 | # endif |
| 36 | |
| 37 | #endif /* __TEXTCLIENT_H__ */ |