aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/frame.h
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-02 23:11:06 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-02 23:11:06 +0000
commitbc9bd7bb7c38d2ec2bd0b0814d19473e1615b3b5 (patch)
tree86bf423e9c685e5cf2fc85851455381bf94a112a /include/asterisk/frame.h
parentdee9dac842e903fe47181704062e03ce066e939c (diff)
Merge res_fax and res_fax_spandsp.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250190 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/frame.h')
-rw-r--r--include/asterisk/frame.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index c493b8114..f9a9a4f0a 100644
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -131,16 +131,18 @@ enum {
AST_FRFLAG_HAS_TIMING_INFO = (1 << 0),
};
+union ast_frame_subclass {
+ int integer;
+ format_t codec;
+};
+
/*! \brief Data structure associated with a single frame of data
*/
struct ast_frame {
/*! Kind of frame */
enum ast_frame_type frametype;
/*! Subclass, frame dependent */
- union {
- int integer;
- format_t codec;
- } subclass;
+ union ast_frame_subclass subclass;
/*! Length of data */
int datalen;
/*! Number of samples in this frame */