libUPnP  1.8.0
FileInfo.h
Go to the documentation of this file.
1 
2 
3 #ifndef FILEINFO_H
4 #define FILEINFO_H
5 
6 
17 typedef struct s_UpnpFileInfo UpnpFileInfo;
18 
19 
20 #include "ixml.h" /* for DOMString */
21 #include "UpnpGlobal.h" /* for EXPORT_SPEC */
22 
23 
24 #include <sys/types.h> /* for off_t */
25 #include <time.h> /* for time_t */
26 
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* __cplusplus */
31 
32 
35 
38 
41 
44 
49 EXPORT_SPEC void UpnpFileInfo_set_FileLength(UpnpFileInfo *p, off_t l);
50 
54 EXPORT_SPEC void UpnpFileInfo_set_LastModified(UpnpFileInfo *p, const time_t *t);
55 
59 EXPORT_SPEC void UpnpFileInfo_set_IsDirectory(UpnpFileInfo *p, int b);
60 
64 EXPORT_SPEC void UpnpFileInfo_set_IsReadable(UpnpFileInfo *p, int b);
65 
68 EXPORT_SPEC const char *UpnpFileInfo_get_ContentType_cstr(const UpnpFileInfo *p);
69 EXPORT_SPEC void UpnpFileInfo_set_ContentType(UpnpFileInfo *p, const DOMString s);
70 
74 EXPORT_SPEC const char *UpnpFileInfo_get_ExtraHeaders_cstr(const UpnpFileInfo *p);
75 EXPORT_SPEC void UpnpFileInfo_set_ExtraHeaders(UpnpFileInfo *p, const DOMString s);
76 
77 
78 #ifdef __cplusplus
79 }
80 #endif /* __cplusplus */
81 
82 
83 #endif /* FILEINFO_H */
84