libosip  5.3.0
osip_call_id.h
Go to the documentation of this file.
1 /*
2  The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3  Copyright (C) 2001-2020 Aymeric MOIZARD amoizard@antisip.com
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 
20 #ifndef _OSIP_CALL_ID_H_
21 #define _OSIP_CALL_ID_H_
22 
38 typedef struct osip_call_id osip_call_id_t;
39 
44 struct osip_call_id {
45  char *number;
46  char *host;
47 };
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
57 int osip_call_id_init(osip_call_id_t **header);
62 void osip_call_id_free(osip_call_id_t *header);
68 int osip_call_id_parse(osip_call_id_t *header, const char *hvalue);
74 int osip_call_id_to_str(const osip_call_id_t *header, char **dest);
80 int osip_call_id_clone(const osip_call_id_t *header, osip_call_id_t **dest);
86 void osip_call_id_set_number(osip_call_id_t *header, char *value);
97 void osip_call_id_set_host(osip_call_id_t *header, char *value);
103 
110 int osip_call_id_match(osip_call_id_t *callid1, osip_call_id_t *callid2);
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
118 #endif
void osip_call_id_free(osip_call_id_t *header)
Definition: osip_call_id.c:77
int osip_call_id_init(osip_call_id_t **header)
Definition: osip_call_id.c:64
int osip_call_id_parse(osip_call_id_t *header, const char *hvalue)
Definition: osip_call_id.c:94
int osip_call_id_match(osip_call_id_t *callid1, osip_call_id_t *callid2)
Definition: osip_call_id.c:209
void osip_call_id_set_number(osip_call_id_t *header, char *value)
Definition: osip_call_id.c:175
int osip_call_id_to_str(const osip_call_id_t *header, char **dest)
Definition: osip_call_id.c:135
char * osip_call_id_get_number(osip_call_id_t *header)
Definition: osip_call_id.c:161
char * osip_call_id_get_host(osip_call_id_t *header)
Definition: osip_call_id.c:168
int osip_call_id_clone(const osip_call_id_t *header, osip_call_id_t **dest)
Definition: osip_call_id.c:183
void osip_call_id_set_host(osip_call_id_t *header, char *value)
Definition: osip_call_id.c:179
Definition: osip_call_id.h:44
char * host
Definition: osip_call_id.h:46
char * number
Definition: osip_call_id.h:45