You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
619 B

#ifndef __CODEC_H__
#define __CODEC_H__
#include <glib.h>
#include "str.h"
struct call_media;
struct codec_handler;
typedef int codec_handler_func(struct codec_handler *, struct call_media *, const str *, GQueue *);
struct codec_handler {
int rtp_payload_type;
codec_handler_func *func;
};
struct codec_packet {
str s;
void (*free_func)(void *);
};
void codec_handlers_update(struct call_media *receiver, struct call_media *sink);
struct codec_handler *codec_handler_get(struct call_media *, int payload_type);
void codec_handlers_free(struct call_media *);
void codec_packet_free(void *);
#endif