ThingWorx C SDK
|
Service definitions & metadata functions. More...
#include "twOSPort.h"
#include "twLogger.h"
#include "twBaseTypes.h"
#include "twInfoTable.h"
#include "cJSON.h"
Go to the source code of this file.
Classes | |
struct | twServiceDef |
Service definition structure. More... | |
Typedefs | |
typedef struct twServiceDef | twServiceDef |
Service definition structure. | |
Functions | |
twServiceDef * | twServiceDef_Create (char *name, char *description, twDataShape *inputs, enum BaseType outputType, twDataShape *outputDataShape) |
Creates a new twServiceDef structure. More... | |
void | twServiceDef_Delete (void *input) |
Frees all memory associated with a twServiceDef structure and all its owned substructures. More... | |
Service definitions & metadata functions.
twServiceDef* twServiceDef_Create | ( | char * | name, |
char * | description, | ||
twDataShape * | inputs, | ||
enum BaseType | outputType, | ||
twDataShape * | outputDataShape | ||
) |
Creates a new twServiceDef structure.
[in] | name | The name of the service. |
[in] | description | A description of the service. |
[in] | inputs | A twDataShape that describes the service input. |
[in] | outputType | The BaseType of the service result. |
[in] | outputDataShape | A twDataShape that described the service output if the output is a twInfoTable. |
void twServiceDef_Delete | ( | void * | input | ) |
Frees all memory associated with a twServiceDef structure and all its owned substructures.
[in] | input | A pointer to the twServiceDef structure to be deleted. |