UpnpDiscovery.h
Go to the documentation of this file.
#ifndef UPNPDISCOVERY_H
#define UPNPDISCOVERY_H
#include <stdlib.h> /* for size_t */
#include "UpnpGlobal.h" /* for UPNP_EXPORT_SPEC */
#include "UpnpInet.h"
#include "UpnpString.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct s_UpnpDiscovery UpnpDiscovery;
UPNP_EXPORT_SPEC UpnpDiscovery *UpnpDiscovery_new(void);
UPNP_EXPORT_SPEC void UpnpDiscovery_delete(UpnpDiscovery *p);
UPNP_EXPORT_SPEC UpnpDiscovery *UpnpDiscovery_dup(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_assign(
UpnpDiscovery *p, const UpnpDiscovery *q);
UPNP_EXPORT_SPEC int UpnpDiscovery_get_ErrCode(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_ErrCode(UpnpDiscovery *p, int n);
UPNP_EXPORT_SPEC int UpnpDiscovery_get_Expires(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_Expires(UpnpDiscovery *p, int n);
UPNP_EXPORT_SPEC const UpnpString *UpnpDiscovery_get_DeviceID(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_DeviceID(
UpnpDiscovery *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpDiscovery_get_DeviceID_Length(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC const char *UpnpDiscovery_get_DeviceID_cstr(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_strcpy_DeviceID(
UpnpDiscovery *p, const char *s);
UPNP_EXPORT_SPEC int UpnpDiscovery_strncpy_DeviceID(
UpnpDiscovery *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_DeviceID(UpnpDiscovery *p);
UPNP_EXPORT_SPEC const UpnpString *UpnpDiscovery_get_DeviceType(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_DeviceType(
UpnpDiscovery *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpDiscovery_get_DeviceType_Length(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC const char *UpnpDiscovery_get_DeviceType_cstr(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_strcpy_DeviceType(
UpnpDiscovery *p, const char *s);
UPNP_EXPORT_SPEC int UpnpDiscovery_strncpy_DeviceType(
UpnpDiscovery *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_DeviceType(UpnpDiscovery *p);
UPNP_EXPORT_SPEC const UpnpString *UpnpDiscovery_get_ServiceType(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_ServiceType(
UpnpDiscovery *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpDiscovery_get_ServiceType_Length(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC const char *UpnpDiscovery_get_ServiceType_cstr(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_strcpy_ServiceType(
UpnpDiscovery *p, const char *s);
UPNP_EXPORT_SPEC int UpnpDiscovery_strncpy_ServiceType(
UpnpDiscovery *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_ServiceType(UpnpDiscovery *p);
UPNP_EXPORT_SPEC const UpnpString *UpnpDiscovery_get_ServiceVer(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_ServiceVer(
UpnpDiscovery *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpDiscovery_get_ServiceVer_Length(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC const char *UpnpDiscovery_get_ServiceVer_cstr(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_strcpy_ServiceVer(
UpnpDiscovery *p, const char *s);
UPNP_EXPORT_SPEC int UpnpDiscovery_strncpy_ServiceVer(
UpnpDiscovery *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_ServiceVer(UpnpDiscovery *p);
UPNP_EXPORT_SPEC const UpnpString *UpnpDiscovery_get_Location(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_Location(
UpnpDiscovery *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpDiscovery_get_Location_Length(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC const char *UpnpDiscovery_get_Location_cstr(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_strcpy_Location(
UpnpDiscovery *p, const char *s);
UPNP_EXPORT_SPEC int UpnpDiscovery_strncpy_Location(
UpnpDiscovery *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_Location(UpnpDiscovery *p);
UPNP_EXPORT_SPEC const UpnpString *UpnpDiscovery_get_Os(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_Os(
UpnpDiscovery *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpDiscovery_get_Os_Length(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC const char *UpnpDiscovery_get_Os_cstr(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_strcpy_Os(UpnpDiscovery *p, const char *s);
UPNP_EXPORT_SPEC int UpnpDiscovery_strncpy_Os(
UpnpDiscovery *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_Os(UpnpDiscovery *p);
UPNP_EXPORT_SPEC const UpnpString *UpnpDiscovery_get_Date(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_Date(
UpnpDiscovery *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpDiscovery_get_Date_Length(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC const char *UpnpDiscovery_get_Date_cstr(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_strcpy_Date(UpnpDiscovery *p, const char *s);
UPNP_EXPORT_SPEC int UpnpDiscovery_strncpy_Date(
UpnpDiscovery *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_Date(UpnpDiscovery *p);
UPNP_EXPORT_SPEC const UpnpString *UpnpDiscovery_get_Ext(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_Ext(
UpnpDiscovery *p, const UpnpString *s);
UPNP_EXPORT_SPEC size_t UpnpDiscovery_get_Ext_Length(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC const char *UpnpDiscovery_get_Ext_cstr(const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_strcpy_Ext(UpnpDiscovery *p, const char *s);
UPNP_EXPORT_SPEC int UpnpDiscovery_strncpy_Ext(
UpnpDiscovery *p, const char *s, size_t n);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_Ext(UpnpDiscovery *p);
UPNP_EXPORT_SPEC const struct sockaddr_storage *UpnpDiscovery_get_DestAddr(
const UpnpDiscovery *p);
UPNP_EXPORT_SPEC int UpnpDiscovery_set_DestAddr(
UpnpDiscovery *p, const struct sockaddr_storage *buf);
UPNP_EXPORT_SPEC void UpnpDiscovery_clear_DestAddr(UpnpDiscovery *p);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* UPNPDISCOVERY_H */
UpnpDiscovery_get_Ext
const UpnpString * UpnpDiscovery_get_Ext(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:397
UpnpDiscovery_set_Ext
int UpnpDiscovery_set_Ext(UpnpDiscovery *p, const UpnpString *s)
Definition UpnpDiscovery.c:402
UpnpDiscovery_strncpy_Os
int UpnpDiscovery_strncpy_Os(UpnpDiscovery *p, const char *s, size_t n)
Definition UpnpDiscovery.c:356
UpnpDiscovery_set_Date
int UpnpDiscovery_set_Date(UpnpDiscovery *p, const UpnpString *s)
Definition UpnpDiscovery.c:368
UpnpDiscovery_get_Location_cstr
const char * UpnpDiscovery_get_Location_cstr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:309
UpnpDiscovery_new
UpnpDiscovery * UpnpDiscovery_new(void)
Definition UpnpDiscovery.c:33
UpnpDiscovery_dup
UpnpDiscovery * UpnpDiscovery_dup(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:114
UpnpDiscovery_set_Location
int UpnpDiscovery_set_Location(UpnpDiscovery *p, const UpnpString *s)
Definition UpnpDiscovery.c:297
UpnpDiscovery_strcpy_ServiceVer
int UpnpDiscovery_strcpy_ServiceVer(UpnpDiscovery *p, const char *s)
Definition UpnpDiscovery.c:277
UpnpDiscovery_get_Os
const UpnpString * UpnpDiscovery_get_Os(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:329
UpnpDiscovery_get_ServiceType_cstr
const char * UpnpDiscovery_get_ServiceType_cstr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:235
UpnpDiscovery_strncpy_DeviceID
int UpnpDiscovery_strncpy_DeviceID(UpnpDiscovery *p, const char *s, size_t n)
Definition UpnpDiscovery.c:171
UpnpDiscovery_get_DeviceID_Length
size_t UpnpDiscovery_get_DeviceID_Length(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:156
UpnpDiscovery_set_Os
int UpnpDiscovery_set_Os(UpnpDiscovery *p, const UpnpString *s)
Definition UpnpDiscovery.c:334
UpnpDiscovery_delete
void UpnpDiscovery_delete(UpnpDiscovery *p)
Definition UpnpDiscovery.c:55
UpnpDiscovery_get_DeviceType_cstr
const char * UpnpDiscovery_get_DeviceType_cstr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:198
UpnpDiscovery_set_Expires
int UpnpDiscovery_set_Expires(UpnpDiscovery *p, int n)
Definition UpnpDiscovery.c:137
UpnpDiscovery_strcpy_ServiceType
int UpnpDiscovery_strcpy_ServiceType(UpnpDiscovery *p, const char *s)
Definition UpnpDiscovery.c:240
UpnpDiscovery_clear_Date
void UpnpDiscovery_clear_Date(UpnpDiscovery *p)
Definition UpnpDiscovery.c:395
UpnpDiscovery_get_DestAddr
const struct sockaddr_storage * UpnpDiscovery_get_DestAddr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:431
UpnpDiscovery_get_Date
const UpnpString * UpnpDiscovery_get_Date(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:363
UpnpDiscovery_get_Date_cstr
const char * UpnpDiscovery_get_Date_cstr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:380
UpnpDiscovery_set_DeviceType
int UpnpDiscovery_set_DeviceType(UpnpDiscovery *p, const UpnpString *s)
Definition UpnpDiscovery.c:186
UpnpDiscovery_get_ServiceVer
const UpnpString * UpnpDiscovery_get_ServiceVer(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:255
UpnpDiscovery_clear_Os
void UpnpDiscovery_clear_Os(UpnpDiscovery *p)
Definition UpnpDiscovery.c:361
UpnpDiscovery_get_ServiceType
const UpnpString * UpnpDiscovery_get_ServiceType(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:218
UpnpDiscovery_strncpy_Date
int UpnpDiscovery_strncpy_Date(UpnpDiscovery *p, const char *s, size_t n)
Definition UpnpDiscovery.c:390
UpnpDiscovery_strcpy_Date
int UpnpDiscovery_strcpy_Date(UpnpDiscovery *p, const char *s)
Definition UpnpDiscovery.c:385
UpnpDiscovery_get_Location
const UpnpString * UpnpDiscovery_get_Location(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:292
UpnpDiscovery_strncpy_ServiceType
int UpnpDiscovery_strncpy_ServiceType(UpnpDiscovery *p, const char *s, size_t n)
Definition UpnpDiscovery.c:245
UpnpDiscovery_set_DestAddr
int UpnpDiscovery_set_DestAddr(UpnpDiscovery *p, const struct sockaddr_storage *buf)
Definition UpnpDiscovery.c:437
UpnpDiscovery_set_ServiceType
int UpnpDiscovery_set_ServiceType(UpnpDiscovery *p, const UpnpString *s)
Definition UpnpDiscovery.c:223
UpnpDiscovery_get_Ext_Length
size_t UpnpDiscovery_get_Ext_Length(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:409
UpnpDiscovery_set_ErrCode
int UpnpDiscovery_set_ErrCode(UpnpDiscovery *p, int n)
Definition UpnpDiscovery.c:128
UpnpDiscovery_strncpy_Ext
int UpnpDiscovery_strncpy_Ext(UpnpDiscovery *p, const char *s, size_t n)
Definition UpnpDiscovery.c:424
UpnpDiscovery_strncpy_Location
int UpnpDiscovery_strncpy_Location(UpnpDiscovery *p, const char *s, size_t n)
Definition UpnpDiscovery.c:319
UpnpDiscovery_set_ServiceVer
int UpnpDiscovery_set_ServiceVer(UpnpDiscovery *p, const UpnpString *s)
Definition UpnpDiscovery.c:260
UpnpDiscovery_get_Location_Length
size_t UpnpDiscovery_get_Location_Length(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:304
UpnpDiscovery_clear_Location
void UpnpDiscovery_clear_Location(UpnpDiscovery *p)
Definition UpnpDiscovery.c:324
UpnpDiscovery_strcpy_DeviceType
int UpnpDiscovery_strcpy_DeviceType(UpnpDiscovery *p, const char *s)
Definition UpnpDiscovery.c:203
UpnpDiscovery_get_Os_cstr
const char * UpnpDiscovery_get_Os_cstr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:346
UpnpDiscovery_get_ErrCode
int UpnpDiscovery_get_ErrCode(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:126
UpnpDiscovery_get_DeviceID_cstr
const char * UpnpDiscovery_get_DeviceID_cstr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:161
UpnpDiscovery_strncpy_DeviceType
int UpnpDiscovery_strncpy_DeviceType(UpnpDiscovery *p, const char *s, size_t n)
Definition UpnpDiscovery.c:208
UpnpDiscovery_clear_DestAddr
void UpnpDiscovery_clear_DestAddr(UpnpDiscovery *p)
Definition UpnpDiscovery.c:445
UpnpDiscovery_strcpy_Os
int UpnpDiscovery_strcpy_Os(UpnpDiscovery *p, const char *s)
Definition UpnpDiscovery.c:351
UpnpDiscovery_assign
int UpnpDiscovery_assign(UpnpDiscovery *p, const UpnpDiscovery *q)
Definition UpnpDiscovery.c:85
UpnpDiscovery_clear_Ext
void UpnpDiscovery_clear_Ext(UpnpDiscovery *p)
Definition UpnpDiscovery.c:429
UpnpDiscovery_strcpy_DeviceID
int UpnpDiscovery_strcpy_DeviceID(UpnpDiscovery *p, const char *s)
Definition UpnpDiscovery.c:166
UpnpDiscovery_clear_ServiceVer
void UpnpDiscovery_clear_ServiceVer(UpnpDiscovery *p)
Definition UpnpDiscovery.c:287
UpnpDiscovery_clear_DeviceType
void UpnpDiscovery_clear_DeviceType(UpnpDiscovery *p)
Definition UpnpDiscovery.c:213
UpnpDiscovery_get_Date_Length
size_t UpnpDiscovery_get_Date_Length(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:375
UpnpDiscovery_get_Ext_cstr
const char * UpnpDiscovery_get_Ext_cstr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:414
UpnpDiscovery_get_ServiceVer_Length
size_t UpnpDiscovery_get_ServiceVer_Length(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:267
UpnpDiscovery_clear_DeviceID
void UpnpDiscovery_clear_DeviceID(UpnpDiscovery *p)
Definition UpnpDiscovery.c:176
UpnpDiscovery_get_Expires
int UpnpDiscovery_get_Expires(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:135
UpnpDiscovery_clear_ServiceType
void UpnpDiscovery_clear_ServiceType(UpnpDiscovery *p)
Definition UpnpDiscovery.c:250
UpnpDiscovery_set_DeviceID
int UpnpDiscovery_set_DeviceID(UpnpDiscovery *p, const UpnpString *s)
Definition UpnpDiscovery.c:149
UpnpDiscovery_strcpy_Ext
int UpnpDiscovery_strcpy_Ext(UpnpDiscovery *p, const char *s)
Definition UpnpDiscovery.c:419
UpnpDiscovery_get_ServiceType_Length
size_t UpnpDiscovery_get_ServiceType_Length(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:230
UpnpDiscovery_get_DeviceType
const UpnpString * UpnpDiscovery_get_DeviceType(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:181
UpnpDiscovery_strcpy_Location
int UpnpDiscovery_strcpy_Location(UpnpDiscovery *p, const char *s)
Definition UpnpDiscovery.c:314
UpnpDiscovery_get_Os_Length
size_t UpnpDiscovery_get_Os_Length(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:341
UpnpDiscovery_strncpy_ServiceVer
int UpnpDiscovery_strncpy_ServiceVer(UpnpDiscovery *p, const char *s, size_t n)
Definition UpnpDiscovery.c:282
UpnpDiscovery_get_DeviceType_Length
size_t UpnpDiscovery_get_DeviceType_Length(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:193
UpnpDiscovery_get_ServiceVer_cstr
const char * UpnpDiscovery_get_ServiceVer_cstr(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:272
UpnpDiscovery_get_DeviceID
const UpnpString * UpnpDiscovery_get_DeviceID(const UpnpDiscovery *p)
Definition UpnpDiscovery.c:144
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
s_UpnpDiscovery
Definition UpnpDiscovery.c:19