diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-08-31 17:22:56 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-12-31 12:20:59 +0100 |
commit | a8d46571cebb7f14501fa7bcf3c2eb86c473d8b2 (patch) | |
tree | 8e8dfb392f9a13026ff521e85f2b5babd1ce4c12 /src/pq_rtp.c | |
parent | 9cba760ba2ca5fd73e34f91bf388fc255dbcd335 (diff) |
Add an 'osmo_gapk' prefix to the exposed symbols
To avoid a naming conflict between libosmogapk and other projects
during linkage, all the exposed symbols should have an unique
prefix. Let's use 'osmo_gapk' for that.
Diffstat (limited to 'src/pq_rtp.c')
-rw-r--r-- | src/pq_rtp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pq_rtp.c b/src/pq_rtp.c index d7d924e..b68e84a 100644 --- a/src/pq_rtp.c +++ b/src/pq_rtp.c @@ -192,9 +192,9 @@ pq_cb_rtp_exit(void *_state) } static int -pq_queue_rtp_op(struct pq *pq, int udp_fd, unsigned int blk_len, int in_out_n) +pq_queue_rtp_op(struct osmo_gapk_pq *pq, int udp_fd, unsigned int blk_len, int in_out_n) { - struct pq_item *item; + struct osmo_gapk_pq_item *item; struct pq_state_rtp *state; state = calloc(1, sizeof(struct pq_state_rtp)); @@ -217,7 +217,7 @@ pq_queue_rtp_op(struct pq *pq, int udp_fd, unsigned int blk_len, int in_out_n) state->payload_type = RTP_PT_GSM_FULL; } - item = pq_add_item(pq); + item = osmo_gapk_pq_add_item(pq); if (!item) { free(state); return -ENOMEM; @@ -239,7 +239,7 @@ pq_queue_rtp_op(struct pq *pq, int udp_fd, unsigned int blk_len, int in_out_n) * \param[in] udp_fd UDP file descriptor for the RTP input * \param[in] blk_len Block Length to read from RTP */ int -pq_queue_rtp_input(struct pq *pq, int udp_fd, unsigned int blk_len) +osmo_gapk_pq_queue_rtp_input(struct osmo_gapk_pq *pq, int udp_fd, unsigned int blk_len) { fprintf(stderr, "[+] PQ: Adding RTP input (blk_len=%u)\n", blk_len); return pq_queue_rtp_op(pq, udp_fd, blk_len, 1); @@ -251,7 +251,7 @@ pq_queue_rtp_input(struct pq *pq, int udp_fd, unsigned int blk_len) * \param[in] udp_fd UDP file descriptor for the RTP output * \param[in] blk_len Block Length to read from RTP */ int -pq_queue_rtp_output(struct pq *pq, int udp_fd, unsigned int blk_len) +osmo_gapk_pq_queue_rtp_output(struct osmo_gapk_pq *pq, int udp_fd, unsigned int blk_len) { fprintf(stderr, "[+] PQ: Adding RTP output (blk_len=%u)\n", blk_len); return pq_queue_rtp_op(pq, udp_fd, blk_len, 0); |