ast_channel opaquification of pointers and integral types

Review: https://reviewboard.asterisk.org/r/1753/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Terry Wilson
2012-02-20 23:43:27 +00:00
parent 25e5eb3b96
commit 57f42bd74f
123 changed files with 2902 additions and 2423 deletions

View File

@@ -64,9 +64,9 @@ void ast_image_unregister(struct ast_imager *img)
int ast_supports_images(struct ast_channel *chan)
{
if (!chan || !chan->tech)
if (!chan || !ast_channel_tech(chan))
return 0;
if (!chan->tech->send_image)
if (!ast_channel_tech(chan)->send_image)
return 0;
return 1;
}
@@ -157,10 +157,10 @@ int ast_send_image(struct ast_channel *chan, const char *filename)
{
struct ast_frame *f;
int res = -1;
if (chan->tech->send_image) {
if (ast_channel_tech(chan)->send_image) {
f = ast_read_image(filename, ast_channel_language(chan), NULL);
if (f) {
res = chan->tech->send_image(chan, f);
res = ast_channel_tech(chan)->send_image(chan, f);
ast_frfree(f);
}
}