summaryrefslogtreecommitdiff
path: root/main/image.c
diff options
context:
space:
mode:
authorTerry Wilson <twilson@digium.com>2012-02-20 23:43:27 +0000
committerTerry Wilson <twilson@digium.com>2012-02-20 23:43:27 +0000
commit57f42bd74f78d5022631b2ba2269892f8a3a384a (patch)
tree3283ec4ac88c5b3c267f4490b410e5331911f2bb /main/image.c
parent25e5eb3b96e6d9bcbb2fc02fbd879ae21104c1f5 (diff)
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
Diffstat (limited to 'main/image.c')
-rw-r--r--main/image.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/image.c b/main/image.c
index 0e956b0c9..35e8d6d5c 100644
--- a/main/image.c
+++ b/main/image.c
@@ -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);
}
}