summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-11-21 12:09:52 +0100
committerPatrick McHardy <kaber@trash.net>2010-11-21 20:04:09 +0100
commit42aff744b9d9fdbd992991d56b1d11e9f4e70d1a (patch)
tree4b002b16f534f4a40461c495a5366f9b79371e07 /include
parentd23e627b50f6b1be2bc9e30ab784cfc1240529ef (diff)
dectmon: split up header files
Split up header files in a more logical fashion to avoid rebuilding the entire tree on each change. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r--include/audio.h17
-rw-r--r--include/dectmon.h38
-rw-r--r--include/dsc.h8
-rw-r--r--include/ops.h11
-rw-r--r--include/raw.h12
5 files changed, 48 insertions, 38 deletions
diff --git a/include/audio.h b/include/audio.h
new file mode 100644
index 0000000..d352a96
--- /dev/null
+++ b/include/audio.h
@@ -0,0 +1,17 @@
+#ifndef _DECTMON_AUDIO_H
+#define _DECTMON_AUDIO_H
+
+#include "../src/ccitt-adpcm/g72x.h"
+
+struct dect_audio_handle {
+ struct g72x_state codec[2];
+ struct dect_msg_buf *queue[2];
+};
+
+extern int dect_audio_init(void);
+extern struct dect_audio_handle *dect_audio_open(void);
+extern void dect_audio_close(struct dect_audio_handle *ah);
+extern void dect_audio_queue(struct dect_audio_handle *ah, unsigned int queue,
+ struct dect_msg_buf *mb);
+
+#endif /* _DECTMON_AUDIO_H */
diff --git a/include/dectmon.h b/include/dectmon.h
index 11999cc..5d48530 100644
--- a/include/dectmon.h
+++ b/include/dectmon.h
@@ -20,13 +20,6 @@ extern const char *auth_pin;
extern uint32_t dumpopts;
extern uint32_t debug_mask;
-struct dect_ops;
-extern int dect_event_ops_init(struct dect_ops *ops);
-extern void dect_event_loop_stop(void);
-extern void dect_event_loop(void);
-extern void dect_event_ops_cleanup(void);
-extern void dect_dummy_ops_init(struct dect_ops *ops);
-
extern void dectmon_log(const char *fmt, ...);
extern void dect_hexdump(const char *prefix, const uint8_t *buf, size_t size);
@@ -128,35 +121,4 @@ struct dect_tbc {
extern void dect_mac_rcv(struct dect_handle *dh, struct dect_msg_buf *mb);
-/* DSC */
-
-extern void dect_dsc_keystream(uint64_t iv, const uint8_t *key,
- uint8_t *output, unsigned int len);
-extern uint64_t dect_dsc_iv(uint32_t mfn, uint8_t framenum);
-
-/* Audio */
-
-#include "../src/ccitt-adpcm/g72x.h"
-
-struct dect_audio_handle {
- struct g72x_state codec[2];
- struct dect_msg_buf *queue[2];
-};
-
-extern int dect_audio_init(void);
-extern struct dect_audio_handle *dect_audio_open(void);
-extern void dect_audio_close(struct dect_audio_handle *ah);
-extern void dect_audio_queue(struct dect_audio_handle *ah, unsigned int queue,
- struct dect_msg_buf *mb);
-
-/* Raw dump */
-
-struct dect_raw_frame_hdr {
- uint8_t len;
- uint8_t slot;
- uint8_t frame;
- uint8_t pad;
- uint32_t mfn;
-};
-
#endif /* _DECTMON_H */
diff --git a/include/dsc.h b/include/dsc.h
new file mode 100644
index 0000000..e7d7d0a
--- /dev/null
+++ b/include/dsc.h
@@ -0,0 +1,8 @@
+#ifndef _DECTMON_DSC_H
+#define _DECTMON_DSC_H
+
+extern void dect_dsc_keystream(uint64_t iv, const uint8_t *key,
+ uint8_t *output, unsigned int len);
+extern uint64_t dect_dsc_iv(uint32_t mfn, uint8_t framenum);
+
+#endif /* _DECTMON_DSC_H */
diff --git a/include/ops.h b/include/ops.h
new file mode 100644
index 0000000..b7422a2
--- /dev/null
+++ b/include/ops.h
@@ -0,0 +1,11 @@
+#ifndef _DECTMON_OPS_H
+#define _DECTMON_OPS_H
+
+struct dect_ops;
+extern int dect_event_ops_init(struct dect_ops *ops);
+extern void dect_event_loop_stop(void);
+extern void dect_event_loop(void);
+extern void dect_event_ops_cleanup(void);
+extern void dect_dummy_ops_init(struct dect_ops *ops);
+
+#endif /* _DECTMON_OPS_H */
diff --git a/include/raw.h b/include/raw.h
new file mode 100644
index 0000000..ed6243d
--- /dev/null
+++ b/include/raw.h
@@ -0,0 +1,12 @@
+#ifndef _DECTMON_RAW_H
+#define _DECTMON_RAW_H
+
+struct dect_raw_frame_hdr {
+ uint8_t len;
+ uint8_t slot;
+ uint8_t frame;
+ uint8_t pad;
+ uint32_t mfn;
+};
+
+#endif /* _DECTMON_RAW_H */