Make some internal routines available to other libpri components.

git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1596 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Richard Mudgett 2010-04-15 18:43:37 +00:00
parent 9a7686d792
commit 5ff4710e77
2 changed files with 9 additions and 8 deletions

12
pri.c
View File

@ -646,7 +646,6 @@ int pri_answer(struct pri *pri, q931_call *call, int channel, int nonisdn)
}
/*!
* \internal
* \brief Copy the PRI party name to the Q.931 party name structure.
*
* \param q931_name Q.931 party name structure
@ -654,7 +653,7 @@ int pri_answer(struct pri *pri, q931_call *call, int channel, int nonisdn)
*
* \return Nothing
*/
static void pri_copy_party_name_to_q931(struct q931_party_name *q931_name, const struct pri_party_name *pri_name)
void pri_copy_party_name_to_q931(struct q931_party_name *q931_name, const struct pri_party_name *pri_name)
{
q931_party_name_init(q931_name);
if (pri_name->valid) {
@ -666,7 +665,6 @@ static void pri_copy_party_name_to_q931(struct q931_party_name *q931_name, const
}
/*!
* \internal
* \brief Copy the PRI party number to the Q.931 party number structure.
*
* \param q931_number Q.931 party number structure
@ -674,7 +672,7 @@ static void pri_copy_party_name_to_q931(struct q931_party_name *q931_name, const
*
* \return Nothing
*/
static void pri_copy_party_number_to_q931(struct q931_party_number *q931_number, const struct pri_party_number *pri_number)
void pri_copy_party_number_to_q931(struct q931_party_number *q931_number, const struct pri_party_number *pri_number)
{
q931_party_number_init(q931_number);
if (pri_number->valid) {
@ -686,7 +684,6 @@ static void pri_copy_party_number_to_q931(struct q931_party_number *q931_number,
}
/*!
* \internal
* \brief Copy the PRI party subaddress to the Q.931 party subaddress structure.
*
* \param q931_subaddress Q.931 party subaddress structure
@ -694,7 +691,7 @@ static void pri_copy_party_number_to_q931(struct q931_party_number *q931_number,
*
* \return Nothing
*/
static void pri_copy_party_subaddress_to_q931(struct q931_party_subaddress *q931_subaddress, const struct pri_party_subaddress *pri_subaddress)
void pri_copy_party_subaddress_to_q931(struct q931_party_subaddress *q931_subaddress, const struct pri_party_subaddress *pri_subaddress)
{
int length;
int maxlen = sizeof(q931_subaddress->data) - 1;
@ -720,7 +717,6 @@ static void pri_copy_party_subaddress_to_q931(struct q931_party_subaddress *q931
}
/*!
* \internal
* \brief Copy the PRI party id to the Q.931 party id structure.
*
* \param q931_id Q.931 party id structure
@ -728,7 +724,7 @@ static void pri_copy_party_subaddress_to_q931(struct q931_party_subaddress *q931
*
* \return Nothing
*/
static void pri_copy_party_id_to_q931(struct q931_party_id *q931_id, const struct pri_party_id *pri_id)
void pri_copy_party_id_to_q931(struct q931_party_id *q931_id, const struct pri_party_id *pri_id)
{
pri_copy_party_name_to_q931(&q931_id->name, &pri_id->name);
pri_copy_party_number_to_q931(&q931_id->number, &pri_id->number);

View File

@ -583,6 +583,11 @@ void q931_party_subaddress_copy_to_pri(struct pri_party_subaddress *pri_subaddre
void q931_party_id_copy_to_pri(struct pri_party_id *pri_id, const struct q931_party_id *q931_id);
void q931_party_redirecting_copy_to_pri(struct pri_party_redirecting *pri_redirecting, const struct q931_party_redirecting *q931_redirecting);
void pri_copy_party_name_to_q931(struct q931_party_name *q931_name, const struct pri_party_name *pri_name);
void pri_copy_party_number_to_q931(struct q931_party_number *q931_number, const struct pri_party_number *pri_number);
void pri_copy_party_subaddress_to_q931(struct q931_party_subaddress *q931_subaddress, const struct pri_party_subaddress *pri_subaddress);
void pri_copy_party_id_to_q931(struct q931_party_id *q931_id, const struct pri_party_id *pri_id);
void q931_party_id_fixup(const struct pri *ctrl, struct q931_party_id *id);
int q931_party_id_presentation(const struct q931_party_id *id);