1 /*
2 The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3 Copyright (C) 2001-2015 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
21 #ifndef _OSIP_CSEQ_H_
22 #define _OSIP_CSEQ_H_
23
40
46 {
49 };
50
51 #ifdef __cplusplus
52 extern "C"
53 {
54 #endif
55
106
114
115 #ifdef __cplusplus
116 }
117 #endif
118
121 #endif
Definition of the CSeq header.
char * method
CSeq method.
void osip_cseq_set_method(osip_cseq_t *header, char *value)
Set the method in the CSeq element.
void osip_cseq_free(osip_cseq_t *header)
Free a CSeq element.
int osip_cseq_match(osip_cseq_t *cseq1, osip_cseq_t *cseq2)
Check if the CSeq headers match.
int osip_cseq_clone(const osip_cseq_t *header, osip_cseq_t **dest)
Clone a CSeq element.
char * number
CSeq number.
int osip_cseq_parse(osip_cseq_t *header, const char *hvalue)
Parse a CSeq element.
int osip_cseq_to_str(const osip_cseq_t *header, char **dest)
Get a string representation of a CSeq element.
void osip_cseq_set_number(osip_cseq_t *header, char *value)
Set the number in the CSeq element.
char * osip_cseq_get_method(osip_cseq_t *header)
Get the method from a CSeq header.
int osip_cseq_init(osip_cseq_t **header)
Allocate a CSeq element.
char * osip_cseq_get_number(osip_cseq_t *header)
Get the number from a CSeq header.