summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-01-16 14:18:18 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-01-16 14:18:18 +0000
commit832c60f23ea2661704b38f1e77fa0c535bbe966d (patch)
treeffbd22b7d14f97dcfd81d9fdcdce70b6a00d51e9 /drivers/dahdi/dahdi.h
parent2fe67a197159d7425964c66f151cd4e6e7f0b53d (diff)
Refactor SysFS code to dahdi-sysfs.c
* Refactor SysFS and device-related code to drivers/dahdi/dahdi-sysfs.c . * Move common headers to drivers/dahdi/dahdi.h . This commit merely moves existing code and should have no functional change. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Acked-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Oron Peled <oron.peled@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9628 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi.h')
-rw-r--r--drivers/dahdi/dahdi.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi.h b/drivers/dahdi/dahdi.h
new file mode 100644
index 0000000..54960dd
--- /dev/null
+++ b/drivers/dahdi/dahdi.h
@@ -0,0 +1,36 @@
+#ifndef _DAHDI_H
+#define _DAHDI_H
+
+/* dahdi.h: headers intended only for the dahdi.ko module.
+ * Not to be included elsewhere
+ *
+ * Written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>
+ * Copyright (C) 2011, Xorcom
+ *
+ * All rights reserved.
+ *
+ */
+
+/*
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2 as published by the
+ * Free Software Foundation. See the LICENSE file included with
+ * this program for more details.
+ */
+
+extern int debug;
+
+int dahdi_register_chardev(struct dahdi_chardev *dev);
+int dahdi_unregister_chardev(struct dahdi_chardev *dev);
+int span_sysfs_create(struct dahdi_span *span);
+void span_sysfs_remove(struct dahdi_span *span);
+int __init dahdi_sysfs_init(const struct file_operations *dahdi_fops);
+void dahdi_sysfs_exit(void);
+
+#endif /* _DAHDI_H */