Discovery.h
Go to the documentation of this file.
#ifndef DISCOVERY_H
#define DISCOVERY_H
typedef struct s_UpnpDiscovery UpnpDiscovery;
#include "UpnpGlobal.h" /* for EXPORT_SPEC */
#include "UpnpInet.h" /* for sockaddr, sockaddr_storage */
#include "UpnpString.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
EXPORT_SPEC UpnpDiscovery *UpnpDiscovery_new();
EXPORT_SPEC void UpnpDiscovery_delete(UpnpDiscovery *p);
EXPORT_SPEC UpnpDiscovery *UpnpDiscovery_dup(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_assign(UpnpDiscovery *p, const UpnpDiscovery *q);
EXPORT_SPEC int UpnpDiscovery_get_ErrCode(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_ErrCode(UpnpDiscovery *p, int n);
EXPORT_SPEC int UpnpDiscovery_get_Expires(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_Expires(UpnpDiscovery *p, int n);
EXPORT_SPEC const UpnpString *UpnpDiscovery_get_DeviceID(const UpnpDiscovery *p);
EXPORT_SPEC const char *UpnpDiscovery_get_DeviceID_cstr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_DeviceID(UpnpDiscovery *p, const UpnpString *s);
EXPORT_SPEC void UpnpDiscovery_strcpy_DeviceID(UpnpDiscovery *p, const char *s);
EXPORT_SPEC const UpnpString *UpnpDiscovery_get_DeviceType(const UpnpDiscovery *p);
EXPORT_SPEC const char *UpnpDiscovery_get_DeviceType_cstr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_DeviceType(UpnpDiscovery *p, const UpnpString *s);
EXPORT_SPEC void UpnpDiscovery_strcpy_DeviceType(UpnpDiscovery *p, const char *s);
EXPORT_SPEC const UpnpString *UpnpDiscovery_get_ServiceType(const UpnpDiscovery *p);
EXPORT_SPEC const char *UpnpDiscovery_get_ServiceType_cstr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_ServiceType(UpnpDiscovery *p, const UpnpString *s);
EXPORT_SPEC void UpnpDiscovery_strcpy_ServiceType(UpnpDiscovery *p, const char *s);
EXPORT_SPEC const UpnpString *UpnpDiscovery_get_ServiceVer(const UpnpDiscovery *p);
EXPORT_SPEC const char *UpnpDiscovery_get_ServiceVer_cstr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_ServiceVer(UpnpDiscovery *p, const UpnpString *s);
EXPORT_SPEC void UpnpDiscovery_strcpy_ServiceVer(UpnpDiscovery *p, const char *s);
EXPORT_SPEC const UpnpString *UpnpDiscovery_get_Location(const UpnpDiscovery *p);
EXPORT_SPEC const char *UpnpDiscovery_get_Location_cstr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_Location(UpnpDiscovery *p, const UpnpString *s);
EXPORT_SPEC void UpnpDiscovery_strcpy_Location(UpnpDiscovery *p, const char *s);
EXPORT_SPEC void UpnpDiscovery_strncpy_Location(UpnpDiscovery *p, const char *s, int n);
EXPORT_SPEC const UpnpString *UpnpDiscovery_get_Os(const UpnpDiscovery *p);
EXPORT_SPEC const char *UpnpDiscovery_get_Os_cstr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_Os(UpnpDiscovery *p, const UpnpString *s);
EXPORT_SPEC void UpnpDiscovery_strcpy_Os(UpnpDiscovery *p, const char *s);
EXPORT_SPEC void UpnpDiscovery_strncpy_Os(UpnpDiscovery *p, const char *s, int n);
EXPORT_SPEC const UpnpString *UpnpDiscovery_get_Date(const UpnpDiscovery *p);
EXPORT_SPEC const char *UpnpDiscovery_get_Date_cstr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_Date(UpnpDiscovery *p, const UpnpString *s);
EXPORT_SPEC void UpnpDiscovery_strcpy_Date(UpnpDiscovery *p, const char *s);
EXPORT_SPEC const UpnpString *UpnpDiscovery_get_Ext(const UpnpDiscovery *p);
EXPORT_SPEC const char *UpnpDiscovery_get_Ext_cstr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_Ext(UpnpDiscovery *p, const UpnpString *s);
EXPORT_SPEC void UpnpDiscovery_strcpy_Ext(UpnpDiscovery *p, const char *s);
EXPORT_SPEC void UpnpDiscovery_strncpy_Ext(UpnpDiscovery *p, const char *s, int n);
EXPORT_SPEC const struct sockaddr *UpnpDiscovery_get_DestAddr(const UpnpDiscovery *p);
EXPORT_SPEC void UpnpDiscovery_set_DestAddr(UpnpDiscovery *p, const struct sockaddr *sa);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* DISCOVERY_H */
UpnpDiscovery_get_ServiceVer
const UpnpString * UpnpDiscovery_get_ServiceVer(const UpnpDiscovery *p)
Definition: Discovery.c:232
UpnpString.h
UpnpString object declarartion.
UpnpDiscovery_get_Expires
int UpnpDiscovery_get_Expires(const UpnpDiscovery *p)
Definition: Discovery.c:142
UpnpDiscovery
struct s_UpnpDiscovery UpnpDiscovery
Definition: Discovery.h:17
UpnpDiscovery_new
UpnpDiscovery * UpnpDiscovery_new()
Definition: Discovery.c:40
UpnpDiscovery_get_DestAddr
const struct sockaddr * UpnpDiscovery_get_DestAddr(const UpnpDiscovery *p)
Definition: Discovery.c:386
UpnpDiscovery_get_ErrCode
int UpnpDiscovery_get_ErrCode(const UpnpDiscovery *p)
Definition: Discovery.c:130
UpnpDiscovery_delete
void UpnpDiscovery_delete(UpnpDiscovery *p)
Definition: Discovery.c:62
UpnpDiscovery_assign
void UpnpDiscovery_assign(UpnpDiscovery *p, const UpnpDiscovery *q)
Definition: Discovery.c:112
UpnpDiscovery_get_Location
const UpnpString * UpnpDiscovery_get_Location(const UpnpDiscovery *p)
Definition: Discovery.c:258
UpnpDiscovery_get_DeviceType
const UpnpString * UpnpDiscovery_get_DeviceType(const UpnpDiscovery *p)
Definition: Discovery.c:180
UpnpInet.h
Provides a platform independent way to include TCP/IP types and functions.
UpnpDiscovery_get_ServiceType
const UpnpString * UpnpDiscovery_get_ServiceType(const UpnpDiscovery *p)
Definition: Discovery.c:206
UpnpDiscovery_get_DeviceID
const UpnpString * UpnpDiscovery_get_DeviceID(const UpnpDiscovery *p)
Definition: Discovery.c:154
UpnpDiscovery_get_Ext
const UpnpString * UpnpDiscovery_get_Ext(const UpnpDiscovery *p)
Definition: Discovery.c:352
UpnpString
struct s_UpnpString UpnpString
Type of the string objects inside libupnp.
Definition: UpnpString.h:35
UpnpDiscovery_dup
UpnpDiscovery * UpnpDiscovery_dup(const UpnpDiscovery *p)
Definition: Discovery.c:102
EXPORT_SPEC
#define EXPORT_SPEC
Export functions on WIN32 DLLs.
Definition: UpnpGlobal.h:82
UpnpDiscovery_get_Date
const UpnpString * UpnpDiscovery_get_Date(const UpnpDiscovery *p)
Definition: Discovery.c:326
UpnpGlobal.h
Defines constants that for some reason are not defined on some systems.
UpnpDiscovery_get_Os
const UpnpString * UpnpDiscovery_get_Os(const UpnpDiscovery *p)
Definition: Discovery.c:292