|
a/libupnpp/device/vdir.cxx |
|
b/libupnpp/device/vdir.cxx |
|
... |
|
... |
82 |
info->content_type = ixmlCloneDOMString(entry->mimetype.c_str());
|
82 |
info->content_type = ixmlCloneDOMString(entry->mimetype.c_str());
|
83 |
|
83 |
|
84 |
return 0;
|
84 |
return 0;
|
85 |
}
|
85 |
}
|
86 |
|
86 |
|
87 |
static UpnpWebFileHandle vdopen(const char* fn, enum UpnpOpenFileMode Mode)
|
87 |
static UpnpWebFileHandle vdopen(const char* fn, enum UpnpOpenFileMode)
|
88 |
{
|
88 |
{
|
89 |
//LOGDEB("vdopen: " << fn << endl);
|
89 |
//LOGDEB("vdopen: " << fn << endl);
|
90 |
VirtualDir::FileEnt *entry = vdgetentry(fn);
|
90 |
VirtualDir::FileEnt *entry = vdgetentry(fn);
|
91 |
if (entry == 0) {
|
91 |
if (entry == 0) {
|
92 |
LOGERR("vdopen: no entry for " << fn << endl);
|
92 |
LOGERR("vdopen: no entry for " << fn << endl);
|
|
... |
|
... |
126 |
return -1;
|
126 |
return -1;
|
127 |
}
|
127 |
}
|
128 |
return offset;
|
128 |
return offset;
|
129 |
}
|
129 |
}
|
130 |
|
130 |
|
131 |
static int vdwrite(UpnpWebFileHandle fileHnd, char* buf, size_t buflen)
|
131 |
static int vdwrite(UpnpWebFileHandle, char*, size_t)
|
132 |
{
|
132 |
{
|
133 |
LOGERR("vdwrite" << endl);
|
133 |
LOGERR("vdwrite" << endl);
|
134 |
return -1;
|
134 |
return -1;
|
135 |
}
|
135 |
}
|
136 |
|
136 |
|