Tizen Native API  4.0
Basic FreeDesktop.Org Methods

Functions

Eldbus_Pendingeldbus_name_request (Eldbus_Connection *conn, const char *bus, unsigned int flags, Eldbus_Message_Cb cb, const void *cb_data)
Eldbus_Pendingeldbus_name_release (Eldbus_Connection *conn, const char *bus, Eldbus_Message_Cb cb, const void *cb_data)
Eldbus_Pendingeldbus_name_owner_get (Eldbus_Connection *conn, const char *bus, Eldbus_Message_Cb cb, const void *cb_data)
Eldbus_Pendingeldbus_name_owner_has (Eldbus_Connection *conn, const char *bus, Eldbus_Message_Cb cb, const void *cb_data)
Eldbus_Pendingeldbus_names_list (Eldbus_Connection *conn, Eldbus_Message_Cb cb, const void *cb_data)
Eldbus_Pendingeldbus_names_activatable_list (Eldbus_Connection *conn, Eldbus_Message_Cb cb, const void *cb_data)
Eldbus_Pendingeldbus_hello (Eldbus_Connection *conn, Eldbus_Message_Cb cb, const void *cb_data)
Eldbus_Pendingeldbus_name_start (Eldbus_Connection *conn, const char *bus, unsigned int flags, Eldbus_Message_Cb cb, const void *cb_data)
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)
void eldbus_name_owner_changed_callback_del (Eldbus_Connection *conn, const char *bus, Eldbus_Name_Owner_Changed_Cb cb, const void *cb_data)

Typedefs

typedef void(* Eldbus_Name_Owner_Changed_Cb )(void *data, const char *bus, const char *old_id, const char *new_id)

Defines

#define ELDBUS_NAME_REQUEST_FLAG_ALLOW_REPLACEMENT   0x1
#define ELDBUS_NAME_REQUEST_FLAG_REPLACE_EXISTING   0x2
#define ELDBUS_NAME_REQUEST_FLAG_DO_NOT_QUEUE   0x4
#define ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER   1
#define ELDBUS_NAME_REQUEST_REPLY_IN_QUEUE   2
#define ELDBUS_NAME_REQUEST_REPLY_EXISTS   3
#define ELDBUS_NAME_REQUEST_REPLY_ALREADY_OWNER   4
#define ELDBUS_NAME_RELEASE_REPLY_RELEASED   1
#define ELDBUS_NAME_RELEASE_REPLY_NON_EXISTENT   2
#define ELDBUS_NAME_RELEASE_REPLY_NOT_OWNER   3
#define ELDBUS_NAME_START_REPLY_SUCCESS   1
#define ELDBUS_NAME_START_REPLY_ALREADY_RUNNING   2

Define Documentation

The given name does not exist on the bus

Service is not an owner of the given name

Service was released from the given name

Allow another service to become the primary owner if requested

If we can not become the primary owner do not place us in the queue

Request to replace the current primary owner

Service is already the primary owner

Service is already in the queue

Service could not become the primary owner and has been placed in the queue

Service has become the primary owner of the requested name

Service was already running

Service was auto started


Typedef Documentation

Callback called when unique id of a bus name changed.


Function Documentation

Eldbus_Pending* eldbus_hello ( Eldbus_Connection conn,
Eldbus_Message_Cb  cb,
const void *  cb_data 
)
Deprecated:
Deprecated since 4.0. Send a "Hello" method call in proxy.
Parameters:
connConnection object.
cbCallback to call when receiving answer.
cb_dataData passed to callback.
Returns:
The Eldbus_Pending corresponding to the message sent.
Since :
3.0
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 
)
Deprecated:
Deprecated since 4.0. Add a callback to be called when unique id of a bus name changed.

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.

Parameters:
connconnection
busname of bus
cbcallback
cb_datacontext data
allow_initial_callallow call callback with actual id of the bus
Since :
3.0
void eldbus_name_owner_changed_callback_del ( Eldbus_Connection conn,
const char *  bus,
Eldbus_Name_Owner_Changed_Cb  cb,
const void *  cb_data 
)
Deprecated:
Deprecated since 4.0. Remove callback added with eldbus_name_owner_changed_callback_add().
Parameters:
connconnection
busname of bus
cbcallback
cb_datacontext data
Since :
3.0
Eldbus_Pending* eldbus_name_owner_get ( Eldbus_Connection conn,
const char *  bus,
Eldbus_Message_Cb  cb,
const void *  cb_data 
)
Deprecated:
Deprecated since 4.0. Send a "GetNameOwner" method call in proxy.
Parameters:
connConnection object.
busName of the bus
cbCallback to call when receiving answer.
cb_dataData passed to callback.
Returns:
The Eldbus_Pending corresponding to the message sent.
Since :
3.0
Eldbus_Pending* eldbus_name_owner_has ( Eldbus_Connection conn,
const char *  bus,
Eldbus_Message_Cb  cb,
const void *  cb_data 
)
Deprecated:
Deprecated since 4.0. Send a "NameHasOwner" method call in proxy.
Parameters:
connConnection object.
busName of the bus
cbCallback to call when receiving answer.
cb_dataData passed to callback.
Returns:
The Eldbus_Pending corresponding to the message sent.
Since :
3.0
Eldbus_Pending* eldbus_name_release ( Eldbus_Connection conn,
const char *  bus,
Eldbus_Message_Cb  cb,
const void *  cb_data 
)
Deprecated:
Deprecated since 4.0. Send a "ReleaseName" method call in proxy.
Parameters:
connConnection object.
busName of the bus
cbCallback to call when receiving answer.
cb_dataData passed to callback.
Returns:
The Eldbus_Pending corresponding to the message sent.
Since :
3.0
Eldbus_Pending* eldbus_name_request ( Eldbus_Connection conn,
const char *  bus,
unsigned int  flags,
Eldbus_Message_Cb  cb,
const void *  cb_data 
)
Deprecated:
Deprecated since 4.0. Send a "RequestName" method call in proxy.
Parameters:
connConnection object.
busName of the bus
flagsParameter of the "RequestName" method.
cbCallback to call when receiving answer.
cb_dataData passed to callback.
Returns:
The Eldbus_Pending corresponding to the message sent.
Since :
3.0
Eldbus_Pending* eldbus_name_start ( Eldbus_Connection conn,
const char *  bus,
unsigned int  flags,
Eldbus_Message_Cb  cb,
const void *  cb_data 
)
Deprecated:
Deprecated since 4.0. Send a "StartServiceByName" method call in proxy.
Parameters:
connConnection object.
busName of the bus.
flagsParameter of the "StartServiceByName" method.
cbCallback to call when receiving answer.
cb_dataData passed to callback.
Returns:
The Eldbus_Pending corresponding to the message sent.
Since :
3.0
Deprecated:
Deprecated since 4.0. Send a "ListActivatableNames" method call in proxy.
Parameters:
connConnection object.
cbCallback to call when receiving answer.
cb_dataData passed to callback.
Returns:
The Eldbus_Pending corresponding to the message sent.
Since :
3.0
Eldbus_Pending* eldbus_names_list ( Eldbus_Connection conn,
Eldbus_Message_Cb  cb,
const void *  cb_data 
)
Deprecated:
Deprecated since 4.0. Send a "ListNames" method call in proxy.
Parameters:
connConnection object.
cbCallback to call when receiving answer.
cb_dataData passed to callback.
Returns:
The Eldbus_Pending corresponding to the message sent.
Since :
3.0