summaryrefslogtreecommitdiff
path: root/channels/chan_multicast_rtp.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 /channels/chan_multicast_rtp.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 'channels/chan_multicast_rtp.c')
-rw-r--r--channels/chan_multicast_rtp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/channels/chan_multicast_rtp.c b/channels/chan_multicast_rtp.c
index c635b1056..6ebacaa84 100644
--- a/channels/chan_multicast_rtp.c
+++ b/channels/chan_multicast_rtp.c
@@ -82,7 +82,7 @@ static struct ast_frame *multicast_rtp_read(struct ast_channel *ast)
/*! \brief Function called when we should write a frame to the channel */
static int multicast_rtp_write(struct ast_channel *ast, struct ast_frame *f)
{
- struct ast_rtp_instance *instance = ast->tech_pvt;
+ struct ast_rtp_instance *instance = ast_channel_tech_pvt(ast);
return ast_rtp_instance_write(instance, f);
}
@@ -90,7 +90,7 @@ static int multicast_rtp_write(struct ast_channel *ast, struct ast_frame *f)
/*! \brief Function called when we should actually call the destination */
static int multicast_rtp_call(struct ast_channel *ast, const char *dest, int timeout)
{
- struct ast_rtp_instance *instance = ast->tech_pvt;
+ struct ast_rtp_instance *instance = ast_channel_tech_pvt(ast);
ast_queue_control(ast, AST_CONTROL_ANSWER);
@@ -100,11 +100,11 @@ static int multicast_rtp_call(struct ast_channel *ast, const char *dest, int tim
/*! \brief Function called when we should hang the channel up */
static int multicast_rtp_hangup(struct ast_channel *ast)
{
- struct ast_rtp_instance *instance = ast->tech_pvt;
+ struct ast_rtp_instance *instance = ast_channel_tech_pvt(ast);
ast_rtp_instance_destroy(instance);
- ast->tech_pvt = NULL;
+ ast_channel_tech_pvt_set(ast, NULL);
return 0;
}
@@ -156,15 +156,15 @@ static struct ast_channel *multicast_rtp_request(const char *type, struct ast_fo
ast_rtp_instance_set_remote_address(instance, &destination_address);
- chan->tech = &multicast_rtp_tech;
+ ast_channel_tech_set(chan, &multicast_rtp_tech);
- ast_format_cap_add(chan->nativeformats, &fmt);
+ ast_format_cap_add(ast_channel_nativeformats(chan), &fmt);
ast_format_copy(&chan->writeformat, &fmt);
ast_format_copy(&chan->rawwriteformat, &fmt);
ast_format_copy(&chan->readformat, &fmt);
ast_format_copy(&chan->rawreadformat, &fmt);
- chan->tech_pvt = instance;
+ ast_channel_tech_pvt_set(chan, instance);
return chan;