Tizen Native API
4.0
|
#define ELDBUS_NAME_RELEASE_REPLY_NON_EXISTENT 2 |
The given name does not exist on the bus
#define ELDBUS_NAME_RELEASE_REPLY_NOT_OWNER 3 |
Service is not an owner of the given name
#define ELDBUS_NAME_RELEASE_REPLY_RELEASED 1 |
Service was released from the given name
#define ELDBUS_NAME_REQUEST_FLAG_ALLOW_REPLACEMENT 0x1 |
Allow another service to become the primary owner if requested
#define ELDBUS_NAME_REQUEST_FLAG_DO_NOT_QUEUE 0x4 |
If we can not become the primary owner do not place us in the queue
#define ELDBUS_NAME_REQUEST_FLAG_REPLACE_EXISTING 0x2 |
Request to replace the current primary owner
#define ELDBUS_NAME_REQUEST_REPLY_ALREADY_OWNER 4 |
Service is already the primary owner
#define ELDBUS_NAME_REQUEST_REPLY_EXISTS 3 |
Service is already in the queue
#define ELDBUS_NAME_REQUEST_REPLY_IN_QUEUE 2 |
Service could not become the primary owner and has been placed in the queue
#define ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER 1 |
Service has become the primary owner of the requested name
#define ELDBUS_NAME_START_REPLY_ALREADY_RUNNING 2 |
Service was already running
#define ELDBUS_NAME_START_REPLY_SUCCESS 1 |
Service was auto started
Callback called when unique id of a bus name changed.
Eldbus_Pending* eldbus_hello | ( | Eldbus_Connection * | conn, |
Eldbus_Message_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | Connection object. |
cb | Callback to call when receiving answer. |
cb_data | Data passed to callback. |
void eldbus_name_owner_changed_callback_add | ( | Eldbus_Connection * | conn, |
const char * | bus, | ||
Eldbus_Name_Owner_Changed_Cb | cb, | ||
const void * | cb_data, | ||
Eina_Bool | allow_initial_call | ||
) |
This function implicitly calls eldbus_name_owner_get() in order to be able to monitor the name. If the only interest is to receive notifications when the name in fact changes, pass EINA_FALSE to allow_initial_call
so your callback will not be called on first retrieval of name owner. If the initial state is important, pass EINA_TRUE to this parameter.
conn | connection |
bus | name of bus |
cb | callback |
cb_data | context data |
allow_initial_call | allow call callback with actual id of the bus |
void eldbus_name_owner_changed_callback_del | ( | Eldbus_Connection * | conn, |
const char * | bus, | ||
Eldbus_Name_Owner_Changed_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | connection |
bus | name of bus |
cb | callback |
cb_data | context data |
Eldbus_Pending* eldbus_name_owner_get | ( | Eldbus_Connection * | conn, |
const char * | bus, | ||
Eldbus_Message_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | Connection object. |
bus | Name of the bus |
cb | Callback to call when receiving answer. |
cb_data | Data passed to callback. |
Eldbus_Pending* eldbus_name_owner_has | ( | Eldbus_Connection * | conn, |
const char * | bus, | ||
Eldbus_Message_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | Connection object. |
bus | Name of the bus |
cb | Callback to call when receiving answer. |
cb_data | Data passed to callback. |
Eldbus_Pending* eldbus_name_release | ( | Eldbus_Connection * | conn, |
const char * | bus, | ||
Eldbus_Message_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | Connection object. |
bus | Name of the bus |
cb | Callback to call when receiving answer. |
cb_data | Data passed to callback. |
Eldbus_Pending* eldbus_name_request | ( | Eldbus_Connection * | conn, |
const char * | bus, | ||
unsigned int | flags, | ||
Eldbus_Message_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | Connection object. |
bus | Name of the bus |
flags | Parameter of the "RequestName" method. |
cb | Callback to call when receiving answer. |
cb_data | Data passed to callback. |
Eldbus_Pending* eldbus_name_start | ( | Eldbus_Connection * | conn, |
const char * | bus, | ||
unsigned int | flags, | ||
Eldbus_Message_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | Connection object. |
bus | Name of the bus. |
flags | Parameter of the "StartServiceByName" method. |
cb | Callback to call when receiving answer. |
cb_data | Data passed to callback. |
Eldbus_Pending* eldbus_names_activatable_list | ( | Eldbus_Connection * | conn, |
Eldbus_Message_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | Connection object. |
cb | Callback to call when receiving answer. |
cb_data | Data passed to callback. |
Eldbus_Pending* eldbus_names_list | ( | Eldbus_Connection * | conn, |
Eldbus_Message_Cb | cb, | ||
const void * | cb_data | ||
) |
conn | Connection object. |
cb | Callback to call when receiving answer. |
cb_data | Data passed to callback. |