Ref: use macro UNUSED

master
KoynovStas 5 years ago
parent 8b362cf73c
commit 22f588f401

@ -1,6 +1,6 @@
#include <stddef.h>
#include "smacros.h"
#include "wsddapi.h"
#include "wsdd_param.h"
@ -8,43 +8,134 @@
void wsdd_event_ProbeMatches(struct soap *soap, unsigned int InstanceId, const char *SequenceId, unsigned int MessageNumber, const char *MessageID, const char *RelatesTo, struct wsdd__ProbeMatchesType *matches)
void wsdd_event_ProbeMatches(struct soap *soap,
unsigned int InstanceId,
const char *SequenceId,
unsigned int MessageNumber,
const char *MessageID,
const char *RelatesTo,
struct wsdd__ProbeMatchesType *matches)
{
UNUSED(soap);
UNUSED(InstanceId);
UNUSED(SequenceId);
UNUSED(MessageNumber);
UNUSED(MessageID);
UNUSED(RelatesTo);
UNUSED(matches);
}
void wsdd_event_ResolveMatches(struct soap *soap, unsigned int InstanceId, const char *SequenceId, unsigned int MessageNumber, const char *MessageID, const char *RelatesTo, struct wsdd__ResolveMatchType *match)
void wsdd_event_ResolveMatches(struct soap *soap,
unsigned int InstanceId,
const char *SequenceId,
unsigned int MessageNumber,
const char *MessageID,
const char *RelatesTo,
struct wsdd__ResolveMatchType *match)
{
UNUSED(soap);
UNUSED(InstanceId);
UNUSED(SequenceId);
UNUSED(MessageNumber);
UNUSED(MessageID);
UNUSED(RelatesTo);
UNUSED(match);
}
void wsdd_event_Hello(struct soap *soap, unsigned int InstanceId, const char *SequenceId, unsigned int MessageNumber, const char *MessageID, const char *RelatesTo, const char *EndpointReference, const char *Types, const char *Scopes, const char *MatchBy, const char *XAddrs, unsigned int MetadataVersion)
void wsdd_event_Hello(struct soap *soap,
unsigned int InstanceId,
const char *SequenceId,
unsigned int MessageNumber,
const char *MessageID,
const char *RelatesTo,
const char *EndpointReference,
const char *Types,
const char *Scopes,
const char *MatchBy,
const char *XAddrs,
unsigned int MetadataVersion)
{
UNUSED(soap);
UNUSED(InstanceId);
UNUSED(SequenceId);
UNUSED(MessageNumber);
UNUSED(MessageID);
UNUSED(RelatesTo);
UNUSED(EndpointReference);
UNUSED(Types);
UNUSED(Scopes);
UNUSED(MatchBy);
UNUSED(XAddrs);
UNUSED(MetadataVersion);
}
void wsdd_event_Bye(struct soap *soap, unsigned int InstanceId, const char *SequenceId, unsigned int MessageNumber, const char *MessageID, const char *RelatesTo, const char *EndpointReference, const char *Types, const char *Scopes, const char *MatchBy, const char *XAddrs, unsigned int *MetadataVersion)
void wsdd_event_Bye(struct soap *soap,
unsigned int InstanceId,
const char *SequenceId,
unsigned int MessageNumber,
const char *MessageID,
const char *RelatesTo,
const char *EndpointReference,
const char *Types,
const char *Scopes,
const char *MatchBy,
const char *XAddrs,
unsigned int *MetadataVersion)
{
UNUSED(soap);
UNUSED(InstanceId);
UNUSED(SequenceId);
UNUSED(MessageNumber);
UNUSED(MessageID);
UNUSED(RelatesTo);
UNUSED(EndpointReference);
UNUSED(Types);
UNUSED(Scopes);
UNUSED(MatchBy);
UNUSED(XAddrs);
UNUSED(MetadataVersion);
}
soap_wsdd_mode wsdd_event_Resolve(struct soap *soap, const char *MessageID, const char *ReplyTo, const char *EndpointReference, struct wsdd__ResolveMatchType *match)
soap_wsdd_mode wsdd_event_Resolve(struct soap *soap,
const char *MessageID,
const char *ReplyTo,
const char *EndpointReference,
struct wsdd__ResolveMatchType *match)
{
UNUSED(soap);
UNUSED(MessageID);
UNUSED(ReplyTo);
UNUSED(EndpointReference);
UNUSED(match);
return SOAP_WSDD_ADHOC;
}
soap_wsdd_mode wsdd_event_Probe(struct soap *soap, const char *MessageID, const char *ReplyTo, const char *Types, const char *Scopes, const char *MatchBy, struct wsdd__ProbeMatchesType *matches)
soap_wsdd_mode wsdd_event_Probe(struct soap *soap,
const char *MessageID,
const char *ReplyTo,
const char *Types,
const char *Scopes,
const char *MatchBy,
struct wsdd__ProbeMatchesType *matches)
{
UNUSED(soap);
UNUSED(MessageID);
UNUSED(ReplyTo);
UNUSED(Types);
UNUSED(Scopes);
UNUSED(MatchBy);
struct wsdd_param_t *wsdd_param = (struct wsdd_param_t *)soap->user;
if(!wsdd_param)

@ -46,6 +46,7 @@
#include "daemon.h"
#include "wsdd_param.h"
#include "net_utils.h"
#include "smacros.h"
// gsoap headers
@ -163,6 +164,7 @@ void free_resources()
void daemon_exit_handler(int sig)
{
UNUSED(sig);
free_resources();
exit(EXIT_SUCCESS); // good job (we interrupted (finished) main loop)
@ -351,6 +353,7 @@ void init_gsoap()
void init(void *data)
{
UNUSED(data);
init_signals();
check_param();

Loading…
Cancel
Save