Removes C++ style comments.

This commit is contained in:
Marcelo Roberto Jimenez
2010-11-16 03:14:12 -02:00
parent 7c524df1d9
commit 5d6bcabd45
48 changed files with 1895 additions and 2087 deletions

View File

@@ -29,38 +29,30 @@
*
******************************************************************************/
#ifndef SERVICE_TABLE_H
#define SERVICE_TABLE_H
/*!
* \file
*/
#ifdef __cplusplus
extern "C" {
#endif
#include "config.h"
#include "uri.h"
#include "ixml.h"
#include "upnp.h"
#include "upnpdebug.h"
#include <stdio.h>
#include <time.h>
#define SID_SIZE 41
#ifdef INCLUDE_DEVICE_APIS
typedef struct SUBSCRIPTION {
Upnp_SID sid;
int eventKey;
@@ -71,7 +63,6 @@ typedef struct SUBSCRIPTION {
struct SUBSCRIPTION *next;
} subscription;
typedef struct SERVICE_INFO {
DOMString serviceType;
DOMString serviceId;
@@ -85,17 +76,14 @@ typedef struct SERVICE_INFO {
struct SERVICE_INFO *next;
} service_info;
typedef struct SERVICE_TABLE {
DOMString URLBase;
service_info *serviceList;
service_info *endServiceList;
} service_table;
/* Functions for Subscriptions */
/*!
* \brief Makes a copy of the subscription.
*
@@ -107,7 +95,6 @@ int copy_subscription(
/*! [in] Destination subscription. */
subscription *out);
/*
* \brief Remove the subscription represented by the const Upnp_SID sid parameter
* from the service table and update the service table.
@@ -118,7 +105,6 @@ void RemoveSubscriptionSID(
/*! [in] Service object providing the list of subscriptions. */
service_info *service);
/*!
* \brief Return the subscription from the service table that matches
* const Upnp_SID sid value.
@@ -130,7 +116,6 @@ subscription *GetSubscriptionSID(
const Upnp_SID sid,
/*! [in] Service object providing the list of subscriptions. */
service_info *service);
/*!
* \brief Gets pointer to the first subscription node in the service table.
@@ -141,7 +126,6 @@ subscription *GetFirstSubscription(
/*! [in] Service object providing the list of subscriptions. */
service_info *service);
/*!
* \brief Get current and valid subscription from the service table.
*
@@ -153,7 +137,6 @@ subscription *GetNextSubscription(
/*! [in] Current subscription object. */
subscription *current);
/*!
* \brief Free's the memory allocated for storing the URL of the subscription.
*/
@@ -161,7 +144,6 @@ void freeSubscription(
/*! [in] Subscription object to be freed. */
subscription *sub);
/*!
* \brief Free's memory allocated for all the subscriptions in the service table.
*/
@@ -169,7 +151,6 @@ void freeSubscriptionList(
/*! [in] Head of the subscription list. */
subscription * head);
/*!
* \brief Traverses through the service table and returns a pointer to the
* service node that matches a known service id and a known UDN.
@@ -186,7 +167,6 @@ service_info *FindServiceId(
* table. */
const char *UDN);
/*!
* \brief Traverses the service table and finds the node whose event URL Path
* matches a know value.
@@ -200,7 +180,6 @@ service_info *FindServiceEventURLPath(
/*! [in] Event URL path used to find a service from the table. */
char *eventURLPath);
/*!
* \brief Traverses the service table and finds the node whose control URL Path
* matches a know value.
@@ -214,7 +193,6 @@ service_info * FindServiceControlURLPath(
/*! [in] Control URL path used to find a service from the table. */
const char *controlURLPath);
/*!
* \brief For debugging purposes prints information from the service passed
* into the function.
@@ -231,10 +209,15 @@ void printService(
static UPNP_INLINE void printService(
service_info *service,
Upnp_LogLevel level,
Dbg_Module module) {}
Dbg_Module module)
{
return;
service = service;
level = level;
module = module;
}
#endif
/*!
* \brief For debugging purposes prints information of each service from the
* service table passed into the function.
@@ -251,10 +234,15 @@ void printServiceList(
static UPNP_INLINE void printServiceList(
service_info *service,
Upnp_LogLevel level,
Dbg_Module module) {}
Dbg_Module module)
{
return;
service = service;
level = level;
module = module;
}
#endif
/*!
* \brief For debugging purposes prints the URL base of the table and information
* of each service from the service table passed into the function.
@@ -271,10 +259,15 @@ void printServiceTable(
static UPNP_INLINE void printServiceTable(
service_table *table,
Upnp_LogLevel level,
Dbg_Module module) {}
Dbg_Module module)
{
return;
table = table;
level = level;
module = module;
}
#endif
/*!
* \brief Free's memory allocated for the various components of the service
* entry in the service table.
@@ -283,7 +276,6 @@ void freeService(
/*! [in] Service information that is to be freed. */
service_info *in);
/*!
* \brief Free's memory allocated for the various components of each service
* entry in the service table.
@@ -292,7 +284,6 @@ void freeServiceList(
/*! [in] Head of the service list to be freed. */
service_info *head);
/*!
* \brief Free's dynamic memory in table (does not free table, only memory
* within the structure).
@@ -301,7 +292,6 @@ void freeServiceTable(
/*! [in] Service table whose internal memory needs to be freed. */
service_table *table);
/*!
* \brief This function assumes that services for a particular root device are
* placed linearly in the service table, and in the order in which they are
@@ -316,7 +306,6 @@ int removeServiceTable(
/*! [in] Service table from which services will be removed. */
service_table *in);
/*!
* \brief Add Service to the table.
*/
@@ -329,7 +318,6 @@ int addServiceTable(
* service list. */
const char *DefaultURLBase);
/*!
* \brief Retrieve service from the table.
*
@@ -343,10 +331,8 @@ int getServiceTable(
/*! [in] Default base URL on which the URL will be returned. */
const char *DefaultURLBase);
/* Misc helper functions */
/*!
* \brief Returns the clone of the element value.
*
@@ -358,7 +344,6 @@ DOMString getElementValue(
/*! [in] Input node which provides the list of child nodes. */
IXML_Node *node);
/*!
* \brief Traverses through a list of XML nodes to find the node with the
* known element name.
@@ -375,7 +360,6 @@ int getSubElement(
/*! [out] Ouput node to which the matched child node is returned. */
IXML_Node **out);
#endif /* INCLUDE_DEVICE_APIS */
#ifdef __cplusplus