C Device Virtualization API Reference for Oracle Internet of Things Cloud Service Client Software Library. Release 21.1.1.0.0-3. E70343-26
iotcs.h File Reference

The file contains common public types. More...

#include <stddef.h>
#include <stdint.h>
#include "iotcs_config.h"

Go to the source code of this file.

Structures

union  iotcs_value
 value type More...
struct  iotcs_typed_value
 value together with its type More...
struct  iotcs_key_value
 Simple string key-value pair. More...

Defines

#define IOTCS_TRUE   ((iotcs_bool)1)
 True boolean value.
#define IOTCS_FALSE   ((iotcs_bool)0)
 False boolean value.

Typedefs

typedef int64_t iotcs_date_time
 number of milliseconds that have elapsed since January 1, 1970 (midnight UTC/GMT)
typedef int iotcs_bool
 boolean type

Enumerations

enum  iotcs_result {
  IOTCS_RESULT_OK = 0x0, IOTCS_RESULT_FAIL = 0x1, IOTCS_RESULT_OUT_OF_MEMORY = 0x2, IOTCS_RESULT_INVALID_ARGUMENT = 0x4,
  IOTCS_RESULT_CANNOT_AUTHORIZE = 0x8, IOTCS_RESULT_OPERATION_CANCELED = 0x10
}
 Return codes for iotcs_* client library functions. More...
enum  iotcs_value_type {
  IOTCS_VALUE_TYPE_INT = 0, IOTCS_VALUE_TYPE_NUMBER = 1, IOTCS_VALUE_TYPE_BOOLEAN = 2, IOTCS_VALUE_TYPE_STRING = 3,
  IOTCS_VALUE_TYPE_DATE_TIME = 4, IOTCS_VALUE_TYPE_NONE = 5, IOTCS_VALUE_TYPE_URI = 6
}
 Device Model Attribute type.

Detailed Description

The file contains common public types.


Enumeration Type Documentation

Return codes for iotcs_* client library functions.

Enumerator:
IOTCS_RESULT_OK 

Operation succeded.

IOTCS_RESULT_FAIL 

Operation failed.

IOTCS_RESULT_OUT_OF_MEMORY 

Out Of Memory error.

IOTCS_RESULT_INVALID_ARGUMENT 

Invalid argument provided.

IOTCS_RESULT_CANNOT_AUTHORIZE 

Authorization problems.

IOTCS_RESULT_OPERATION_CANCELED 

Operation was canceled.