diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-04 06:47:24 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-04 06:47:24 +0000 |
commit | 8ba4898a1eece83e44568bf8a4373a3de341a40c (patch) | |
tree | d4f64d65fd10bb76d2839b641fa20091909210c5 /image.c | |
parent | b0180cc4f641d4097a85f52b887ac0bef130604b (diff) |
Rework channel structure to eliminate "pvt" portion of channel (bug #3573)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5137 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'image.c')
-rwxr-xr-x | image.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -22,7 +22,6 @@ #include <asterisk/sched.h> #include <asterisk/options.h> #include <asterisk/channel.h> -#include <asterisk/channel_pvt.h> #include <asterisk/logger.h> #include <asterisk/file.h> #include <asterisk/image.h> @@ -69,9 +68,9 @@ void ast_image_unregister(struct ast_imager *img) int ast_supports_images(struct ast_channel *chan) { - if (!chan || !chan->pvt) + if (!chan || !chan->tech) return 0; - if (!chan->pvt->send_image) + if (!chan->tech->send_image) return 0; return 1; } @@ -162,10 +161,10 @@ int ast_send_image(struct ast_channel *chan, char *filename) { struct ast_frame *f; int res = -1; - if (chan->pvt->send_image) { + if (chan->tech->send_image) { f = ast_read_image(filename, chan->language, -1); if (f) { - res = chan->pvt->send_image(chan, f); + res = chan->tech->send_image(chan, f); ast_frfree(f); } } |