Coverage Report

Created: 2024-02-25 06:34

/src/kamailio/src/core/data_lump_rpl.h
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright (C) 2001-2003 FhG Fokus
3
 *
4
 * This file is part of Kamailio, a free SIP server.
5
 *
6
 * Kamailio is free software; you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation; either version 2 of the License, or
9
 * (at your option) any later version
10
 *
11
 * Kamailio is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
 *
20
 */
21
22
/*!
23
 * \file
24
 * \brief Kamailio core :: Data lumps
25
 * \author bogdan, andrei
26
 * \ingroup core
27
 * Module: \ref core
28
 */
29
30
31
#ifndef data_lump_rpl_h
32
#define data_lump_rpl_h
33
34
#include "parser/msg_parser.h"
35
36
37
0
#define LUMP_RPL_HDR (1 << 1)
38
0
#define LUMP_RPL_BODY (1 << 2)
39
0
#define LUMP_RPL_NODUP (1 << 3)
40
0
#define LUMP_RPL_NOFREE (1 << 4)
41
0
#define LUMP_RPL_SHMEM (1 << 5)
42
43
struct lump_rpl
44
{
45
  str text;
46
  int flags;
47
  struct lump_rpl *next;
48
};
49
50
struct lump_rpl **add_lump_rpl2(struct sip_msg *, char *, int, int);
51
52
53
/*! \brief compatibility wrapper for the old add_lump_rpl version */
54
inline static struct lump_rpl *add_lump_rpl(
55
    struct sip_msg *msg, char *s, int len, int flags)
56
0
{
57
0
  struct lump_rpl **l;
58
59
0
  l = add_lump_rpl2(msg, s, len, flags);
60
0
  return l ? (*l) : 0;
61
0
}
Unexecuted instantiation: msg_parser.c:add_lump_rpl
Unexecuted instantiation: data_lump_rpl.c:add_lump_rpl
Unexecuted instantiation: kemi.c:add_lump_rpl
Unexecuted instantiation: msg_translator.c:add_lump_rpl
62
63
64
void free_lump_rpl(struct lump_rpl *);
65
66
void unlink_lump_rpl(struct sip_msg *, struct lump_rpl *);
67
68
void del_nonshm_lump_rpl(struct lump_rpl **);
69
70
#endif