Browse Source

MT#55283 remove "const" from local_intf

Enables gathering stats within the struct.

Change-Id: Ibdf3705f4be4963af0d549b29da97ff75d380076
pull/1614/head
Richard Fuchs 3 years ago
parent
commit
c34e6dcc82
2 changed files with 5 additions and 5 deletions
  1. +2
    -2
      daemon/media_socket.c
  2. +3
    -3
      include/media_socket.h

+ 2
- 2
daemon/media_socket.c View File

@ -978,7 +978,7 @@ int get_consecutive_ports(GQueue *out, unsigned int num_ports, unsigned int num_
{
GList *l;
struct intf_list *il;
const struct local_intf *loc;
struct local_intf *loc;
const struct logical_intf *log = media->logical_intf;
const str *label = &media->call->callid;
@ -2820,7 +2820,7 @@ static void stream_fd_free(void *p) {
obj_put(f->call);
}
struct stream_fd *stream_fd_new(socket_t *fd, struct call *call, const struct local_intf *lif) {
struct stream_fd *stream_fd_new(socket_t *fd, struct call *call, struct local_intf *lif) {
struct stream_fd *sfd;
struct poller_item pi;
struct poller *p = rtpe_poller;


+ 3
- 3
include/media_socket.h View File

@ -113,7 +113,7 @@ struct local_intf {
str ice_foundation;
};
struct intf_list {
const struct local_intf *local_intf;
struct local_intf *local_intf;
GQueue list;
};
@ -140,7 +140,7 @@ struct stream_fd {
unsigned int unique_id; /* RO */
socket_t socket; /* RO */
const struct local_intf *local_intf; /* RO */
struct local_intf *local_intf; /* RO */
/* stream_fd object holds a reference to the call it belongs to.
* Which in turn holds references to all stream_fd objects it contains,
@ -220,7 +220,7 @@ int is_local_endpoint(const struct intf_address *addr, unsigned int port);
int __get_consecutive_ports(GQueue *out, unsigned int num_ports, unsigned int wanted_start_port,
struct intf_spec *spec, const str *);
int get_consecutive_ports(GQueue *out, unsigned int num_ports, unsigned int num_intfs, struct call_media *media);
struct stream_fd *stream_fd_new(socket_t *fd, struct call *call, const struct local_intf *lif);
struct stream_fd *stream_fd_new(socket_t *fd, struct call *call, struct local_intf *lif);
struct stream_fd *stream_fd_lookup(const endpoint_t *);
void stream_fd_release(struct stream_fd *);
void release_closed_sockets(void);


Loading…
Cancel
Save