provider.h 2.16 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*
	belle-sip - SIP (RFC3261) library.
    Copyright (C) 2010  Belledonne Communications SARL

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef belle_sip_provider_h
#define belle_sip_provider_h

23
#define BELLE_SIP_BRANCH_MAGIC_COOKIE "z9hG4bK"
24 25 26 27 28 29 30 31 32 33 34

BELLE_SIP_BEGIN_DECLS

int belle_sip_provider_add_listening_point(belle_sip_provider_t *p, belle_sip_listening_point_t *lp);

void belle_sip_provider_remove_listening_point(belle_sip_provider_t *p, belle_sip_listening_point_t *lp);

belle_sip_listening_point_t *belle_sip_provider_get_listening_point(belle_sip_provider_t *p, const char *transport);

const belle_sip_list_t *belle_sip_provider_get_listening_points(belle_sip_provider_t *p);

35
void belle_sip_provider_add_sip_listener(belle_sip_provider_t *p, belle_sip_listener_t *l);
36

37
void belle_sip_provider_remove_sip_listener(belle_sip_provider_t *p, belle_sip_listener_t *l);
38

39 40
belle_sip_header_call_id_t * belle_sip_provider_create_call_id(belle_sip_provider_t *prov);

41 42 43 44 45 46 47 48 49 50 51 52
belle_sip_client_transaction_t *belle_sip_provider_create_client_transaction(belle_sip_provider_t *p, belle_sip_request_t *req);

belle_sip_server_transaction_t *belle_sip_provider_create_server_transaction(belle_sip_provider_t *p, belle_sip_request_t *req);

belle_sip_stack_t *belle_sip_provider_get_sip_stack(belle_sip_provider_t *p);

void belle_sip_provider_send_request(belle_sip_provider_t *p, belle_sip_request_t *req);

void belle_sip_provider_send_response(belle_sip_provider_t *p, belle_sip_response_t *resp);

BELLE_SIP_END_DECLS

Simon Morlat's avatar
Simon Morlat committed
53 54
#define BELLE_SIP_PROVIDER(obj) BELLE_SIP_CAST(obj,belle_sip_provider_t)

55
#endif