Debian Codegraph @

src/modules/lost/pidf.h

raw symbols SCIP
1 /*
2 * $Id: pidf.h 1401 2006-12-14 11:12:42Z anca_vamanu $
3 *
4 * presence module - presence server implementation
5 *
6 * Copyright (C) 2006 Voice Sistem S.R.L.
7 *
8 * This file is part of Kamailio, a free SIP server.
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 *
12 * Kamailio is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version
16 *
17 * Kamailio is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 *
26 */
27
28 /*! \file
29 * \brief Kamailio Presence_XML :: PIDF handling
30 * \ref pidf.c
31 * \ingroup lost
32 */
33
34
35 #ifndef PIDF_H
36 #define PIDF_H
37
38 #include "../../core/str.h"
39 #include <libxml/parser.h>
40 #include <libxml/xmlmemory.h>
41 #include <libxml/xpath.h>
42 #include <libxml/xpathInternals.h>
43
44 #define BUFSIZE 128 /* temporary buffer to hold geolocation */
45 #define RANDSTRSIZE 16 /* temporary id in a findService request */
46
47 xmlNodePtr xmlNodeGetNodeByName(
48 xmlNodePtr node, const char *name, const char *ns);
49 xmlNodePtr xmlDocGetNodeByName(xmlDocPtr doc, const char *name, const char *ns);
50 xmlNodePtr xmlNodeGetChildByName(xmlNodePtr node, const char *name);
51 xmlXPathObjectPtr xmlGetNodeSet(xmlDocPtr doc, xmlChar *xpath, xmlChar *ns);
52
53 char *xmlDocGetNodeContentByName(
54 xmlDocPtr doc, const char *name, const char *ns);
55 char *xmlNodeGetNodeContentByName(
56 xmlNodePtr root, const char *name, const char *ns);
57 char *xmlNodeGetAttrContentByName(xmlNodePtr node, const char *name);
58
59 int xmlRegisterNamespaces(xmlXPathContextPtr context, const xmlChar *ns);
60
61 #endif