Browse Source

more redis support functions

git.mgm/mediaproxy-ng/2.2
Richard Fuchs 13 years ago
parent
commit
f369c9f799
2 changed files with 5 additions and 2 deletions
  1. +2
    -2
      daemon/call.c
  2. +3
    -0
      daemon/call.h

+ 2
- 2
daemon/call.c View File

@ -1146,7 +1146,7 @@ static void callstream_free(void *ptr) {
obj_put(s->call); obj_put(s->call);
} }
static void relays_cache_init(struct relays_cache *c) {
void relays_cache_init(struct relays_cache *c) {
memset(c, -1, sizeof(*c)); memset(c, -1, sizeof(*c));
c->relays_open = 0; c->relays_open = 0;
c->array_ptrs[0] = c->relays_A; c->array_ptrs[0] = c->relays_A;
@ -1194,7 +1194,7 @@ static void relays_cache_port_used(struct relays_cache *c) {
c->relays_B[c->relays_open + 1].fd = -1; c->relays_B[c->relays_open + 1].fd = -1;
} }
static void relays_cache_cleanup(struct relays_cache *c, struct callmaster *m) {
void relays_cache_cleanup(struct relays_cache *c, struct callmaster *m) {
int i; int i;
for (i = 0; i < ARRAY_SIZE(c->relays_A); i++) { for (i = 0; i < ARRAY_SIZE(c->relays_A); i++) {


+ 3
- 0
daemon/call.h View File

@ -166,7 +166,10 @@ struct callstream *callstream_new(struct call *ca, int num);
void callstream_init(struct callstream *s, struct relays_cache *); void callstream_init(struct callstream *s, struct relays_cache *);
void kernelize(struct callstream *c); void kernelize(struct callstream *c);
int call_stream_address(char *o, struct peer *p, enum stream_address_format format, int *len); int call_stream_address(char *o, struct peer *p, enum stream_address_format format, int *len);
void relays_cache_init(struct relays_cache *c);
int relays_cache_want_ports(struct relays_cache *c, int portA, int portB, struct call *call); int relays_cache_want_ports(struct relays_cache *c, int portA, int portB, struct call *call);
void relays_cache_cleanup(struct relays_cache *c, struct callmaster *m);
static inline char *call_strdup(struct call *c, const char *s) { static inline char *call_strdup(struct call *c, const char *s) {
char *r; char *r;


Loading…
Cancel
Save