summaryrefslogtreecommitdiff
path: root/apps/confbridge/conf_state.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2013-03-09 00:21:46 +0000
committerRichard Mudgett <rmudgett@digium.com>2013-03-09 00:21:46 +0000
commit761465d6425fa0c5ce61095fe45588292ead1b15 (patch)
treed2421cbcfc5b3b2dcaaea1d04b4c515ef740c365 /apps/confbridge/conf_state.c
parentb4a010e958226d21750a5a1797bf50f22898e974 (diff)
confbridge: Rename items for clarity and consistency.
struct conference_bridge_user -> struct confbridge_user struct conference_bridge -> struct confbridge_conference struct conference_state -> struct confbridge_state struct conference_bridge_user *conference_bridge_user -> struct confbridge_user *user struct conference_bridge_user *cbu -> struct confbridge_user *user struct conference_bridge *conference_bridge -> struct confbridge_conference *conference The names are now generally shorter, consistently used, and don't conflict with the struct names. This patch handles the renaming part of the issue. (issue ASTERISK-20776) Reported by: rmudgett git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382764 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/confbridge/conf_state.c')
-rw-r--r--apps/confbridge/conf_state.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/apps/confbridge/conf_state.c b/apps/confbridge/conf_state.c
index ea5ab10f0..988e2e250 100644
--- a/apps/confbridge/conf_state.c
+++ b/apps/confbridge/conf_state.c
@@ -42,9 +42,9 @@
#include "include/conf_state.h"
#include "include/confbridge.h"
-void conf_invalid_event_fn(struct conference_bridge_user *cbu)
+void conf_invalid_event_fn(struct confbridge_user *user)
{
- ast_log(LOG_ERROR, "Invalid event for confbridge user '%s'\n", cbu->u_profile.name);
+ ast_log(LOG_ERROR, "Invalid event for confbridge user '%s'\n", user->u_profile.name);
}
/*!
@@ -55,7 +55,7 @@ void conf_invalid_event_fn(struct conference_bridge_user *cbu)
*
* \return Nothing
*/
-static void conf_mute_moh_inactive_waitmarked(struct conference_bridge_user *user)
+static void conf_mute_moh_inactive_waitmarked(struct confbridge_user *user)
{
/* Be sure we are muted so we can't talk to anybody else waiting */
user->features.mute = 1;
@@ -65,30 +65,30 @@ static void conf_mute_moh_inactive_waitmarked(struct conference_bridge_user *use
}
}
-void conf_default_join_waitmarked(struct conference_bridge_user *cbu)
+void conf_default_join_waitmarked(struct confbridge_user *user)
{
- conf_add_user_waiting(cbu->conference_bridge, cbu);
- conf_mute_moh_inactive_waitmarked(cbu);
- conf_add_post_join_action(cbu, conf_handle_inactive_waitmarked);
+ conf_add_user_waiting(user->conference, user);
+ conf_mute_moh_inactive_waitmarked(user);
+ conf_add_post_join_action(user, conf_handle_inactive_waitmarked);
}
-void conf_default_leave_waitmarked(struct conference_bridge_user *cbu)
+void conf_default_leave_waitmarked(struct confbridge_user *user)
{
- conf_remove_user_waiting(cbu->conference_bridge, cbu);
+ conf_remove_user_waiting(user->conference, user);
}
-void conf_change_state(struct conference_bridge_user *cbu, struct conference_state *newstate)
+void conf_change_state(struct confbridge_user *user, struct confbridge_state *newstate)
{
- ast_debug(1, "Changing conference '%s' state from %s to %s\n", cbu->conference_bridge->name, cbu->conference_bridge->state->name, newstate->name);
+ ast_debug(1, "Changing conference '%s' state from %s to %s\n", user->conference->name, user->conference->state->name, newstate->name);
ast_test_suite_event_notify("CONF_CHANGE_STATE", "Conference: %s\r\nOldState: %s\r\nNewState: %s\r\n",
- cbu->conference_bridge->name,
- cbu->conference_bridge->state->name,
+ user->conference->name,
+ user->conference->state->name,
newstate->name);
- if (cbu->conference_bridge->state->exit) {
- cbu->conference_bridge->state->exit(cbu);
+ if (user->conference->state->exit) {
+ user->conference->state->exit(user);
}
- cbu->conference_bridge->state = newstate;
- if (cbu->conference_bridge->state->entry) {
- cbu->conference_bridge->state->entry(cbu);
+ user->conference->state = newstate;
+ if (user->conference->state->entry) {
+ user->conference->state->entry(user);
}
}