Tizen(Headed) Native API  6.5

Data control is a standard mechanism for exchanging specific data between applications.

Required Header

#include <data_control.h>

Overview

All applications can request data shared by other applications using data control. However, only service applications can provide their own data. There are 2 types of data controls:

  • DATA_CONTROL_SQL This allows you to use a SQL-type data control to access the specific data exported by other service applications. You can also define a SQL-type data control provider to export specific data from your service application.
  • DATA_CONTROL_MAP This allows you to use a key value-type data control to access the data exported by other service applications. You can also define an key value-type data control provider to export the specific data from your service application.

Typedefs

typedef struct
data_control_bulk_data_s * 
data_control_bulk_data_h
 The bulk data handle.
typedef struct
data_control_bulk_result_data_s * 
data_control_bulk_result_data_h
 The bulk result data handle.
typedef struct data_control_s * data_control_h
 The structure type for the provider handle.

Typedef Documentation

typedef struct data_control_bulk_data_s* data_control_bulk_data_h

The bulk data handle.

Since :
3.0
typedef struct data_control_bulk_result_data_s* data_control_bulk_result_data_h

The bulk result data handle.

Since :
3.0
typedef struct data_control_s* data_control_h

The structure type for the provider handle.

Since :
2.3

Enumeration Type Documentation

Enumeration for the various data changed notification types.

Since :
3.0
Enumerator:
DATA_CONTROL_DATA_CHANGE_SQL_UPDATE 

Update notification

DATA_CONTROL_DATA_CHANGE_SQL_INSERT 

Insert notification

DATA_CONTROL_DATA_CHANGE_SQL_DELETE 

Delete notification

DATA_CONTROL_DATA_CHANGE_MAP_SET 

Set notification

DATA_CONTROL_DATA_CHANGE_MAP_ADD 

Add notification

DATA_CONTROL_DATA_CHANGE_MAP_REMOVE 

Remove notification

Enumeration for the various error codes an API can return.

Since :
2.3
Enumerator:
DATA_CONTROL_ERROR_NONE 

Successful

DATA_CONTROL_ERROR_OUT_OF_MEMORY 

Out of memory

DATA_CONTROL_ERROR_IO_ERROR 

I/O error

DATA_CONTROL_ERROR_INVALID_PARAMETER 

Invalid parameter

DATA_CONTROL_ERROR_PERMISSION_DENIED 

Permission denied

DATA_CONTROL_ERROR_MAX_EXCEEDED 

Too long argument

Enumeration for different types of columns in a SQL table.

Since :
2.3
Enumerator:
DATA_CONTROL_SQL_COLUMN_TYPE_UNDEFINED 

undefined type

DATA_CONTROL_SQL_COLUMN_TYPE_INT64 

integer type

DATA_CONTROL_SQL_COLUMN_TYPE_DOUBLE 

double type

DATA_CONTROL_SQL_COLUMN_TYPE_TEXT 

text type

DATA_CONTROL_SQL_COLUMN_TYPE_BLOB 

blob type

DATA_CONTROL_SQL_COLUMN_TYPE_NULL 

null value