From 5ff4710e770ba6f4a67e3ffd156dede5131144cf Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Thu, 15 Apr 2010 18:43:37 +0000 Subject: [PATCH] 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 --- pri.c | 12 ++++-------- pri_internal.h | 5 +++++ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/pri.c b/pri.c index adb5f89..80a7b2b 100644 --- a/pri.c +++ b/pri.c @@ -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); diff --git a/pri_internal.h b/pri_internal.h index 13a31e2..d994ea2 100644 --- a/pri_internal.h +++ b/pri_internal.h @@ -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);