summaryrefslogtreecommitdiff
path: root/image.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-04 06:47:24 +0000
committerMark Spencer <markster@digium.com>2005-03-04 06:47:24 +0000
commit18d9b26cf9c2eb5b6d52e840b38abfeb16d681de (patch)
treed4f64d65fd10bb76d2839b641fa20091909210c5 /image.c
parentfba0b595ab087cddcc11d950e88da7446f8ff6c2 (diff)
Rework channel structure to eliminate "pvt" portion of channel (bug #3573)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'image.c')
-rwxr-xr-ximage.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/image.c b/image.c
index 211534e40..3ffc852ee 100755
--- a/image.c
+++ b/image.c
@@ -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);
}
}