summaryrefslogtreecommitdiff
path: root/glib/gmain-internal.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2011-03-17 10:11:41 -0400
committerColin Walters <walters@verbum.org>2011-04-27 16:01:39 -0400
commit549d895fa4e9c4b5a35c5d9da4db39ca11dc71cc (patch)
treed7529379b1d7421290e56081b66531074a044651 /glib/gmain-internal.h
parent920899d78fbed7f014dc1549f1b54a3bd708eb4b (diff)
downloadglib-549d895fa4e9c4b5a35c5d9da4db39ca11dc71cc.tar.gz
glib-unix: New API to watch some Unix signals
This new API allows watching a few select Unix signals; looking through the list on my system, I didn't see anything else that I think it'd reasonable to watch. We build on the previous patch to make the child watch helper thread that existed on Unix handle these signals in the threaded case. In the non-threaded case, they're just global variables. https://bugzilla.gnome.org/show_bug.cgi?id=644941
Diffstat (limited to 'glib/gmain-internal.h')
-rw-r--r--glib/gmain-internal.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/glib/gmain-internal.h b/glib/gmain-internal.h
new file mode 100644
index 000000000..648aff3e6
--- /dev/null
+++ b/glib/gmain-internal.h
@@ -0,0 +1,35 @@
+/* gmain-internal.h - GLib-internal mainloop API
+ * Copyright (C) 2011 Red Hat, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#if !defined (GLIB_COMPILATION)
+#error "This is a private header"
+#endif
+
+#ifndef __G_MAIN_INTERNAL_H__
+#define __G_MAIN_INTERNAL_H__
+
+#include "gmain.h"
+
+G_BEGIN_DECLS
+
+GSource *_g_main_create_unix_signal_watch (int signum);
+
+G_END_DECLS
+
+#endif /* __G_MAIN_H__ */