remove freeswitch's privates (couldn't resist)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@677 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-02-26 04:52:34 +00:00
parent c30a71fa9c
commit 14072e8725
13 changed files with 64 additions and 64 deletions

View File

@@ -46,7 +46,7 @@ struct switch_channel {
int state_handler_index;
switch_hash *variables;
switch_channel_timetable_t times;
void *private;
void *private_info;
int freq;
int bits;
int channels;
@@ -185,17 +185,17 @@ SWITCH_DECLARE(char *) switch_channel_get_variable(switch_channel *channel, char
return switch_core_hash_find(channel->variables, varname);
}
SWITCH_DECLARE(switch_status) switch_channel_set_private(switch_channel *channel, void *private)
SWITCH_DECLARE(switch_status) switch_channel_set_private(switch_channel *channel, void *private_info)
{
assert(channel != NULL);
channel->private = private;
channel->private_info = private_info;
return SWITCH_STATUS_SUCCESS;
}
SWITCH_DECLARE(void *) switch_channel_get_private(switch_channel *channel)
{
assert(channel != NULL);
return channel->private;
return channel->private_info;
}
SWITCH_DECLARE(switch_status) switch_channel_set_name(switch_channel *channel, char *name)