summaryrefslogtreecommitdiff
path: root/src/globals.h
diff options
context:
space:
mode:
authorWill Storey <will@summercat.com>2017-08-27 12:06:11 -0700
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-08-28 21:17:27 +0200
commit2eb3e05335f43f8cc2b86d67e664bb63c2c636e8 (patch)
tree0f423aebe33b49cdf3eb475d3bab5718825a639c /src/globals.h
parent71819fe746d57774aaa05d989ab932dc39076d90 (diff)
downloadratpoison-2eb3e05335f43f8cc2b86d67e664bb63c2c636e8.zip
Move several functions out of main.c into globals.c
These functions are used in many parts of ratpoison. In order to compile a separate program using the ratpoison files, we need them available outside of main.c.
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
index 144273d..3851695 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -210,4 +210,20 @@ char *get_selection (void);
void rp_draw_string (rp_screen *s, Drawable d, int style, int x, int y, char *string, int length);
int rp_text_width (rp_screen *s, char *string, int count);
+void fatal (const char *msg);
+void *xmalloc (size_t size);
+void *xrealloc (void *ptr, size_t size);
+char *xstrdup (const char *s);
+char *xvsprintf (char *fmt, va_list ap);
+char *xsprintf (char *fmt, ...);
+char *strtok_ws (char *s);
+int str_comp (char *s1, char *s2, size_t len);
+void check_child_procs (void);
+void chld_handler (int signum);
+void set_sig_handler (int sig, void (*action)(int));
+void set_close_on_exec (int fd);
+void read_rc_file (FILE *file);
+const char *get_homedir (void);
+void clean_up (void);
+
#endif