diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-04 23:46:40 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-04 23:46:40 +0000 |
commit | 66be059151e9c96380e9e1555d287260f6bc8763 (patch) | |
tree | e265894330462bf486748fc4147de24c1f37d4b8 /include/asterisk/file.h | |
parent | f86cc8722b75f85a66c6427b02390a58454fbb44 (diff) |
Modify file.h to maintain API compatibility with earlier versions. If a recent
compiler is being used, then a warning will show up for any modules still using
the old name "private" instead of "_private".
(patch suggested by paravoid)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@91032 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/file.h')
-rw-r--r-- | include/asterisk/file.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asterisk/file.h b/include/asterisk/file.h index fc1aa2157..636309bc4 100644 --- a/include/asterisk/file.h +++ b/include/asterisk/file.h @@ -132,7 +132,13 @@ struct ast_filestream { FILE *f; struct ast_frame fr; /* frame produced by read, typically */ char *buf; /* buffer pointed to by ast_frame; */ - void *_private; /* pointer to private buffer */ + /* pointer to private buffer */ + union { + void *_private; +#if !defined(__cplusplus) && !defined(c_plusplus) + void *private attribute_deprecated; +#endif + }; const char *orig_chan_name; }; |