libupnpp  0.16.0
A C++ wrapper for the Portable UPnP reference library
upnpputils.hxx
1 /* Copyright (C) 2006-2016 J.F.Dockes
2  *
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2.1 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16  * 02110-1301 USA
17  */
18 #ifndef _UPNPPUTILS_H_X_INCLUDED_
19 #define _UPNPPUTILS_H_X_INCLUDED_
20 
21 #include <string>
22 #include <vector>
23 
24 #include "upnppexports.hxx"
25 
26 namespace UPnPP {
27 
28 void UPNPP_APItimespec_addnanos(struct timespec *ts, long long nanos);
29 
30 // Get the list of network adapters. Note: under Windows, this returns
31 // the Adapter descriptions, because the names are GUIds which appear
32 // nowhere in the system GUI, and what is called "name" in the GUI is
33 // nowhere to be seen in the API...
34 bool UPNPP_API getAdapterNames(std::vector<std::string>& names);
35 
36 }
37 
38 #endif /* _UPNPPUTILS_H_X_INCLUDED_ */
Definition: base64.cxx:26