Commit db901e2d authored by Kai Vehmanen's avatar Kai Vehmanen

Removed various deprecated functions that were already commented out from the...

Removed various deprecated functions that were already commented out from the code. Closed sf.net bug #1456403.

darcs-hash:20060505144027-7659e-94c66b1ae38ae7704ef4fee0b27b38f47c10240e.gz
parent 2136cab8
2006-05-05 Kai Vehmanen <kai.vehmanen@nokia.com>
* sofia-sip/stun.h, stun.c: Removed various deprecated functions
that were already commented out from the code. Closed sf.net
bug #1456403.
2006-03-27 Kai Vehmanen <kai.vehmanen@nokia.com>
* stun.h: Added stun_server_address().
......
......@@ -103,15 +103,6 @@ typedef enum stun_state_e {
stun_discovery_processing,
stun_discovery_done,
#if 0
/* STUN bind events */
stun_bind_init, /**< Initial state */
stun_bind_processing, /**< Processing server reply */
stun_bind_done, /**< Initial state */
stun_request_not_found, /**< Response without matching request */
#endif
/* STUN errors */
/* Do not change the order! Errors need to be after stun_error */
......@@ -120,12 +111,6 @@ typedef enum stun_state_e {
stun_tls_connection_failed,
stun_tls_ssl_connect_failed,
#if 0
/* stun client errors */
stun_bind_error,
stun_bind_timeout,
#endif
stun_request_timeout,
stun_discovery_error,
stun_discovery_timeout,
......@@ -252,53 +237,6 @@ void stun_mini_request(stun_mini_t *server, int socket,
void *msg, ssize_t msglen,
void *addr, socklen_t addrlen);
#if 0
/* --------------------------------------------------------------------
* Deprecated functions and definitions. These are supported with limited
* compatibility. */
/* Used if no stun_discovery_f specified for a discovery */
typedef void (*stun_event_f)(stun_magic_t *magic,
stun_handle_t *sh,
stun_discovery_t *sd,
stun_action_t action,
stun_state_t event);
stun_handle_t *stun_handle_create(stun_magic_t *context,
su_root_t *root,
stun_event_f cb,
tag_type_t tag, tag_value_t value, ...);
int stun_handle_release(stun_handle_t *sh, su_socket_t s);
su_root_t *stun_handle_root(stun_handle_t *sh);
int stun_handle_request_shared_secret(stun_handle_t *sh);
/** Bind a socket using STUN. */
int stun_handle_bind(stun_handle_t *sh,
/* su_localinfo_t *my_addr, */
tag_type_t tag, tag_value_t value,
...);
int stun_handle_set_uname_pwd(stun_handle_t *sh,
const char *uname,
int len_uname,
const char *pwd,
int len_pwd);
int stun_handle_process_message(stun_handle_t *sh,
su_socket_t s,
su_sockaddr_t *sa,
socklen_t salen,
void *data,
int len);
int stun_handle_request_shared_secret(stun_handle_t *sh);
int stun_handle_set_uname_pwd(stun_handle_t *sh,
const char *uname,
int len_uname,
const char *pwd,
int len_pwd);
#endif
SOFIA_END_DECLS
#endif /* !defined(STUN_H) */
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment