Switch to unified view

a/libupnpp/upnpp_p.hxx b/libupnpp/upnpp_p.hxx
...
...
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
17
18
#ifndef _UPNPP_H_X_INCLUDED_
18
#ifndef _UPNPP_H_X_INCLUDED_
19
#define _UPNPP_H_X_INCLUDED_
19
#define _UPNPP_H_X_INCLUDED_
20
#include "config.h"
20
21
21
/* Private shared defs for the library. Clients need not and should
22
/* Private shared defs for the library. Clients need not and should
22
   not include this */
23
   not include this */
23
24
24
#include <string>
25
#include <string>
...
...
27
extern void trimstring(std::string &s, const char *ws = " \t\n");
28
extern void trimstring(std::string &s, const char *ws = " \t\n");
28
extern std::string path_getfather(const std::string &s);
29
extern std::string path_getfather(const std::string &s);
29
extern std::string path_getsimple(const std::string &s);
30
extern std::string path_getsimple(const std::string &s);
30
template <class T> bool csvToStrings(const std::string& s, T &tokens);
31
template <class T> bool csvToStrings(const std::string& s, T &tokens);
31
32
32
#define UPNPP_DEBUG
33
#if defined(HAVE_UPNPSETLOGLEVEL)
33
34
#if defined(UPNPP_DEBUG) && defined(DEBUG)
35
#include <upnp/upnpdebug.h>
34
#include <upnp/upnpdebug.h>
36
#define PLOGINF(...) UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, __VA_ARGS__)
35
#define PLOGINF(...) UpnpPrintf(UPNP_INFO, API, __FILE__, __LINE__, __VA_ARGS__)
37
#define PLOGDEB(...) UpnpPrintf(UPNP_INFO,API, __FILE__, __LINE__, __VA_ARGS__)
36
#define PLOGDEB(...) UpnpPrintf(UPNP_INFO,API, __FILE__, __LINE__, __VA_ARGS__)
38
#else
37
#else
39
#define PLOGINF(...)
38
#define PLOGINF(...)