ThingWorx C SDK
twServices.h
Go to the documentation of this file.
1 /***************************************
2  * Copyright (C) 2014 ThingWorx Inc. *
3  ***************************************/
4 
11 #ifndef SERVICES_H
12 #define SERVICES_H
13 
14 #include "twOSPort.h"
15 #include "twLogger.h"
16 #include "twBaseTypes.h"
17 #include "twInfoTable.h"
18 #include "cJSON.h"
19 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
27 typedef struct twServiceDef {
28  char * name;
29  char * description;
33  cJSON * aspects;
34 } twServiceDef;
35 
53 twServiceDef * twServiceDef_Create(char * name, char * description, twDataShape * inputs,
54  enum BaseType outputType, twDataShape * outputDataShape);
55 
65 void twServiceDef_Delete(void * input);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* SERVICES_H */
char * description
Definition: twServices.h:29
char * name
Definition: twServices.h:28
ThingWorx twInfoTable and twDataShape definitions and functions.
twDataShape * inputs
Definition: twServices.h:30
twServiceDef * twServiceDef_Create(char *name, char *description, twDataShape *inputs, enum BaseType outputType, twDataShape *outputDataShape)
Creates a new twServiceDef structure.
Definition: twServices.c:14
Wrappers for OS-specific functionality.
struct twServiceDef twServiceDef
Service definition structure.
Data shape base structure definition.
Definition: twInfoTable.h:184
ThingWorx BaseType definitions and functions.
void twServiceDef_Delete(void *input)
Frees all memory associated with a twServiceDef structure and all its owned substructures.
Definition: twServices.c:35
Service definition structure.
Definition: twServices.h:27
Structure definitions and function prototypes for the ThingWorx logging facility. ...
Definition: cJSON.h:43
BaseType
Definition: twDefinitions.h:155
enum BaseType outputType
Definition: twServices.h:31
twDataShape * outputDataShape
Definition: twServices.h:32