diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-06-16 16:06:38 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-06-16 16:06:38 +0000 |
commit | 086b38c816adbabf3451bf9b7adee64bf2cb9c9b (patch) | |
tree | 39eb4197c77e43d103a8882c65e2e7eb29b3d04a /include/asterisk/rtp.h | |
parent | d69ac6d42d1408994c14bf67a3bc60f50f97044d (diff) |
Version 0.1.12 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@461 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/rtp.h')
-rwxr-xr-x | include/asterisk/rtp.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h new file mode 100755 index 000000000..7c66a85da --- /dev/null +++ b/include/asterisk/rtp.h @@ -0,0 +1,54 @@ +/* + * Asterisk -- A telephony toolkit for Linux. + * + * Real-time Transport Protocol support + * + * Copyright (C) 1999, Mark Spencer + * + * Mark Spencer <markster@linux-support.net> + * + * This program is free software, distributed under the terms of + * the GNU General Public License + */ + +#ifndef _ASTERISK_RTP_H +#define _ASTERISK_RTP_H + +#include <asterisk/frame.h> +#include <asterisk/io.h> +#include <asterisk/sched.h> + +#include <netinet/in.h> + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +struct ast_rtp; + +typedef int (*ast_rtp_callback)(struct ast_rtp *rtp, struct ast_frame *f, void *data); + +struct ast_rtp *ast_rtp_new(struct sched_context *sched, struct io_context *io); + +void ast_rtp_set_peer(struct ast_rtp *rtp, struct sockaddr_in *them); + +void ast_rtp_get_us(struct ast_rtp *rtp, struct sockaddr_in *us); + +void ast_rtp_destroy(struct ast_rtp *rtp); + +void ast_rtp_set_callback(struct ast_rtp *rtp, ast_rtp_callback callback); + +void ast_rtp_set_data(struct ast_rtp *rtp, void *data); + +int ast_rtp_write(struct ast_rtp *rtp, struct ast_frame *f); + +int ast2rtp(int id); + +int rtp2ast(int id); + + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif |