diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-07-03 20:03:01 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-07-03 20:03:01 +0200 |
commit | f52b3c8b11dd30317f7084b075716d4336b0169f (patch) | |
tree | 613a1e8fe8fe1369912d0666c136178c97cb8d44 | |
parent | f04b5f66f39e8f50eb6792c1b17ad1cbf30672a6 (diff) |
rtp: remove unused rtp_handle parameter from osmo_rtp_parse
And also adjust example files to use the new function.
Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
-rw-r--r-- | examples/rtp-udp-test-client.c | 2 | ||||
-rw-r--r-- | examples/rtp-udp-test-server.c | 2 | ||||
-rw-r--r-- | include/osmocom/netif/rtp.h | 2 | ||||
-rw-r--r-- | src/rtp.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/rtp-udp-test-client.c b/examples/rtp-udp-test-client.c index 3723b6b..4163703 100644 --- a/examples/rtp-udp-test-client.c +++ b/examples/rtp-udp-test-client.c @@ -53,7 +53,7 @@ static int read_cb(struct osmo_dgram_conn *conn) LOGP(DRTP_TEST, LOGL_ERROR, "cannot receive message\n"); return -1; } - payload_type = osmo_rtp_parse(rtp, msg); + payload_type = osmo_rtp_parse(msg); if (payload_type < 0) { msgb_free(msg); LOGP(DRTP_TEST, LOGL_ERROR, "cannot parse RTP message\n"); diff --git a/examples/rtp-udp-test-server.c b/examples/rtp-udp-test-server.c index 2f6c72f..5efd920 100644 --- a/examples/rtp-udp-test-server.c +++ b/examples/rtp-udp-test-server.c @@ -51,7 +51,7 @@ int read_cb(struct osmo_dgram_conn *conn) LOGP(DRTP_TEST, LOGL_ERROR, "cannot receive message\n"); return -1; } - payload_type = osmo_rtp_parse(rtp, msg); + payload_type = osmo_rtp_parse(msg); if (payload_type < 0) { msgb_free(msg); LOGP(DRTP_TEST, LOGL_ERROR, "cannot parse RTP message\n"); diff --git a/include/osmocom/netif/rtp.h b/include/osmocom/netif/rtp.h index 3218006..e65bd15 100644 --- a/include/osmocom/netif/rtp.h +++ b/include/osmocom/netif/rtp.h @@ -57,7 +57,7 @@ int osmo_rtp_handle_tx_set_sequence(struct osmo_rtp_handle *h, uint16_t seq); int osmo_rtp_handle_tx_set_ssrc(struct osmo_rtp_handle *h, uint32_t ssrc); int osmo_rtp_handle_tx_set_timestamp(struct osmo_rtp_handle *h, uint32_t timestamp); -int osmo_rtp_parse(struct osmo_rtp_handle *h, struct msgb *msg); +int osmo_rtp_parse(struct msgb *msg); struct msgb *osmo_rtp_build(struct osmo_rtp_handle *h, uint8_t payload_type, uint32_t payload_len, const void *data, uint32_t duration); /* supported RTP payload types. */ @@ -71,7 +71,7 @@ int osmo_rtp_handle_tx_set_timestamp(struct osmo_rtp_handle *h, uint32_t timesta /* decode and pull RTP header out and return payload_type. The msg->data points to data payload after this is called. This function returns the RTP payload type on success. */ -int osmo_rtp_parse(struct osmo_rtp_handle *h, struct msgb *msg) +int osmo_rtp_parse(struct msgb *msg) { struct rtp_hdr *rtph = (struct rtp_hdr *)msg->data; struct rtp_x_hdr *rtpxh; |