diff options
author | Russell Bryant <russell@russellbryant.com> | 2006-01-31 17:18:58 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2006-01-31 17:18:58 +0000 |
commit | e01861fafd6f74f65f2cb4ac90b811a9bb0a52c7 (patch) | |
tree | 5d573d837383e784c67dabc01fcfad5e8aec9801 /include/asterisk/frame.h | |
parent | 18eac350afb23f696f4c56233b6a18094b201041 (diff) |
define a global null_frame object so when queueing a null frame, you don't
have to allocate one on the stack
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9001 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/frame.h')
-rw-r--r-- | include/asterisk/frame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index afdec0ae2..4835e1646 100644 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -111,6 +111,10 @@ struct ast_frame { struct ast_frame *next; }; +/*! Queueing a null frame is fairly common, so we declare a global null frame object + for this purpose instead of having to declare one on the stack */ +extern struct ast_frame ast_null_frame; + #define AST_FRIENDLY_OFFSET 64 /*! It's polite for a a new frame to have this number of bytes for additional headers. */ |