libUPnP
1.8.0
|
00001 00002 00003 #ifndef FILEINFO_H 00004 #define FILEINFO_H 00005 00006 00017 typedef struct s_UpnpFileInfo UpnpFileInfo; 00018 00019 00020 #include "ixml.h" /* for DOMString */ 00021 #include "UpnpGlobal.h" /* for EXPORT_SPEC */ 00022 00023 00024 #include <sys/types.h> /* for off_t */ 00025 #include <time.h> /* for time_t */ 00026 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif /* __cplusplus */ 00031 00032 00034 EXPORT_SPEC UpnpFileInfo *UpnpFileInfo_new(); 00035 00037 EXPORT_SPEC void UpnpFileInfo_delete(UpnpFileInfo *p); 00038 00040 EXPORT_SPEC UpnpFileInfo *UpnpFileInfo_dup(const UpnpFileInfo *p); 00041 00043 EXPORT_SPEC void UpnpFileInfo_assign(UpnpFileInfo *p, const UpnpFileInfo *q); 00044 00048 EXPORT_SPEC off_t UpnpFileInfo_get_FileLength(const UpnpFileInfo *p); 00049 EXPORT_SPEC void UpnpFileInfo_set_FileLength(UpnpFileInfo *p, off_t l); 00050 00053 EXPORT_SPEC const time_t *UpnpFileInfo_get_LastModified(const UpnpFileInfo *p); 00054 EXPORT_SPEC void UpnpFileInfo_set_LastModified(UpnpFileInfo *p, const time_t *t); 00055 00058 EXPORT_SPEC int UpnpFileInfo_get_IsDirectory(const UpnpFileInfo *p); 00059 EXPORT_SPEC void UpnpFileInfo_set_IsDirectory(UpnpFileInfo *p, int b); 00060 00063 EXPORT_SPEC int UpnpFileInfo_get_IsReadable(const UpnpFileInfo *p); 00064 EXPORT_SPEC void UpnpFileInfo_set_IsReadable(UpnpFileInfo *p, int b); 00065 00067 EXPORT_SPEC const DOMString UpnpFileInfo_get_ContentType(const UpnpFileInfo *p); 00068 EXPORT_SPEC const char *UpnpFileInfo_get_ContentType_cstr(const UpnpFileInfo *p); 00069 EXPORT_SPEC void UpnpFileInfo_set_ContentType(UpnpFileInfo *p, const DOMString s); 00070 00073 EXPORT_SPEC const DOMString UpnpFileInfo_get_ExtraHeaders(const UpnpFileInfo *p); 00074 EXPORT_SPEC const char *UpnpFileInfo_get_ExtraHeaders_cstr(const UpnpFileInfo *p); 00075 EXPORT_SPEC void UpnpFileInfo_set_ExtraHeaders(UpnpFileInfo *p, const DOMString s); 00076 00077 00078 #ifdef __cplusplus 00079 } 00080 #endif /* __cplusplus */ 00081 00082 00083 #endif /* FILEINFO_H */ 00084