aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/file.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-04 23:46:40 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-04 23:46:40 +0000
commit66be059151e9c96380e9e1555d287260f6bc8763 (patch)
treee265894330462bf486748fc4147de24c1f37d4b8 /include/asterisk/file.h
parentf86cc8722b75f85a66c6427b02390a58454fbb44 (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.h8
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;
};