|
a/upmpd/ohmetacache.cxx |
|
b/upmpd/ohmetacache.cxx |
|
... |
|
... |
13 |
* along with this program; if not, write to the
|
13 |
* along with this program; if not, write to the
|
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
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 |
#include <unistd.h>
|
18 |
#include "ohmetacache.hxx"
|
19 |
#include <fcntl.h>
|
|
|
20 |
#include <string.h>
|
|
|
21 |
|
19 |
|
22 |
#include <iostream>
|
20 |
#include <errno.h> // for errno
|
|
|
21 |
#include <stdio.h> // for rename
|
|
|
22 |
#include <string.h> // for strchr
|
|
|
23 |
|
|
|
24 |
#include <iostream> // for basic_ostream, operator<<, etc
|
|
|
25 |
#include <utility> // for pair
|
|
|
26 |
|
|
|
27 |
#include "libupnpp/log.hxx" // for LOGERR, LOGDEB
|
|
|
28 |
#include "libupnpp/workqueue.hxx" // for WorkQueue
|
|
|
29 |
|
23 |
using namespace std;
|
30 |
using namespace std;
|
24 |
|
|
|
25 |
#include "ohmetacache.hxx"
|
|
|
26 |
#include "libupnpp/workqueue.hxx"
|
|
|
27 |
#include "libupnpp/log.hxx"
|
|
|
28 |
|
|
|
29 |
using namespace UPnPP;
|
31 |
using namespace UPnPP;
|
30 |
|
32 |
|
31 |
class SaveCacheTask {
|
33 |
class SaveCacheTask {
|
32 |
public:
|
34 |
public:
|
33 |
SaveCacheTask(const string& fn, const mcache_type& cache)
|
35 |
SaveCacheTask(const string& fn, const mcache_type& cache)
|