mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 04:18:21 +00:00
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
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user