summaryrefslogtreecommitdiff
path: root/src/sig_handler.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-02-16 22:51:37 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-02-16 22:51:37 (GMT)
commitdb20dcf04d70d525d2a8e055e1ada0a7338cda98 (patch)
treebb72c6a00947c358125f4007653af1cba8f86efa /src/sig_handler.h
parentec6b037cd20e09766279689755df745e3da756ce (diff)
added signal handler
Diffstat (limited to 'src/sig_handler.h')
-rw-r--r--src/sig_handler.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/sig_handler.h b/src/sig_handler.h
new file mode 100644
index 0000000..dee9589
--- /dev/null
+++ b/src/sig_handler.h
@@ -0,0 +1,37 @@
+/*
+ * rharchive
+ *
+ * rharchive is a simple tcp connection proxy which combines the
+ * features of rinetd and 6tunnel. rharchive supports IPv4 and
+ * IPv6 and also supports connections from IPv6 to IPv4
+ * endpoints and vice versa.
+ *
+ *
+ * Copyright (C) 2010-2011 Christian Pointner <equinox@helsinki.at>
+ *
+ * This file is part of rharchive.
+ *
+ * rharchive is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
+ *
+ * rharchive 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with rharchive. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef RHARCHIVE_sig_handler_h_INCLUDED
+#define RHARCHIVE_sig_handler_h_INCLUDED
+
+#include <glib.h>
+
+void signal_init();
+int signal_start(GMainLoop *loop);
+void signal_stop();
+
+#endif