UpnpFileInfo.h
Go to the documentation of this file.
#ifndef UPNPFILEINFO_H
#define UPNPFILEINFO_H
#include <stdlib.h> /* for size_t */
#include "UpnpGlobal.h" /* for UPNP_EXPORT_SPEC */
#include "UpnpInet.h"
#include "UpnpString.h"
#include "ixml.h"
#include "list.h"
#include <sys/types.h>
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct s_UpnpFileInfo UpnpFileInfo;
UPNP_EXPORT_SPEC UpnpFileInfo *UpnpFileInfo_new();
UPNP_EXPORT_SPEC void UpnpFileInfo_delete(UpnpFileInfo *p);
UPNP_EXPORT_SPEC UpnpFileInfo *UpnpFileInfo_dup(const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_assign(
UpnpFileInfo *p, const UpnpFileInfo *q);
UPNP_EXPORT_SPEC off_t UpnpFileInfo_get_FileLength(const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_set_FileLength(UpnpFileInfo *p, off_t n);
UPNP_EXPORT_SPEC time_t UpnpFileInfo_get_LastModified(const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_set_LastModified(UpnpFileInfo *p, time_t n);
UPNP_EXPORT_SPEC int UpnpFileInfo_get_IsDirectory(const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_set_IsDirectory(UpnpFileInfo *p, int n);
UPNP_EXPORT_SPEC int UpnpFileInfo_get_IsReadable(const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_set_IsReadable(UpnpFileInfo *p, int n);
UPNP_EXPORT_SPEC const DOMString UpnpFileInfo_get_ContentType(
const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_set_ContentType(
UpnpFileInfo *p, const DOMString s);
UPNP_EXPORT_SPEC const char *UpnpFileInfo_get_ContentType_cstr(
const UpnpFileInfo *p);
UPNP_EXPORT_SPEC const UpnpListHead *UpnpFileInfo_get_ExtraHeadersList(
const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_set_ExtraHeadersList(
UpnpFileInfo *p, const UpnpListHead *q);
UPNP_EXPORT_SPEC void UpnpFileInfo_add_to_list_ExtraHeadersList(
UpnpFileInfo *p, UpnpListHead *head);
UPNP_EXPORT_SPEC const struct sockaddr_storage *UpnpFileInfo_get_CtrlPtIPAddr(
const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_set_CtrlPtIPAddr(
UpnpFileInfo *p, const struct sockaddr_storage *buf);
UPNP_EXPORT_SPEC void UpnpFileInfo_clear_CtrlPtIPAddr(UpnpFileInfo *p);
UPNP_EXPORT_SPEC const UpnpString *UpnpFileInfo_get_Os(const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_set_Os(UpnpFileInfo *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpFileInfo_get_Os_Length(const UpnpFileInfo *p);
UPNP_EXPORT_SPEC const char *UpnpFileInfo_get_Os_cstr(const UpnpFileInfo *p);
UPNP_EXPORT_SPEC int UpnpFileInfo_strcpy_Os(UpnpFileInfo *p, const char *s);
UPNP_EXPORT_SPEC int UpnpFileInfo_strncpy_Os(
UpnpFileInfo *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpFileInfo_clear_Os(UpnpFileInfo *p);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* UPNPFILEINFO_H */
UpnpFileInfo_set_IsDirectory
int UpnpFileInfo_set_IsDirectory(UpnpFileInfo *p, int n)
Definition UpnpFileInfo.c:136
UpnpFileInfo_set_LastModified
int UpnpFileInfo_set_LastModified(UpnpFileInfo *p, time_t n)
Definition UpnpFileInfo.c:124
UpnpFileInfo_set_CtrlPtIPAddr
int UpnpFileInfo_set_CtrlPtIPAddr(UpnpFileInfo *p, const struct sockaddr_storage *buf)
Definition UpnpFileInfo.c:201
UpnpFileInfo_get_IsReadable
int UpnpFileInfo_get_IsReadable(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:143
UpnpFileInfo_dup
UpnpFileInfo * UpnpFileInfo_dup(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:95
UpnpFileInfo_strcpy_Os
int UpnpFileInfo_strcpy_Os(UpnpFileInfo *p, const char *s)
Definition UpnpFileInfo.c:233
UpnpFileInfo_get_FileLength
off_t UpnpFileInfo_get_FileLength(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:107
UpnpFileInfo_get_LastModified
time_t UpnpFileInfo_get_LastModified(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:119
UpnpFileInfo_get_ContentType
const DOMString UpnpFileInfo_get_ContentType(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:155
UpnpFileInfo_get_ExtraHeadersList
const UpnpListHead * UpnpFileInfo_get_ExtraHeadersList(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:176
UpnpFileInfo_get_IsDirectory
int UpnpFileInfo_get_IsDirectory(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:131
UpnpFileInfo_set_FileLength
int UpnpFileInfo_set_FileLength(UpnpFileInfo *p, off_t n)
Definition UpnpFileInfo.c:112
UpnpFileInfo_clear_CtrlPtIPAddr
void UpnpFileInfo_clear_CtrlPtIPAddr(UpnpFileInfo *p)
Definition UpnpFileInfo.c:209
UpnpFileInfo_set_ContentType
int UpnpFileInfo_set_ContentType(UpnpFileInfo *p, const DOMString s)
Definition UpnpFileInfo.c:160
UpnpFileInfo_assign
int UpnpFileInfo_assign(UpnpFileInfo *p, const UpnpFileInfo *q)
Definition UpnpFileInfo.c:70
UpnpFileInfo_clear_Os
void UpnpFileInfo_clear_Os(UpnpFileInfo *p)
Definition UpnpFileInfo.c:243
UpnpFileInfo_new
UpnpFileInfo * UpnpFileInfo_new()
Definition UpnpFileInfo.c:30
UpnpFileInfo_get_Os
const UpnpString * UpnpFileInfo_get_Os(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:214
UpnpFileInfo_set_ExtraHeadersList
int UpnpFileInfo_set_ExtraHeadersList(UpnpFileInfo *p, const UpnpListHead *q)
Definition UpnpFileInfo.c:181
UpnpFileInfo_get_Os_cstr
const char * UpnpFileInfo_get_Os_cstr(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:228
UpnpFileInfo_set_Os
int UpnpFileInfo_set_Os(UpnpFileInfo *p, const UpnpString *s)
Definition UpnpFileInfo.c:216
UpnpFileInfo_delete
void UpnpFileInfo_delete(UpnpFileInfo *p)
Definition UpnpFileInfo.c:49
UpnpFileInfo_get_CtrlPtIPAddr
const struct sockaddr_storage * UpnpFileInfo_get_CtrlPtIPAddr(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:195
UpnpFileInfo_strncpy_Os
int UpnpFileInfo_strncpy_Os(UpnpFileInfo *p, const char *s, size_t n)
Definition UpnpFileInfo.c:238
UpnpFileInfo_get_ContentType_cstr
const char * UpnpFileInfo_get_ContentType_cstr(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:171
UpnpFileInfo_get_Os_Length
size_t UpnpFileInfo_get_Os_Length(const UpnpFileInfo *p)
Definition UpnpFileInfo.c:223
UpnpFileInfo_set_IsReadable
int UpnpFileInfo_set_IsReadable(UpnpFileInfo *p, int n)
Definition UpnpFileInfo.c:148
UpnpFileInfo_add_to_list_ExtraHeadersList
void UpnpFileInfo_add_to_list_ExtraHeadersList(UpnpFileInfo *p, UpnpListHead *head)
Definition UpnpFileInfo.c:188
UpnpGlobal.h
Defines constants that for some reason are not defined on some systems.
UPNP_EXPORT_SPEC
#define UPNP_EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition UpnpGlobal.h:105
UpnpInet.h
Provides a platform independent way to include TCP/IP types and functions.
UpnpString.h
UpnpString object declaration.
UpnpString
struct s_UpnpString UpnpString
Type of the string objects inside libupnp.
Definition UpnpString.h:33
DOMString
#define DOMString
The type of DOM strings.
Definition ixml.h:48
ixml.h
UpnpListHead
Definition list.h:52
s_UpnpFileInfo
Definition UpnpFileInfo.c:19