libosip  5.3.0
osip_cseq.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_CSEQ_H_
21 #define _OSIP_CSEQ_H_
22 
38 typedef struct osip_cseq osip_cseq_t;
39 
44 struct osip_cseq {
45  char *method;
46  char *number;
47 };
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
57 int osip_cseq_init(osip_cseq_t **header);
62 void osip_cseq_free(osip_cseq_t *header);
68 int osip_cseq_parse(osip_cseq_t *header, const char *hvalue);
74 int osip_cseq_to_str(const osip_cseq_t *header, char **dest);
80 int osip_cseq_clone(const osip_cseq_t *header, osip_cseq_t **dest);
86 void osip_cseq_set_number(osip_cseq_t *header, char *value);
91 char *osip_cseq_get_number(osip_cseq_t *header);
97 void osip_cseq_set_method(osip_cseq_t *header, char *value);
102 char *osip_cseq_get_method(osip_cseq_t *header);
103 
110 int osip_cseq_match(osip_cseq_t *cseq1, osip_cseq_t *cseq2);
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
118 #endif
void osip_cseq_set_number(osip_cseq_t *header, char *value)
Definition: osip_cseq.c:128
int osip_cseq_to_str(const osip_cseq_t *header, char **dest)
Definition: osip_cseq.c:139
char * osip_cseq_get_method(osip_cseq_t *header)
Definition: osip_cseq.c:124
int osip_cseq_parse(osip_cseq_t *header, const char *hvalue)
Definition: osip_cseq.c:71
char * osip_cseq_get_number(osip_cseq_t *header)
Definition: osip_cseq.c:120
int osip_cseq_match(osip_cseq_t *cseq1, osip_cseq_t *cseq2)
Definition: osip_cseq.c:197
void osip_cseq_set_method(osip_cseq_t *header, char *value)
Definition: osip_cseq.c:132
void osip_cseq_free(osip_cseq_t *header)
Definition: osip_cseq.c:159
int osip_cseq_init(osip_cseq_t **header)
Definition: osip_cseq.c:26
int osip_cseq_clone(const osip_cseq_t *header, osip_cseq_t **dest)
Definition: osip_cseq.c:168
Definition: osip_cseq.h:44
char * method
Definition: osip_cseq.h:45
char * number
Definition: osip_cseq.h:46