Commit d75b4bf2 authored by Pekka Pessi's avatar Pekka Pessi

Added SOFIAPUBFUN and SOFIAPUBVAR to all public nua functions and variables.

darcs-hash:20060511070211-65a35-5aa6b0a0b23f155b7d9977f15f3faba76f09aec7.gz
parent 517b50d4
......@@ -147,7 +147,7 @@ typedef struct event_s {
/** NUA API version */
#define NUA_VERSION "2.0"
/** NUA module version */
extern char const nua_version[];
SOFIAPUBVAR char const nua_version[];
typedef void (*nua_callback_f)(nua_event_t event,
int status, char const *phrase,
......@@ -157,172 +157,173 @@ typedef void (*nua_callback_f)(nua_event_t event,
tagi_t tags[]);
/** Create a NUA agent. */
nua_t *nua_create(su_root_t *root,
nua_callback_f callback,
nua_magic_t *magic,
tag_type_t tag, tag_value_t value,
...);
SOFIAPUBFUN nua_t *nua_create(su_root_t *root,
nua_callback_f callback,
nua_magic_t *magic,
tag_type_t tag, tag_value_t value,
...);
/** Shutdown NUA stack. */
void nua_shutdown(nua_t *nua);
SOFIAPUBFUN void nua_shutdown(nua_t *nua);
/** Destroy the NUA stack. */
void nua_destroy(nua_t *nua);
SOFIAPUBFUN void nua_destroy(nua_t *nua);
/** Set NUA parameters. */
void nua_set_params(nua_t *nua, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_set_params(nua_t *, tag_type_t, tag_value_t, ...);
/** Get NUA parameters. */
void nua_get_params(nua_t *nua, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_get_params(nua_t *nua, tag_type_t, tag_value_t, ...);
/** Obtain default operation handle of the NUA stack object. */
nua_handle_t *nua_default(nua_t *nua);
SOFIAPUBFUN nua_handle_t *nua_default(nua_t *nua);
/** Create an operation handle */
nua_handle_t *nua_handle(nua_t *nua, nua_hmagic_t *hmagic,
tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN nua_handle_t *nua_handle(nua_t *nua, nua_hmagic_t *hmagic,
tag_type_t, tag_value_t, ...);
/** Destroy a handle */
void nua_handle_destroy(nua_handle_t *h);
SOFIAPUBFUN void nua_handle_destroy(nua_handle_t *h);
/** Make a new reference to handle */
nua_handle_t *nua_handle_ref(nua_handle_t *);
SOFIAPUBFUN nua_handle_t *nua_handle_ref(nua_handle_t *);
/** Destroy reference to handle */
int nua_handle_unref(nua_handle_t *);
SOFIAPUBFUN int nua_handle_unref(nua_handle_t *);
/** Bind a callback context to an operation handle. */
void nua_handle_bind(nua_handle_t *nh, nua_hmagic_t *magic);
SOFIAPUBFUN void nua_handle_bind(nua_handle_t *nh, nua_hmagic_t *magic);
/** Set handle parameters. */
void nua_set_hparams(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_set_hparams(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Get handle parameters. */
void nua_get_hparams(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_get_hparams(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Check if operation handle is used for INVITE */
int nua_handle_has_invite(nua_handle_t const *nh);
SOFIAPUBFUN int nua_handle_has_invite(nua_handle_t const *nh);
/** Check if operation handle has been used with outgoing SUBSCRIBE of REFER request. */
int nua_handle_has_subscribe(nua_handle_t const *nh);
SOFIAPUBFUN int nua_handle_has_subscribe(nua_handle_t const *nh);
/** Check if operation handle has been used with nua_register() or nua_unregister(). */
int nua_handle_has_register(nua_handle_t const *nh);
SOFIAPUBFUN int nua_handle_has_register(nua_handle_t const *nh);
/** Check if operation handle has an active call */
int nua_handle_has_active_call(nua_handle_t const *nh);
SOFIAPUBFUN int nua_handle_has_active_call(nua_handle_t const *nh);
/** Check if operation handle has a call on hold */
int nua_handle_has_call_on_hold(nua_handle_t const *nh);
SOFIAPUBFUN int nua_handle_has_call_on_hold(nua_handle_t const *nh);
/** Check if handle has active event subscriptions (refers sent). */
int nua_handle_has_events(nua_handle_t const *nh);
SOFIAPUBFUN int nua_handle_has_events(nua_handle_t const *nh);
/** Check if operation handle has active registrations */
int nua_handle_has_registrations(nua_handle_t const *nh);
SOFIAPUBFUN int nua_handle_has_registrations(nua_handle_t const *nh);
/** Get the remote address (From/To header) of operation handle */
sip_to_t const *nua_handle_remote(nua_handle_t const *nh);
SOFIAPUBFUN sip_to_t const *nua_handle_remote(nua_handle_t const *nh);
/** Get the local address (From/To header) of operation handle */
sip_to_t const *nua_handle_local(nua_handle_t const *nh);
SOFIAPUBFUN sip_to_t const *nua_handle_local(nua_handle_t const *nh);
/** Get name for NUA event. */
char const *nua_event_name(nua_event_t event);
SOFIAPUBFUN char const *nua_event_name(nua_event_t event);
/** Send SIP REGISTER request to the registrar. */
void nua_register(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_register(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Unregister. */
void nua_unregister(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_unregister(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Place a call using SIP INVITE method. */
void nua_invite(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_invite(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Acknowledge a succesfull response to INVITE request. */
void nua_ack(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_ack(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Acknowledge a reliable preliminary response to INVITE request. */
void nua_prack(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_prack(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Query capabilities from server */
void nua_options(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_options(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Send PUBLISH request to publication server. */
void nua_publish(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_publish(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Send un-PUBLISH request to publication server. */
void nua_unpublish(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_unpublish(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Send an instant message. */
void nua_message(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_message(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Send a chat message. */
void nua_chat(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_chat(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Send an INFO request. */
void nua_info(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_info(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Subscribe a SIP event. */
void nua_subscribe(nua_handle_t *nh, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_subscribe(nua_handle_t *nh, tag_type_t, tag_value_t, ...);
/** Unsubscribe an event. */
void nua_unsubscribe(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_unsubscribe(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Send a NOTIFY message. */
void nua_notify(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_notify(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Create an event server. */
void nua_notifier(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_notifier(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Terminate an event server. */
void nua_terminate(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_terminate(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Transfer a call. */
void nua_refer(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_refer(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Update a call */
void nua_update(nua_handle_t *, tag_type_t tag, tag_value_t value, ...);
SOFIAPUBFUN void nua_update(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Hangdown a call. */
void nua_bye(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_bye(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Cancel an INVITE operation */
void nua_cancel(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_cancel(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Authenticate an operation. */
void nua_authenticate(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_authenticate(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Authorize a subscriber. */
void nua_authorize(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_authorize(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Redirect an operation. */
void nua_redirect(nua_handle_t *, tag_type_t, tag_value_t, ...);
SOFIAPUBFUN void nua_redirect(nua_handle_t *, tag_type_t, tag_value_t, ...);
/** Respond with given status. */
void nua_respond(nua_handle_t *nh,
int status, char const *phrase,
tag_type_t tag, tag_value_t value,
...);
SOFIAPUBFUN void nua_respond(nua_handle_t *nh,
int status, char const *phrase,
tag_type_t, tag_value_t,
...);
#define nua_handle_home(nh) ((su_home_t *)(nh))
/** Generate an instance identifier */
char const *nua_generate_instance_identifier(su_home_t *);
SOFIAPUBFUN char const *nua_generate_instance_identifier(su_home_t *);
#ifndef NUA_SAVED_EVENT_T
#define NUA_SAVED_EVENT_T struct nua_saved_event *
#endif
/** Abstract type for saved nua events. */
typedef NUA_SAVED_EVENT_T nua_saved_event_t;
/** Save last nua event */
int nua_save_event(nua_t *nua, nua_saved_event_t return_saved[1]);
SOFIAPUBFUN int nua_save_event(nua_t *nua, nua_saved_event_t return_saved[1]);
/** Get information from saved event */
nua_event_data_t const *nua_event_data(nua_saved_event_t const saved[1]);
SOFIAPUBFUN nua_event_data_t const *nua_event_data(nua_saved_event_t const saved[1]);
/** Destroy a save nua event */
void nua_destroy_event(nua_saved_event_t *saved);
SOFIAPUBFUN void nua_destroy_event(nua_saved_event_t *saved);
SOFIA_END_DECLS
......
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