Complete renaming edbus -> eldbus.

This commit is contained in:
Kai Huuhko 2013-05-06 19:34:26 +00:00
parent bee7a39575
commit 94896f625d
12 changed files with 581 additions and 581 deletions

View File

@ -1,22 +1,22 @@
EDBUS_CONNECTION_TYPE_SESSION = enums.EDBUS_CONNECTION_TYPE_SESSION
EDBUS_CONNECTION_TYPE_SYSTEM = enums.EDBUS_CONNECTION_TYPE_SYSTEM
EDBUS_CONNECTION_TYPE_STARTER = enums.EDBUS_CONNECTION_TYPE_STARTER
ELDBUS_CONNECTION_TYPE_SESSION = enums.EDBUS_CONNECTION_TYPE_SESSION
ELDBUS_CONNECTION_TYPE_SYSTEM = enums.EDBUS_CONNECTION_TYPE_SYSTEM
ELDBUS_CONNECTION_TYPE_STARTER = enums.EDBUS_CONNECTION_TYPE_STARTER
EDBUS_CONNECTION_EVENT_DEL = enums.EDBUS_CONNECTION_EVENT_DEL
EDBUS_CONNECTION_EVENT_DISCONNECTED = enums.EDBUS_CONNECTION_EVENT_DISCONNECTED
ELDBUS_CONNECTION_EVENT_DEL = enums.EDBUS_CONNECTION_EVENT_DEL
ELDBUS_CONNECTION_EVENT_DISCONNECTED = enums.EDBUS_CONNECTION_EVENT_DISCONNECTED
cdef void edbus_connection_event_cb(void *data, EDBus_Connection *conn, void *event_info):
cdef void eldbus_connection_event_cb(void *data, Eldbus_Connection *conn, void *event_info):
pass
cdef void edbus_connection_free_cb(void *data, const void *deadptr):
cdef void eldbus_connection_free_cb(void *data, const_void *deadptr):
pass
cdef class Connection(object):
"""A connection object"""
cdef EDBus_Connection *conn
cdef Eldbus_Connection *conn
def __init__(self, EDBus_Connection_Type conn_type, private=False):
def __init__(self, Eldbus_Connection_Type conn_type, private=False):
if not private:
"""
@ -24,28 +24,28 @@ cdef class Connection(object):
loop. If a connection of given type was already created before, its
reference counter is incremented and the connection is returned.
:param type: type of connection e.g EDBUS_CONNECTION_TYPE_SESSION,
EDBUS_CONNECTION_TYPE_SYSTEM or EDBUS_CONNECTION_TYPE_STARTER
:param type: type of connection e.g ELDBUS_CONNECTION_TYPE_SESSION,
ELDBUS_CONNECTION_TYPE_SYSTEM or EDBUS_CONNECTION_TYPE_STARTER
:return: connection with bus
"""
self.conn = edbus_connection_get(conn_type)
self.conn = eldbus_connection_get(conn_type)
else:
"""
Always create and establish a new connection to bus and integrate it with
the ecore main loop. Differently from edbus_connection_get(), this function
the ecore main loop. Differently from eldbus_connection_get(), this function
guarantees to create a new connection to the D-Bus daemon and the connection
is not shared by any means.
:param type: type of connection e.g EDBUS_CONNECTION_TYPE_SESSION,
EDBUS_CONNECTION_TYPE_SYSTEM or EDBUS_CONNECTION_TYPE_STARTER
:param type: type of connection e.g ELDBUS_CONNECTION_TYPE_SESSION,
ELDBUS_CONNECTION_TYPE_SYSTEM or EDBUS_CONNECTION_TYPE_STARTER
:return: connection with bus
"""
self.conn = edbus_private_connection_get(conn_type)
self.conn = eldbus_private_connection_get(conn_type)
def ref(self):
"""
@ -54,8 +54,8 @@ cdef class Connection(object):
"""
# NOTE: returns EDBus_Connection *
edbus_connection_ref(self.conn)
# NOTE: returns Eldbus_Connection *
eldbus_connection_ref(self.conn)
return self
def unref(self):
@ -67,7 +67,7 @@ cdef class Connection(object):
its children will be invalidated.
"""
edbus_connection_unref(self.conn)
eldbus_connection_unref(self.conn)
def free_cb_add(self):
"""
@ -78,15 +78,15 @@ cdef class Connection(object):
:param data: data passed to callback
"""
edbus_connection_free_cb_add(self.conn, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
eldbus_connection_free_cb_add(self.conn, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
def free_cb_del(self):
"""
Remove callback registered in edbus_connection_free_cb_add().
Remove callback registered in eldbus_connection_free_cb_add().
"""
edbus_connection_free_cb_del(self.conn, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
eldbus_connection_free_cb_del(self.conn, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
def data_set(self, key, data):
"""
@ -97,7 +97,7 @@ cdef class Connection(object):
:param data: data that will be stored
"""
edbus_connection_data_set(self.conn, const char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
eldbus_connection_data_set(self.conn, const_char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
def data_get(self, key):
"""
@ -109,7 +109,7 @@ cdef class Connection(object):
:return: pointer to data if found otherwise NULL
"""
void *edbus_connection_data_get(self.conn, const char *key) EINA_ARG_NONNULL(1, 2)
void *eldbus_connection_data_get(self.conn, const_char *key) EINA_ARG_NONNULL(1, 2)
def data_del(self, key):
"""
@ -121,7 +121,7 @@ cdef class Connection(object):
:return: pointer to data if found otherwise NULL
"""
void *edbus_connection_data_del(self.conn, const char *key) EINA_ARG_NONNULL(1, 2)
void *eldbus_connection_data_del(self.conn, const_char *key) EINA_ARG_NONNULL(1, 2)
def event_callback_add(self, event_type, cb, cb_data):
"""
@ -130,15 +130,15 @@ cdef class Connection(object):
type passed.
"""
edbus_connection_event_callback_add(self.conn, EDBus_Connection_Event_Type type, EDBus_Connection_Event_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
eldbus_connection_event_callback_add(self.conn, Eldbus_Connection_Event_Type type, Eldbus_Connection_Event_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1, 3)
def event_callback_del(self, event_type, cb, cb_data):
"""
Remove callback registered in edbus_connection_event_callback_add().
Remove callback registered in eldbus_connection_event_callback_add().
"""
edbus_connection_event_callback_del(self.conn, EDBus_Connection_Event_Type type, EDBus_Connection_Event_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
eldbus_connection_event_callback_del(self.conn, Eldbus_Connection_Event_Type type, Eldbus_Connection_Event_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1, 3)
def send(self, msg, cb, cb_data, timeout):
"""
@ -150,7 +150,7 @@ cdef class Connection(object):
to be executed when a response arrives
:param cb_data: data passed to callback
:param timeout: timeout in milliseconds, -1 to use default internal value or
EDBUS_TIMEOUT_INFINITE for no timeout
ELDBUS_TIMEOUT_INFINITE for no timeout
"""
EDBus_Pending *edbus_connection_send(self.conn, EDBus_Message *msg, EDBus_Message_Cb cb, const void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_connection_send(self.conn, Eldbus_Message *msg, EDBus_Message_Cb cb, const_void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2)

View File

@ -1,322 +1,322 @@
from libc.string cimport const_char
from enums cimport EDBus_Connection_Type, EDBus_Connection_Event_Type, \
EDBus_Object_Event_Type, EDBus_Proxy_Event_Type
from enums cimport Eldbus_Connection_Type, Eldbus_Connection_Event_Type, \
Eldbus_Object_Event_Type, Eldbus_Proxy_Event_Type
cdef extern from "EDBus.h":
#define EDBUS_FDO_BUS "org.freedesktop.DBus"
#define EDBUS_FDO_PATH "/org/freedesktop/DBus"
#define EDBUS_FDO_INTERFACE EDBUS_FDO_BUS
#define EDBUS_FDO_INTERFACE_PROPERTIES "org.freedesktop.DBus.Properties"
#define EDBUS_FDO_INTERFACE_OBJECT_MANAGER "org.freedesktop.DBus.ObjectManager"
#define EDBUS_FDO_INTERFACE_INTROSPECTABLE "org.freedesktop.DBus.Introspectable"
#define EDBUS_FDO_INTEFACE_PEER "org.freedesktop.DBus.Peer"
#define EDBUS_ERROR_PENDING_CANCELED "org.enlightenment.DBus.Canceled"
cdef extern from "Eldbus.h":
#define ELDBUS_FDO_BUS "org.freedesktop.DBus"
#define ELDBUS_FDO_PATH "/org/freedesktop/DBus"
#define ELDBUS_FDO_INTERFACE EDBUS_FDO_BUS
#define ELDBUS_FDO_INTERFACE_PROPERTIES "org.freedesktop.DBus.Properties"
#define ELDBUS_FDO_INTERFACE_OBJECT_MANAGER "org.freedesktop.DBus.ObjectManager"
#define ELDBUS_FDO_INTERFACE_INTROSPECTABLE "org.freedesktop.DBus.Introspectable"
#define ELDBUS_FDO_INTEFACE_PEER "org.freedesktop.DBus.Peer"
#define ELDBUS_ERROR_PENDING_CANCELED "org.enlightenment.DBus.Canceled"
int edbus_init()
int edbus_shutdown()
int eldbus_init()
int eldbus_shutdown()
ctypedef void (*EDBus_Free_Cb)(void *data, const void *deadptr)
ctypedef void (*Eldbus_Free_Cb)(void *data, const_void *deadptr)
ctypedef struct _EDBus_Connection EDBus_Connection
ctypedef struct _EDBus_Object EDBus_Object
ctypedef struct _EDBus_Proxy EDBus_Proxy
ctypedef struct _EDBus_Message EDBus_Message
ctypedef struct _EDBus_Message_Iter EDBus_Message_Iter
ctypedef struct _EDBus_Pending EDBus_Pending
ctypedef struct _EDBus_Signal_Handler EDBus_Signal_Handler
ctypedef _Eldbus_Connection Eldbus_Connection
ctypedef _Eldbus_Object Eldbus_Object
ctypedef _Eldbus_Proxy Eldbus_Proxy
ctypedef _Eldbus_Message Eldbus_Message
ctypedef _Eldbus_Message_Iter Eldbus_Message_Iter
ctypedef _Eldbus_Pending Eldbus_Pending
ctypedef _Eldbus_Signal_Handler Eldbus_Signal_Handler
ctypedef void (*EDBus_Message_Cb)(void *data, const EDBus_Message *msg, EDBus_Pending *pending)
ctypedef void (*EDBus_Signal_Cb)(void *data, const EDBus_Message *msg)
ctypedef void (*Eldbus_Message_Cb)(void *data, const_Eldbus_Message *msg, EDBus_Pending *pending)
ctypedef void (*Eldbus_Signal_Cb)(void *data, const_Eldbus_Message *msg)
# edbus_connection.h
# eldbus_connection.h
#define EDBUS_TIMEOUT_INFINITE ((int) 0x7fffffff)
EDBus_Connection *edbus_connection_get(EDBus_Connection_Type type)
EDBus_Connection *edbus_private_connection_get(EDBus_Connection_Type type)
EDBus_Connection *edbus_connection_ref(EDBus_Connection *conn) EINA_ARG_NONNULL(1)
void edbus_connection_unref(EDBus_Connection *conn) EINA_ARG_NONNULL(1)
void edbus_connection_free_cb_add(EDBus_Connection *conn, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
void edbus_connection_free_cb_del(EDBus_Connection *conn, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
void edbus_connection_data_set(EDBus_Connection *conn, const char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
void *edbus_connection_data_get(const EDBus_Connection *conn, const char *key) EINA_ARG_NONNULL(1, 2)
void *edbus_connection_data_del(EDBus_Connection *conn, const char *key) EINA_ARG_NONNULL(1, 2)
#define ELDBUS_TIMEOUT_INFINITE ((int) 0x7fffffff)
Eldbus_Connection *eldbus_connection_get(Eldbus_Connection_Type type)
Eldbus_Connection *eldbus_private_connection_get(Eldbus_Connection_Type type)
Eldbus_Connection *eldbus_connection_ref(Eldbus_Connection *conn) EINA_ARG_NONNULL(1)
void eldbus_connection_unref(Eldbus_Connection *conn) EINA_ARG_NONNULL(1)
void eldbus_connection_free_cb_add(Eldbus_Connection *conn, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
void eldbus_connection_free_cb_del(Eldbus_Connection *conn, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
void eldbus_connection_data_set(Eldbus_Connection *conn, const_char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
void *eldbus_connection_data_get(const_Eldbus_Connection *conn, const char *key) EINA_ARG_NONNULL(1, 2)
void *eldbus_connection_data_del(Eldbus_Connection *conn, const_char *key) EINA_ARG_NONNULL(1, 2)
ctypedef void (*EDBus_Connection_Event_Cb)(void *data, EDBus_Connection *conn, void *event_info)
ctypedef void (*Eldbus_Connection_Event_Cb)(void *data, Eldbus_Connection *conn, void *event_info)
void edbus_connection_event_callback_add(EDBus_Connection *conn, EDBus_Connection_Event_Type type, EDBus_Connection_Event_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
void edbus_connection_event_callback_del(EDBus_Connection *conn, EDBus_Connection_Event_Type type, EDBus_Connection_Event_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
EDBus_Pending *edbus_connection_send(EDBus_Connection *conn, EDBus_Message *msg, EDBus_Message_Cb cb, const void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2)
void eldbus_connection_event_callback_add(Eldbus_Connection *conn, Eldbus_Connection_Event_Type type, EDBus_Connection_Event_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1, 3)
void eldbus_connection_event_callback_del(Eldbus_Connection *conn, Eldbus_Connection_Event_Type type, EDBus_Connection_Event_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1, 3)
Eldbus_Pending *eldbus_connection_send(Eldbus_Connection *conn, EDBus_Message *msg, EDBus_Message_Cb cb, const_void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2)
# edbus_message.h
# eldbus_message.h
EDBus_Message *edbus_message_ref(EDBus_Message *msg) EINA_ARG_NONNULL(1)
Eldbus_Message *eldbus_message_ref(Eldbus_Message *msg) EINA_ARG_NONNULL(1)
void edbus_message_unref(EDBus_Message *msg) EINA_ARG_NONNULL(1)
const char *edbus_message_path_get(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_message_interface_get(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_message_member_get(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_message_destination_get(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_message_sender_get(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_message_signature_get(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
void eldbus_message_unref(Eldbus_Message *msg) EINA_ARG_NONNULL(1)
const_char *eldbus_message_path_get(const Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_message_interface_get(const Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_message_member_get(const Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_message_destination_get(const Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_message_sender_get(const Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_message_signature_get(const Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
EDBus_Message *edbus_message_method_call_new(const char *dest, const char *path, const char *iface, const char *method) EINA_ARG_NONNULL(1, 2, 3, 4) EINA_WARN_UNUSED_RESULT EINA_MALLOC
EDBus_Message *edbus_message_error_new(const EDBus_Message *msg, const char *error_name, const char *error_msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
EDBus_Message *edbus_message_method_return_new(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Bool edbus_message_error_get(const EDBus_Message *msg, const char **name, const char **text) EINA_ARG_NONNULL(1)
Eina_Bool edbus_message_arguments_get(const EDBus_Message *msg, const char *signature, ...) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
Eina_Bool edbus_message_arguments_vget(const EDBus_Message *msg, const char *signature, va_list ap) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
Eina_Bool edbus_message_arguments_append(EDBus_Message *msg, const char *signature, ...) EINA_ARG_NONNULL(1, 2)
Eina_Bool edbus_message_arguments_vappend(EDBus_Message *msg, const char *signature, va_list ap) EINA_ARG_NONNULL(1, 2)
EDBus_Message_Iter *edbus_message_iter_container_new(EDBus_Message_Iter *iter, int type, const char* contained_signature) EINA_ARG_NONNULL(1, 3) EINA_WARN_UNUSED_RESULT
Eina_Bool edbus_message_iter_basic_append(EDBus_Message_Iter *iter, int type, ...) EINA_ARG_NONNULL(1, 3)
Eina_Bool edbus_message_iter_arguments_append(EDBus_Message_Iter *iter, const char *signature, ...) EINA_ARG_NONNULL(1, 2)
Eina_Bool edbus_message_iter_arguments_vappend(EDBus_Message_Iter *iter, const char *signature, va_list ap) EINA_ARG_NONNULL(1, 2, 3)
Eina_Bool edbus_message_iter_container_close(EDBus_Message_Iter *iter, EDBus_Message_Iter *sub) EINA_ARG_NONNULL(1, 2)
EDBus_Message_Iter *edbus_message_iter_get(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
void edbus_message_iter_basic_get(EDBus_Message_Iter *iter, void *value) EINA_ARG_NONNULL(1, 2)
char *edbus_message_iter_signature_get(EDBus_Message_Iter *iter) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Bool edbus_message_iter_next(EDBus_Message_Iter *iter) EINA_ARG_NONNULL(1)
Eina_Bool edbus_message_iter_get_and_next(EDBus_Message_Iter *iter, char type, ...) EINA_ARG_NONNULL(1, 2, 3)
Eina_Bool edbus_message_iter_fixed_array_get(EDBus_Message_Iter *iter, int signature, void *value, int *n_elements) EINA_ARG_NONNULL(1, 3, 4)
Eina_Bool edbus_message_iter_arguments_get(EDBus_Message_Iter *iter, const char *signature, ...) EINA_ARG_NONNULL(1, 2)
Eina_Bool edbus_message_iter_arguments_vget(EDBus_Message_Iter *iter, const char *signature, va_list ap) EINA_ARG_NONNULL(1, 2)
void edbus_message_iter_del(EDBus_Message_Iter *iter) EINA_ARG_NONNULL(1)
Eldbus_Message *eldbus_message_method_call_new(const_char *dest, const char *path, const char *iface, const char *method) EINA_ARG_NONNULL(1, 2, 3, 4) EINA_WARN_UNUSED_RESULT EINA_MALLOC
Eldbus_Message *eldbus_message_error_new(const_Eldbus_Message *msg, const char *error_name, const char *error_msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eldbus_Message *eldbus_message_method_return_new(const_Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Bool eldbus_message_error_get(const_Eldbus_Message *msg, const char **name, const char **text) EINA_ARG_NONNULL(1)
Eina_Bool eldbus_message_arguments_get(const_Eldbus_Message *msg, const char *signature, ...) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
Eina_Bool eldbus_message_arguments_vget(const_Eldbus_Message *msg, const char *signature, va_list ap) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
Eina_Bool eldbus_message_arguments_append(Eldbus_Message *msg, const_char *signature, ...) EINA_ARG_NONNULL(1, 2)
Eina_Bool eldbus_message_arguments_vappend(Eldbus_Message *msg, const_char *signature, va_list ap) EINA_ARG_NONNULL(1, 2)
Eldbus_Message_Iter *eldbus_message_iter_container_new(Eldbus_Message_Iter *iter, int type, const_char* contained_signature) EINA_ARG_NONNULL(1, 3) EINA_WARN_UNUSED_RESULT
Eina_Bool eldbus_message_iter_basic_append(Eldbus_Message_Iter *iter, int type, ...) EINA_ARG_NONNULL(1, 3)
Eina_Bool eldbus_message_iter_arguments_append(Eldbus_Message_Iter *iter, const_char *signature, ...) EINA_ARG_NONNULL(1, 2)
Eina_Bool eldbus_message_iter_arguments_vappend(Eldbus_Message_Iter *iter, const_char *signature, va_list ap) EINA_ARG_NONNULL(1, 2, 3)
Eina_Bool eldbus_message_iter_container_close(Eldbus_Message_Iter *iter, Eldbus_Message_Iter *sub) EINA_ARG_NONNULL(1, 2)
Eldbus_Message_Iter *eldbus_message_iter_get(const_Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
void eldbus_message_iter_basic_get(Eldbus_Message_Iter *iter, void *value) EINA_ARG_NONNULL(1, 2)
char *eldbus_message_iter_signature_get(Eldbus_Message_Iter *iter) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Bool eldbus_message_iter_next(Eldbus_Message_Iter *iter) EINA_ARG_NONNULL(1)
Eina_Bool eldbus_message_iter_get_and_next(Eldbus_Message_Iter *iter, char type, ...) EINA_ARG_NONNULL(1, 2, 3)
Eina_Bool eldbus_message_iter_fixed_array_get(Eldbus_Message_Iter *iter, int signature, void *value, int *n_elements) EINA_ARG_NONNULL(1, 3, 4)
Eina_Bool eldbus_message_iter_arguments_get(Eldbus_Message_Iter *iter, const_char *signature, ...) EINA_ARG_NONNULL(1, 2)
Eina_Bool eldbus_message_iter_arguments_vget(Eldbus_Message_Iter *iter, const_char *signature, va_list ap) EINA_ARG_NONNULL(1, 2)
void eldbus_message_iter_del(Eldbus_Message_Iter *iter) EINA_ARG_NONNULL(1)
# edbus_message_helper.h
# eldbus_message_helper.h
ctypedef void (*EDBus_Dict_Cb_Get)(void *data, const void *key, EDBus_Message_Iter *var)
void edbus_message_iter_dict_iterate(EDBus_Message_Iter *dict, const char *signature, EDBus_Dict_Cb_Get cb, const void *data) EINA_ARG_NONNULL(1, 2, 3)
ctypedef void (*Eldbus_Dict_Cb_Get)(void *data, const_void *key, Eldbus_Message_Iter *var)
void eldbus_message_iter_dict_iterate(Eldbus_Message_Iter *dict, const_char *signature, Eldbus_Dict_Cb_Get cb, const void *data) EINA_ARG_NONNULL(1, 2, 3)
# edbus_message_eina_value.h
# eldbus_message_eina_value.h
Eina_Value *edbus_message_to_eina_value(const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Value *edbus_message_iter_struct_like_to_eina_value(const EDBus_Message_Iter *iter)
Eina_Bool edbus_message_from_eina_value(const char *signature, EDBus_Message *msg, const Eina_Value *value) EINA_ARG_NONNULL(1, 2, 3)
Eina_Value *eldbus_message_to_eina_value(const_Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Value *eldbus_message_iter_struct_like_to_eina_value(const_Eldbus_Message_Iter *iter)
Eina_Bool eldbus_message_from_eina_value(const_char *signature, Eldbus_Message *msg, const Eina_Value *value) EINA_ARG_NONNULL(1, 2, 3)
# edbus_signal_handler.h
# eldbus_signal_handler.h
EDBus_Signal_Handler *edbus_signal_handler_add(EDBus_Connection *conn, const char *sender, const char *path, const char *interface, const char *member, EDBus_Signal_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 6)
EDBus_Signal_Handler *edbus_signal_handler_ref(EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1)
void edbus_signal_handler_unref(EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1)
void edbus_signal_handler_del(EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1)
Eina_Bool edbus_signal_handler_match_extra_set(EDBus_Signal_Handler *sh, ...) EINA_ARG_NONNULL(1) EINA_SENTINEL
Eina_Bool edbus_signal_handler_match_extra_vset(EDBus_Signal_Handler *sh, va_list ap) EINA_ARG_NONNULL(1)
void edbus_signal_handler_free_cb_add(EDBus_Signal_Handler *handler, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
void edbus_signal_handler_free_cb_del(EDBus_Signal_Handler *handler, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Signal_Handler *eldbus_signal_handler_add(Eldbus_Connection *conn, const_char *sender, const char *path, const char *interface, const char *member, EDBus_Signal_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 6)
Eldbus_Signal_Handler *eldbus_signal_handler_ref(Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1)
void eldbus_signal_handler_unref(Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1)
void eldbus_signal_handler_del(Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1)
Eina_Bool eldbus_signal_handler_match_extra_set(Eldbus_Signal_Handler *sh, ...) EINA_ARG_NONNULL(1) EINA_SENTINEL
Eina_Bool eldbus_signal_handler_match_extra_vset(Eldbus_Signal_Handler *sh, va_list ap) EINA_ARG_NONNULL(1)
void eldbus_signal_handler_free_cb_add(Eldbus_Signal_Handler *handler, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
void eldbus_signal_handler_free_cb_del(Eldbus_Signal_Handler *handler, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
const char *edbus_signal_handler_sender_get(const EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_signal_handler_path_get(const EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_signal_handler_interface_get(const EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_signal_handler_member_get(const EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_signal_handler_match_get(const EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_signal_handler_sender_get(const Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_signal_handler_path_get(const Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_signal_handler_interface_get(const Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_signal_handler_member_get(const Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_signal_handler_match_get(const Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
EDBus_Connection *edbus_signal_handler_connection_get(const EDBus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eldbus_Connection *eldbus_signal_handler_connection_get(const_Eldbus_Signal_Handler *handler) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
# edbus_pending.h
# eldbus_pending.h
void edbus_pending_data_set(EDBus_Pending *pending, const char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
void *edbus_pending_data_get(const EDBus_Pending *pending, const char *key) EINA_ARG_NONNULL(1, 2)
void *edbus_pending_data_del(EDBus_Pending *pending, const char *key) EINA_ARG_NONNULL(1, 2)
void edbus_pending_cancel(EDBus_Pending *pending) EINA_ARG_NONNULL(1)
void eldbus_pending_data_set(Eldbus_Pending *pending, const_char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
void *eldbus_pending_data_get(const_Eldbus_Pending *pending, const char *key) EINA_ARG_NONNULL(1, 2)
void *eldbus_pending_data_del(Eldbus_Pending *pending, const_char *key) EINA_ARG_NONNULL(1, 2)
void eldbus_pending_cancel(Eldbus_Pending *pending) EINA_ARG_NONNULL(1)
const char *edbus_pending_destination_get(const EDBus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_pending_path_get(const EDBus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_pending_interface_get(const EDBus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_pending_method_get(const EDBus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_pending_destination_get(const Eldbus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_pending_path_get(const Eldbus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_pending_interface_get(const Eldbus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_pending_method_get(const Eldbus_Pending *pending) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
void edbus_pending_free_cb_add(EDBus_Pending *pending, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
void edbus_pending_free_cb_del(EDBus_Pending *pending, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
void eldbus_pending_free_cb_add(Eldbus_Pending *pending, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
void eldbus_pending_free_cb_del(Eldbus_Pending *pending, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
# edbus_object.h
# eldbus_object.h
EDBus_Object *edbus_object_get(EDBus_Connection *conn, const char *bus, const char *path) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT
Eldbus_Object *eldbus_object_get(Eldbus_Connection *conn, const_char *bus, const char *path) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT
EDBus_Object *edbus_object_ref(EDBus_Object *obj) EINA_ARG_NONNULL(1)
void edbus_object_unref(EDBus_Object *obj) EINA_ARG_NONNULL(1)
void edbus_object_free_cb_add(EDBus_Object *obj, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
void edbus_object_free_cb_del(EDBus_Object *obj, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Object *eldbus_object_ref(Eldbus_Object *obj) EINA_ARG_NONNULL(1)
void eldbus_object_unref(Eldbus_Object *obj) EINA_ARG_NONNULL(1)
void eldbus_object_free_cb_add(Eldbus_Object *obj, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
void eldbus_object_free_cb_del(Eldbus_Object *obj, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
ctypedef struct EDBus_Object_Event_Interface_Added:
const char *interface;
EDBus_Proxy *proxy;
ctypedef struct Eldbus_Object_Event_Interface_Added:
const_char *interface;
Eldbus_Proxy *proxy;
ctypedef struct EDBus_Object_Event_Interface_Removed:
const char *interface;
ctypedef struct Eldbus_Object_Event_Interface_Removed:
const_char *interface;
ctypedef struct EDBus_Object_Event_Property_Changed:
const char *interface
EDBus_Proxy *proxy
const char *name
const Eina_Value *value
ctypedef struct Eldbus_Object_Event_Property_Changed:
const_char *interface
Eldbus_Proxy *proxy
const_char *name
const_Eina_Value *value
ctypedef struct EDBus_Object_Event_Property_Removed:
const char *interface
EDBus_Proxy *proxy
const char *name
ctypedef struct Eldbus_Object_Event_Property_Removed:
const_char *interface
Eldbus_Proxy *proxy
const_char *name
ctypedef void (*EDBus_Object_Event_Cb)(void *data, EDBus_Object *obj, void *event_info)
ctypedef void (*Eldbus_Object_Event_Cb)(void *data, Eldbus_Object *obj, void *event_info)
void edbus_object_event_callback_add(EDBus_Object *obj, EDBus_Object_Event_Type type, EDBus_Object_Event_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
void edbus_object_event_callback_del(EDBus_Object *obj, EDBus_Object_Event_Type type, EDBus_Object_Event_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
void eldbus_object_event_callback_add(Eldbus_Object *obj, Eldbus_Object_Event_Type type, EDBus_Object_Event_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1, 3)
void eldbus_object_event_callback_del(Eldbus_Object *obj, Eldbus_Object_Event_Type type, EDBus_Object_Event_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1, 3)
EDBus_Connection *edbus_object_connection_get(const EDBus_Object *obj) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_object_bus_name_get(const EDBus_Object *obj) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_object_path_get(const EDBus_Object *obj) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
EDBus_Pending *edbus_object_send(EDBus_Object *obj, EDBus_Message *msg, EDBus_Message_Cb cb, const void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2)
EDBus_Signal_Handler *edbus_object_signal_handler_add(EDBus_Object *obj, const char *interface, const char *member, EDBus_Signal_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 4)
EDBus_Message *edbus_object_method_call_new(EDBus_Object *obj, const char *interface, const char *member) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT
Eldbus_Connection *eldbus_object_connection_get(const_Eldbus_Object *obj) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_object_bus_name_get(const Eldbus_Object *obj) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_object_path_get(const Eldbus_Object *obj) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eldbus_Pending *eldbus_object_send(Eldbus_Object *obj, EDBus_Message *msg, EDBus_Message_Cb cb, const_void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2)
Eldbus_Signal_Handler *eldbus_object_signal_handler_add(Eldbus_Object *obj, const_char *interface, const char *member, EDBus_Signal_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 4)
Eldbus_Message *eldbus_object_method_call_new(Eldbus_Object *obj, const_char *interface, const char *member) EINA_ARG_NONNULL(1, 2, 3) EINA_WARN_UNUSED_RESULT
# edbus_proxy.h
# eldbus_proxy.h
EDBus_Proxy *edbus_proxy_get(EDBus_Object *obj, const char *interface) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
EDBus_Proxy *edbus_proxy_ref(EDBus_Proxy *proxy) EINA_ARG_NONNULL(1)
void edbus_proxy_unref(EDBus_Proxy *proxy) EINA_ARG_NONNULL(1)
Eldbus_Proxy *eldbus_proxy_get(Eldbus_Object *obj, const_char *interface) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
Eldbus_Proxy *eldbus_proxy_ref(Eldbus_Proxy *proxy) EINA_ARG_NONNULL(1)
void eldbus_proxy_unref(Eldbus_Proxy *proxy) EINA_ARG_NONNULL(1)
EDBus_Object *edbus_proxy_object_get(const EDBus_Proxy *proxy) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_proxy_interface_get(const EDBus_Proxy *proxy) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eldbus_Object *eldbus_proxy_object_get(const_Eldbus_Proxy *proxy) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_proxy_interface_get(const Eldbus_Proxy *proxy) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
void edbus_proxy_data_set(EDBus_Proxy *proxy, const char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
void *edbus_proxy_data_get(const EDBus_Proxy *proxy, const char *key) EINA_ARG_NONNULL(1, 2)
void *edbus_proxy_data_del(EDBus_Proxy *proxy, const char *key) EINA_ARG_NONNULL(1, 2)
void edbus_proxy_free_cb_add(EDBus_Proxy *proxy, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
void edbus_proxy_free_cb_del(EDBus_Proxy *proxy, EDBus_Free_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
EDBus_Message *edbus_proxy_method_call_new(EDBus_Proxy *proxy, const char *member) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
EDBus_Pending *edbus_proxy_send(EDBus_Proxy *proxy, EDBus_Message *msg, EDBus_Message_Cb cb, const void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2)
EDBus_Pending *edbus_proxy_call(EDBus_Proxy *proxy, const char *member, EDBus_Message_Cb cb, const void *cb_data, double timeout, const char *signature, ...) EINA_ARG_NONNULL(1, 2, 6)
EDBus_Pending *edbus_proxy_vcall(EDBus_Proxy *proxy, const char *member, EDBus_Message_Cb cb, const void *cb_data, double timeout, const char *signature, va_list ap) EINA_ARG_NONNULL(1, 2, 6)
void eldbus_proxy_data_set(Eldbus_Proxy *proxy, const_char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
void *eldbus_proxy_data_get(const_Eldbus_Proxy *proxy, const char *key) EINA_ARG_NONNULL(1, 2)
void *eldbus_proxy_data_del(Eldbus_Proxy *proxy, const_char *key) EINA_ARG_NONNULL(1, 2)
void eldbus_proxy_free_cb_add(Eldbus_Proxy *proxy, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
void eldbus_proxy_free_cb_del(Eldbus_Proxy *proxy, Eldbus_Free_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Message *eldbus_proxy_method_call_new(Eldbus_Proxy *proxy, const_char *member) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
Eldbus_Pending *eldbus_proxy_send(Eldbus_Proxy *proxy, EDBus_Message *msg, EDBus_Message_Cb cb, const_void *cb_data, double timeout) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_proxy_call(Eldbus_Proxy *proxy, const_char *member, EDBus_Message_Cb cb, const void *cb_data, double timeout, const char *signature, ...) EINA_ARG_NONNULL(1, 2, 6)
Eldbus_Pending *eldbus_proxy_vcall(Eldbus_Proxy *proxy, const_char *member, EDBus_Message_Cb cb, const void *cb_data, double timeout, const char *signature, va_list ap) EINA_ARG_NONNULL(1, 2, 6)
EDBus_Signal_Handler *edbus_proxy_signal_handler_add(EDBus_Proxy *proxy, const char *member, EDBus_Signal_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
Eldbus_Signal_Handler *eldbus_proxy_signal_handler_add(Eldbus_Proxy *proxy, const_char *member, EDBus_Signal_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
ctypedef struct EDBus_Proxy_Event_Property_Changed:
const char *name;
const EDBus_Proxy *proxy;
const Eina_Value *value;
ctypedef struct Eldbus_Proxy_Event_Property_Changed:
const_char *name;
const_Eldbus_Proxy *proxy;
const_Eina_Value *value;
ctypedef struct EDBus_Proxy_Event_Property_Removed:
const char *interface
const EDBus_Proxy *proxy
const char *name
ctypedef struct Eldbus_Proxy_Event_Property_Removed:
const_char *interface
const_Eldbus_Proxy *proxy
const_char *name
ctypedef void (*EDBus_Proxy_Event_Cb)(void *data, EDBus_Proxy *proxy, void *event_info)
ctypedef void (*Eldbus_Proxy_Event_Cb)(void *data, Eldbus_Proxy *proxy, void *event_info)
void edbus_proxy_event_callback_add(EDBus_Proxy *proxy, EDBus_Proxy_Event_Type type, EDBus_Proxy_Event_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
void edbus_proxy_event_callback_del(EDBus_Proxy *proxy, EDBus_Proxy_Event_Type type, EDBus_Proxy_Event_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 3)
void eldbus_proxy_event_callback_add(Eldbus_Proxy *proxy, Eldbus_Proxy_Event_Type type, EDBus_Proxy_Event_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1, 3)
void eldbus_proxy_event_callback_del(Eldbus_Proxy *proxy, Eldbus_Proxy_Event_Type type, EDBus_Proxy_Event_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1, 3)
# edbus_freedesktop.h
# eldbus_freedesktop.h
#define EDBUS_NAME_REQUEST_FLAG_ALLOW_REPLACEMENT 0x1 /**< Allow another service to become the primary owner if requested */
#define EDBUS_NAME_REQUEST_FLAG_REPLACE_EXISTING 0x2 /**< Request to replace the current primary owner */
#define EDBUS_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_ALLOW_REPLACEMENT 0x1 /**< Allow another service to become the primary owner if requested */
#define ELDBUS_NAME_REQUEST_FLAG_REPLACE_EXISTING 0x2 /**< Request to replace the current primary owner */
#define ELDBUS_NAME_REQUEST_FLAG_DO_NOT_QUEUE 0x4 /**< If we can not become the primary owner do not place us in the queue */
# Replies to request for a name */
#define EDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER 1 /**< Service has become the primary owner of the requested name */
#define EDBUS_NAME_REQUEST_REPLY_IN_QUEUE 2 /**< Service could not become the primary owner and has been placed in the queue */
#define EDBUS_NAME_REQUEST_REPLY_EXISTS 3 /**< Service is already in the queue */
#define EDBUS_NAME_REQUEST_REPLY_ALREADY_OWNER 4 /**< Service is already the primary owner */
#define ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER 1 /**< Service has become the primary owner of the requested name */
#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_EXISTS 3 /**< Service is already in the queue */
#define ELDBUS_NAME_REQUEST_REPLY_ALREADY_OWNER 4 /**< Service is already the primary owner */
EDBus_Pending *edbus_name_request(EDBus_Connection *conn, const char *bus, unsigned int flags, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_name_request(Eldbus_Connection *conn, const_char *bus, unsigned int flags, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
# Replies to releasing a name */
#define EDBUS_NAME_RELEASE_REPLY_RELEASED 1 /**< Service was released from the given name */
#define EDBUS_NAME_RELEASE_REPLY_NON_EXISTENT 2 /**< The given name does not exist on the bus */
#define EDBUS_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_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 */
EDBus_Pending *edbus_name_release(EDBus_Connection *conn, const char *bus, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
EDBus_Pending *edbus_name_owner_get(EDBus_Connection *conn, const char *bus, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
EDBus_Pending *edbus_name_owner_has(EDBus_Connection *conn, const char *bus, EDBus_Message_Cb cb, const void *cb_data)
EDBus_Pending *edbus_names_list(EDBus_Connection *conn, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1)
EDBus_Pending *edbus_names_activatable_list(EDBus_Connection *conn, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1)
Eldbus_Pending *eldbus_name_release(Eldbus_Connection *conn, const_char *bus, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_name_owner_get(Eldbus_Connection *conn, const_char *bus, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_name_owner_has(Eldbus_Connection *conn, const_char *bus, EDBus_Message_Cb cb, const void *cb_data)
Eldbus_Pending *eldbus_names_list(Eldbus_Connection *conn, EDBus_Message_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1)
Eldbus_Pending *eldbus_names_activatable_list(Eldbus_Connection *conn, EDBus_Message_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1)
# Replies to service starts */
#define EDBUS_NAME_START_REPLY_SUCCESS 1 /**< Service was auto started */
#define EDBUS_NAME_START_REPLY_ALREADY_RUNNING 2 /**< Service was already running */
#define ELDBUS_NAME_START_REPLY_SUCCESS 1 /**< Service was auto started */
#define ELDBUS_NAME_START_REPLY_ALREADY_RUNNING 2 /**< Service was already running */
EDBus_Pending *edbus_name_start(EDBus_Connection *conn, const char *bus, unsigned int flags, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_name_start(Eldbus_Connection *conn, const_char *bus, unsigned int flags, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
ctypedef void (*EDBus_Name_Owner_Changed_Cb)(void *data, const char *bus, const char *old_id, const char *new_id)
ctypedef void (*Eldbus_Name_Owner_Changed_Cb)(void *data, const_char *bus, const char *old_id, const char *new_id)
void edbus_name_owner_changed_callback_add(EDBus_Connection *conn, const char *bus, EDBus_Name_Owner_Changed_Cb cb, const void *cb_data, Eina_Bool allow_initial_call) EINA_ARG_NONNULL(1, 2, 3)
void edbus_name_owner_changed_callback_del(EDBus_Connection *conn, const char *bus, EDBus_Name_Owner_Changed_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2, 3)
EDBus_Pending *edbus_object_peer_ping(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
EDBus_Pending *edbus_object_peer_machine_id_get(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
EDBus_Pending *edbus_object_introspect(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
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) EINA_ARG_NONNULL(1, 2, 3)
void eldbus_name_owner_changed_callback_del(Eldbus_Connection *conn, const_char *bus, Eldbus_Name_Owner_Changed_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2, 3)
Eldbus_Pending *eldbus_object_peer_ping(Eldbus_Object *obj, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_object_peer_machine_id_get(Eldbus_Object *obj, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_object_introspect(Eldbus_Object *obj, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
void edbus_proxy_properties_monitor(EDBus_Proxy *proxy, Eina_Bool enable) EINA_ARG_NONNULL(1)
void eldbus_proxy_properties_monitor(Eldbus_Proxy *proxy, Eina_Bool enable) EINA_ARG_NONNULL(1)
EDBus_Pending *edbus_proxy_property_get(EDBus_Proxy *proxy, const char *name, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3)
EDBus_Pending *edbus_proxy_property_set(EDBus_Proxy *proxy, const char *name, const char *sig, const void *value, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3, 4)
EDBus_Pending *edbus_proxy_property_get_all(EDBus_Proxy *proxy, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
EDBus_Signal_Handler *edbus_proxy_properties_changed_callback_add(EDBus_Proxy *proxy, EDBus_Signal_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_proxy_property_get(Eldbus_Proxy *proxy, const_char *name, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3)
Eldbus_Pending *eldbus_proxy_property_set(Eldbus_Proxy *proxy, const_char *name, const char *sig, const void *value, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3, 4)
Eldbus_Pending *eldbus_proxy_property_get_all(Eldbus_Proxy *proxy, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Signal_Handler *eldbus_proxy_properties_changed_callback_add(Eldbus_Proxy *proxy, EDBus_Signal_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
Eina_Value *edbus_proxy_property_local_get(EDBus_Proxy *proxy, const char *name) EINA_ARG_NONNULL(1, 2)
const Eina_Hash *edbus_proxy_property_local_get_all(EDBus_Proxy *proxy) EINA_ARG_NONNULL(1)
EDBus_Pending *edbus_object_managed_objects_get(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eina_Value *eldbus_proxy_property_local_get(Eldbus_Proxy *proxy, const_char *name) EINA_ARG_NONNULL(1, 2)
const_Eina_Hash *eldbus_proxy_property_local_get_all(Eldbus_Proxy *proxy) EINA_ARG_NONNULL(1)
Eldbus_Pending *eldbus_object_managed_objects_get(Eldbus_Object *obj, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
# edbus_service.h
# eldbus_service.h
#define EDBUS_METHOD_FLAG_DEPRECATED 1
#define EDBUS_METHOD_FLAG_NOREPLY (1 << 1)
#define ELDBUS_METHOD_FLAG_DEPRECATED 1
#define ELDBUS_METHOD_FLAG_NOREPLY (1 << 1)
#define EDBUS_SIGNAL_FLAG_DEPRECATED 1
#define ELDBUS_SIGNAL_FLAG_DEPRECATED 1
#define EDBUS_PROPERTY_FLAG_DEPRECATED 1
#define ELDBUS_PROPERTY_FLAG_DEPRECATED 1
ctypedef struct EDBus_Arg_Info:
const char *signature
const char *name
ctypedef struct Eldbus_Arg_Info:
const_char *signature
const_char *name
#define EDBUS_ARGS(args...) (const EDBus_Arg_Info[]){ args, { NULL, NULL } }
#define ELDBUS_ARGS(args...) (const_Eldbus_Arg_Info[]){ args, { NULL, NULL } }
ctypedef struct _EDBus_Service_Interface EDBus_Service_Interface
ctypedef EDBus_Message * (*EDBus_Method_Cb)(const EDBus_Service_Interface *iface, const EDBus_Message *message)
ctypedef struct _Eldbus_Service_Interface Eldbus_Service_Interface
ctypedef Eldbus_Message * (*Eldbus_Method_Cb)(const_EDBus_Service_Interface *iface, const EDBus_Message *message)
ctypedef Eina_Bool (*EDBus_Property_Get_Cb)(const EDBus_Service_Interface *iface, const char *propname, EDBus_Message_Iter *iter, const EDBus_Message *request_msg, EDBus_Message **error)
ctypedef Eina_Bool (*Eldbus_Property_Get_Cb)(const_Eldbus_Service_Interface *iface, const char *propname, EDBus_Message_Iter *iter, const EDBus_Message *request_msg, EDBus_Message **error)
ctypedef EDBus_Message *(*EDBus_Property_Set_Cb)(const EDBus_Service_Interface *iface, const char *propname, EDBus_Message_Iter *iter, const EDBus_Message *input_msg)
ctypedef Eldbus_Message *(*Eldbus_Property_Set_Cb)(const_EDBus_Service_Interface *iface, const char *propname, EDBus_Message_Iter *iter, const EDBus_Message *input_msg)
ctypedef struct EDBus_Method:
const char *member
const EDBus_Arg_Info *in
const EDBus_Arg_Info *out
EDBus_Method_Cb cb
ctypedef struct Eldbus_Method:
const_char *member
const_Eldbus_Arg_Info *in
const_Eldbus_Arg_Info *out
Eldbus_Method_Cb cb
unsigned int flags
ctypedef struct EDBus_Signal:
const char *name
const EDBus_Arg_Info *args
ctypedef struct Eldbus_Signal:
const_char *name
const_Eldbus_Arg_Info *args
unsigned int flags
ctypedef struct EDBus_Property:
const char *name
const char *type
EDBus_Property_Get_Cb get_func
EDBus_Property_Set_Cb set_func
ctypedef struct Eldbus_Property:
const_char *name
const_char *type
Eldbus_Property_Get_Cb get_func
Eldbus_Property_Set_Cb set_func
unsigned int flags
ctypedef struct EDBus_Service_Interface_Desc:
const char *interface # interface name
const EDBus_Method *methods # array of the methods that should be registered in this interface, the last item of array should be filled with NULL
const EDBus_Signal *signals # array of signal that this interface send, the last item of array should be filled with NULL
const EDBus_Property *properties # array of property that this interface have, the last item of array should be filled with NULL
const EDBus_Property_Get_Cb default_get # default get function, if a property don't have a get function this will be used
const EDBus_Property_Set_Cb default_set # default set function, if a property don't have a set function this will be used
ctypedef struct Eldbus_Service_Interface_Desc:
const_char *interface # interface name
const_Eldbus_Method *methods # array of the methods that should be registered in this interface, the last item of array should be filled with NULL
const_Eldbus_Signal *signals # array of signal that this interface send, the last item of array should be filled with NULL
const_Eldbus_Property *properties # array of property that this interface have, the last item of array should be filled with NULL
const_Eldbus_Property_Get_Cb default_get # default get function, if a property don't have a get function this will be used
const_Eldbus_Property_Set_Cb default_set # default set function, if a property don't have a set function this will be used
EDBus_Service_Interface *edbus_service_interface_register(EDBus_Connection *conn, const char *path, const EDBus_Service_Interface_Desc *desc) EINA_ARG_NONNULL(1, 2, 3)
void edbus_service_interface_unregister(EDBus_Service_Interface *iface) EINA_ARG_NONNULL(1)
void edbus_service_object_unregister(EDBus_Service_Interface *iface) EINA_ARG_NONNULL(1)
EDBus_Connection *edbus_service_connection_get(const EDBus_Service_Interface *iface) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const char *edbus_service_object_path_get(const EDBus_Service_Interface *iface) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eldbus_Service_Interface *eldbus_service_interface_register(Eldbus_Connection *conn, const_char *path, const EDBus_Service_Interface_Desc *desc) EINA_ARG_NONNULL(1, 2, 3)
void eldbus_service_interface_unregister(Eldbus_Service_Interface *iface) EINA_ARG_NONNULL(1)
void eldbus_service_object_unregister(Eldbus_Service_Interface *iface) EINA_ARG_NONNULL(1)
Eldbus_Connection *eldbus_service_connection_get(const_Eldbus_Service_Interface *iface) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
const_char *eldbus_service_object_path_get(const Eldbus_Service_Interface *iface) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Bool edbus_service_signal_emit(const EDBus_Service_Interface *iface, unsigned int signal_id, ...) EINA_ARG_NONNULL(1)
EDBus_Message *edbus_service_signal_new(const EDBus_Service_Interface *iface, unsigned int signal_id) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Bool edbus_service_signal_send(const EDBus_Service_Interface *iface, EDBus_Message *signal_msg) EINA_ARG_NONNULL(1, 2)
void edbus_service_object_data_set(EDBus_Service_Interface *iface, const char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
void *edbus_service_object_data_get(const EDBus_Service_Interface *iface, const char *key) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
void *edbus_service_object_data_del(EDBus_Service_Interface *iface, const char *key) EINA_ARG_NONNULL(1, 2)
Eina_Bool eldbus_service_signal_emit(const_Eldbus_Service_Interface *iface, unsigned int signal_id, ...) EINA_ARG_NONNULL(1)
Eldbus_Message *eldbus_service_signal_new(const_Eldbus_Service_Interface *iface, unsigned int signal_id) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eina_Bool eldbus_service_signal_send(const_Eldbus_Service_Interface *iface, Eldbus_Message *signal_msg) EINA_ARG_NONNULL(1, 2)
void eldbus_service_object_data_set(Eldbus_Service_Interface *iface, const_char *key, const void *data) EINA_ARG_NONNULL(1, 2, 3)
void *eldbus_service_object_data_get(const_Eldbus_Service_Interface *iface, const char *key) EINA_ARG_NONNULL(1, 2) EINA_WARN_UNUSED_RESULT
void *eldbus_service_object_data_del(Eldbus_Service_Interface *iface, const_char *key) EINA_ARG_NONNULL(1, 2)
Eina_Bool edbus_service_property_changed(const EDBus_Service_Interface *iface, const char *name) EINA_ARG_NONNULL(1, 2)
Eina_Bool eldbus_service_property_changed(const_Eldbus_Service_Interface *iface, const char *name) EINA_ARG_NONNULL(1, 2)
Eina_Bool edbus_service_property_invalidate_set(const EDBus_Service_Interface *iface, const char *name, Eina_Bool is_invalidate) EINA_ARG_NONNULL(1, 2)
Eina_Bool edbus_service_object_manager_attach(EDBus_Service_Interface *iface) EINA_ARG_NONNULL(1)
Eina_Bool edbus_service_object_manager_detach(EDBus_Service_Interface *iface) EINA_ARG_NONNULL(1)
Eina_Bool eldbus_service_property_invalidate_set(const_Eldbus_Service_Interface *iface, const char *name, Eina_Bool is_invalidate) EINA_ARG_NONNULL(1, 2)
Eina_Bool eldbus_service_object_manager_attach(Eldbus_Service_Interface *iface) EINA_ARG_NONNULL(1)
Eina_Bool eldbus_service_object_manager_detach(Eldbus_Service_Interface *iface) EINA_ARG_NONNULL(1)

View File

@ -17,7 +17,7 @@
"""
EDBus is a wrapper around the
Eldbus is a wrapper around the
`dbus <http://www.freedesktop.org/wiki/Software/dbus>`_
library, which is a message bus system. It also implements a set of
specifications using dbus as interprocess communication.
@ -27,9 +27,9 @@ specifications using dbus as interprocess communication.
from cpython cimport PyUnicode_AsUTF8String
def module_cleanup():
edbus_shutdown()
eldbus_shutdown()
edbus_init()
eldbus_init()
atexit.register(module_cleanup)
include "connection.pxi"

View File

@ -1,26 +1,26 @@
cdef extern from "EDBus.h":
ctypedef enum EDBus_Connection_Type:
EDBUS_CONNECTION_TYPE_UNKNOWN
EDBUS_CONNECTION_TYPE_SESSION
EDBUS_CONNECTION_TYPE_SYSTEM
EDBUS_CONNECTION_TYPE_STARTER
EDBUS_CONNECTION_TYPE_LAST
cdef extern from "Eldbus.h":
ctypedef enum Eldbus_Connection_Type:
ELDBUS_CONNECTION_TYPE_UNKNOWN
ELDBUS_CONNECTION_TYPE_SESSION
ELDBUS_CONNECTION_TYPE_SYSTEM
ELDBUS_CONNECTION_TYPE_STARTER
ELDBUS_CONNECTION_TYPE_LAST
ctypedef enum EDBus_Connection_Event_Type:
EDBUS_CONNECTION_EVENT_DEL
EDBUS_CONNECTION_EVENT_DISCONNECTED
EDBUS_CONNECTION_EVENT_LAST # sentinel, not a real event type
ctypedef enum Eldbus_Connection_Event_Type:
ELDBUS_CONNECTION_EVENT_DEL
ELDBUS_CONNECTION_EVENT_DISCONNECTED
ELDBUS_CONNECTION_EVENT_LAST # sentinel, not a real event type
ctypedef enum EDBus_Object_Event_Type:
EDBUS_OBJECT_EVENT_IFACE_ADDED # a parent path must have a ObjectManager interface
EDBUS_OBJECT_EVENT_IFACE_REMOVED # a parent path must have a ObjectManager interface
EDBUS_OBJECT_EVENT_PROPERTY_CHANGED
EDBUS_OBJECT_EVENT_PROPERTY_REMOVED
EDBUS_OBJECT_EVENT_DEL
EDBUS_OBJECT_EVENT_LAST # sentinel, not a real event type
ctypedef enum Eldbus_Object_Event_Type:
ELDBUS_OBJECT_EVENT_IFACE_ADDED # a parent path must have a ObjectManager interface
ELDBUS_OBJECT_EVENT_IFACE_REMOVED # a parent path must have a ObjectManager interface
ELDBUS_OBJECT_EVENT_PROPERTY_CHANGED
ELDBUS_OBJECT_EVENT_PROPERTY_REMOVED
ELDBUS_OBJECT_EVENT_DEL
ELDBUS_OBJECT_EVENT_LAST # sentinel, not a real event type
ctypedef enum EDBus_Proxy_Event_Type:
EDBUS_PROXY_EVENT_PROPERTY_CHANGED
EDBUS_PROXY_EVENT_PROPERTY_REMOVED
EDBUS_PROXY_EVENT_DEL
EDBUS_PROXY_EVENT_LAST # sentinel, not a real event type
ctypedef enum Eldbus_Proxy_Event_Type:
ELDBUS_PROXY_EVENT_PROPERTY_CHANGED
ELDBUS_PROXY_EVENT_PROPERTY_REMOVED
ELDBUS_PROXY_EVENT_DEL
ELDBUS_PROXY_EVENT_LAST # sentinel, not a real event type

View File

@ -1,45 +1,45 @@
#define EDBUS_NAME_REQUEST_FLAG_ALLOW_REPLACEMENT 0x1 /**< Allow another service to become the primary owner if requested */
#define EDBUS_NAME_REQUEST_FLAG_REPLACE_EXISTING 0x2 /**< Request to replace the current primary owner */
#define EDBUS_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_ALLOW_REPLACEMENT 0x1 /**< Allow another service to become the primary owner if requested */
#define ELDBUS_NAME_REQUEST_FLAG_REPLACE_EXISTING 0x2 /**< Request to replace the current primary owner */
#define ELDBUS_NAME_REQUEST_FLAG_DO_NOT_QUEUE 0x4 /**< If we can not become the primary owner do not place us in the queue */
# Replies to request for a name
#define EDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER 1 /**< Service has become the primary owner of the requested name */
#define EDBUS_NAME_REQUEST_REPLY_IN_QUEUE 2 /**< Service could not become the primary owner and has been placed in the queue */
#define EDBUS_NAME_REQUEST_REPLY_EXISTS 3 /**< Service is already in the queue */
#define EDBUS_NAME_REQUEST_REPLY_ALREADY_OWNER 4 /**< Service is already the primary owner */
#define ELDBUS_NAME_REQUEST_REPLY_PRIMARY_OWNER 1 /**< Service has become the primary owner of the requested name */
#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_EXISTS 3 /**< Service is already in the queue */
#define ELDBUS_NAME_REQUEST_REPLY_ALREADY_OWNER 4 /**< Service is already the primary owner */
def name_request(conn, bus, flags, cb, cb_data):
EDBus_Pending *edbus_name_request(EDBus_Connection *conn, const char *bus, unsigned int flags, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_name_request(Eldbus_Connection *conn, const_char *bus, unsigned int flags, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
# Replies to releasing a name
#define EDBUS_NAME_RELEASE_REPLY_RELEASED 1 /**< Service was released from the given name */
#define EDBUS_NAME_RELEASE_REPLY_NON_EXISTENT 2 /**< The given name does not exist on the bus */
#define EDBUS_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_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 */
def name_release(conn, bus, cb, cb_data):
EDBus_Pending *edbus_name_release(EDBus_Connection *conn, const char *bus, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_name_release(Eldbus_Connection *conn, const_char *bus, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
def name_owner_get(conn, bus, cb, cb_data):
EDBus_Pending *edbus_name_owner_get(EDBus_Connection *conn, const char *bus, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_name_owner_get(Eldbus_Connection *conn, const_char *bus, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
def name_owner_has(conn, bus, cb, cb_data):
EDBus_Pending *edbus_name_owner_has(EDBus_Connection *conn, const char *bus, EDBus_Message_Cb cb, const void *cb_data)
Eldbus_Pending *eldbus_name_owner_has(Eldbus_Connection *conn, const_char *bus, EDBus_Message_Cb cb, const void *cb_data)
def names_list(conn, cb, cb_data):
EDBus_Pending *edbus_names_list(EDBus_Connection *conn, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1)
Eldbus_Pending *eldbus_names_list(Eldbus_Connection *conn, EDBus_Message_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1)
def names_activatable_list(conn, cb, cb_data):
EDBus_Pending *edbus_names_activatable_list(EDBus_Connection *conn, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1)
Eldbus_Pending *eldbus_names_activatable_list(Eldbus_Connection *conn, EDBus_Message_Cb cb, const_void *cb_data) EINA_ARG_NONNULL(1)
# Replies to service starts
#define EDBUS_NAME_START_REPLY_SUCCESS 1 /**< Service was auto started */
#define EDBUS_NAME_START_REPLY_ALREADY_RUNNING 2 /**< Service was already running */
#define ELDBUS_NAME_START_REPLY_SUCCESS 1 /**< Service was auto started */
#define ELDBUS_NAME_START_REPLY_ALREADY_RUNNING 2 /**< Service was already running */
def name_start(conn, bus, flags, cb, cb_data):
EDBus_Pending *edbus_name_start(EDBus_Connection *conn, const char *bus, unsigned int flags, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_name_start(Eldbus_Connection *conn, const_char *bus, unsigned int flags, EDBus_Message_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2)
typedef void (*EDBus_Name_Owner_Changed_Cb)(void *data, const char *bus, const char *old_id, const char *new_id);
typedef void (*Eldbus_Name_Owner_Changed_Cb)(void *data, const_char *bus, const char *old_id, const char *new_id);
def name_owner_changed_callback_add(conn, bus, cb, cb_data, allow_initial_call):
@ -47,7 +47,7 @@ def name_owner_changed_callback_add(conn, bus, cb, cb_data, allow_initial_call):
Add a callback to be called when unique id of a bus name changed.
This function implicitly calls edbus_name_owner_get() in order to be able to
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 @param allow_initial_call so your
callback will not be called on first retrieval of name owner. If the
@ -60,12 +60,12 @@ def name_owner_changed_callback_add(conn, bus, cb, cb_data, allow_initial_call):
@param allow_initial_call allow call callback with actual id of the bus
"""
void edbus_name_owner_changed_callback_add(EDBus_Connection *conn, const char *bus, EDBus_Name_Owner_Changed_Cb cb, const void *cb_data, Eina_Bool allow_initial_call) EINA_ARG_NONNULL(1, 2, 3)
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) EINA_ARG_NONNULL(1, 2, 3)
def name_owner_changed_callback_del(conn, bus, cb, cb_data):
"""
Remove callback added with edbus_name_owner_changed_callback_add().
Remove callback added with eldbus_name_owner_changed_callback_add().
@param conn connection
@param bus name of bus
@ -73,65 +73,65 @@ def name_owner_changed_callback_del(conn, bus, cb, cb_data):
@param cb_data context data
"""
void edbus_name_owner_changed_callback_del(EDBus_Connection *conn, const char *bus, EDBus_Name_Owner_Changed_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2, 3)
void eldbus_name_owner_changed_callback_del(Eldbus_Connection *conn, const_char *bus, Eldbus_Name_Owner_Changed_Cb cb, const void *cb_data) EINA_ARG_NONNULL(1, 2, 3)
def object_peer_ping(obj, cb, data):
EDBus_Pending *edbus_object_peer_ping(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_object_peer_ping(Eldbus_Object *obj, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
def object_peer_machine_id_get(obj, cb, data):
EDBus_Pending *edbus_object_peer_machine_id_get(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_object_peer_machine_id_get(Eldbus_Object *obj, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
def object_introspect(obj, cb, data):
EDBus_Pending *edbus_object_introspect(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_object_introspect(Eldbus_Object *obj, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
def proxy_properties_monitor(proxy, enable):
"""
Enable or disable local cache of properties.
After enable you can call edbus_proxy_property_local_get() or
edbus_proxy_property_local_get_all() to get cached properties.
After enable you can call eldbus_proxy_property_local_get() or
eldbus_proxy_property_local_get_all() to get cached properties.
@note After enable, it will asynchrony get the properties values.
"""
void edbus_proxy_properties_monitor(EDBus_Proxy *proxy, Eina_Bool enable) EINA_ARG_NONNULL(1)
void eldbus_proxy_properties_monitor(Eldbus_Proxy *proxy, Eina_Bool enable) EINA_ARG_NONNULL(1)
def proxy_property_get(proxy, name, cb, data):
EDBus_Pending *edbus_proxy_property_get(EDBus_Proxy *proxy, const char *name, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3)
Eldbus_Pending *eldbus_proxy_property_get(Eldbus_Proxy *proxy, const_char *name, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3)
def proxy_property_set(proxy, name, sig, value, cb, data):
EDBus_Pending *edbus_proxy_property_set(EDBus_Proxy *proxy, const char *name, const char *sig, const void *value, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3, 4)
Eldbus_Pending *eldbus_proxy_property_set(Eldbus_Proxy *proxy, const_char *name, const char *sig, const void *value, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2, 3, 4)
def proxy_property_get_add(proxy, cb, data):
EDBus_Pending *edbus_proxy_property_get_all(EDBus_Proxy *proxy, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_proxy_property_get_all(Eldbus_Proxy *proxy, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
def proxy_properties_changed_callback_add(proxy, cb, data):
EDBus_Signal_Handler *edbus_proxy_properties_changed_callback_add(EDBus_Proxy *proxy, EDBus_Signal_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Signal_Handler *eldbus_proxy_properties_changed_callback_add(Eldbus_Proxy *proxy, EDBus_Signal_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)
def proxy_property_local_get(proxy, name):
"""
Return the cached value of property.
This only work if you have enable edbus_proxy_properties_monitor or
if you have call edbus_proxy_event_callback_add of type
EDBUS_PROXY_EVENT_PROPERTY_CHANGED and the property you want had changed.
This only work if you have enable eldbus_proxy_properties_monitor or
if you have call eldbus_proxy_event_callback_add of type
ELDBUS_PROXY_EVENT_PROPERTY_CHANGED and the property you want had changed.
"""
Eina_Value *edbus_proxy_property_local_get(EDBus_Proxy *proxy, const char *name) EINA_ARG_NONNULL(1, 2)
Eina_Value *eldbus_proxy_property_local_get(Eldbus_Proxy *proxy, const_char *name) EINA_ARG_NONNULL(1, 2)
def proxy_property_local_get_all(proxy):
"""
Return a Eina_Hash with all cached properties.
This only work if you have enable edbus_proxy_properties_monitor or
if you have call edbus_proxy_event_callback_add of type
EDBUS_PROXY_EVENT_PROPERTY_CHANGED.
This only work if you have enable eldbus_proxy_properties_monitor or
if you have call eldbus_proxy_event_callback_add of type
ELDBUS_PROXY_EVENT_PROPERTY_CHANGED.
"""
const Eina_Hash *edbus_proxy_property_local_get_all(EDBus_Proxy *proxy) EINA_ARG_NONNULL(1)
const_Eina_Hash *eldbus_proxy_property_local_get_all(Eldbus_Proxy *proxy) EINA_ARG_NONNULL(1)
def object_managed_objects_get(obj, cb, data):
EDBus_Pending *edbus_object_managed_objects_get(EDBus_Object *obj, EDBus_Message_Cb cb, const void *data) EINA_ARG_NONNULL(1, 2)
Eldbus_Pending *eldbus_object_managed_objects_get(Eldbus_Object *obj, EDBus_Message_Cb cb, const_void *data) EINA_ARG_NONNULL(1, 2)

View File

@ -1,6 +1,6 @@
cdef class Message(object):
cdef EDBus_Message *msg
cdef Eldbus_Message *msg
def ref(self):
"""
@ -8,8 +8,8 @@ cdef class Message(object):
Increase message reference.
"""
# NOTE: returns EDBus_Message *
edbus_message_ref(self.msg)
# NOTE: returns Eldbus_Message *
eldbus_message_ref(self.msg)
return self
def unref(self):
@ -21,31 +21,31 @@ cdef class Message(object):
freed.
"""
edbus_message_unref(self.msg)
eldbus_message_unref(self.msg)
property path:
def __get__(self):
const char *edbus_message_path_get(self.msg)
const_char *eldbus_message_path_get(self.msg)
property interface:
def __get__(self):
const char *edbus_message_interface_get(self.msg)
const_char *eldbus_message_interface_get(self.msg)
property member:
def __get__(self):
const char *edbus_message_member_get(self.msg)
const_char *eldbus_message_member_get(self.msg)
property destination:
def __get__(self):
const char *edbus_message_destination_get(self.msg)
const_char *eldbus_message_destination_get(self.msg)
property sender:
def __get__(self):
const char *edbus_message_sender_get(self.msg)
const_char *eldbus_message_sender_get(self.msg)
property signature:
def __get__(self):
const char *edbus_message_signature_get(self.msg)
const_char *eldbus_message_signature_get(self.msg)
@classmethod
def method_call_new(cls, dest, path, iface, method):
@ -58,10 +58,10 @@ cdef class Message(object):
:param iface: interface name
:param method: name of the method to be called
@return a new EDBus_Message, free with edbus_message_unref()
@return a new Eldbus_Message, free with eldbus_message_unref()
"""
EDBus_Message *edbus_message_method_call_new(const char *dest, const char *path, const char *iface, const char *method) EINA_ARG_NONNULL(1, 2, 3, 4) EINA_WARN_UNUSED_RESULT EINA_MALLOC
Eldbus_Message *eldbus_message_method_call_new(const_char *dest, const char *path, const char *iface, const char *method) EINA_ARG_NONNULL(1, 2, 3, 4) EINA_WARN_UNUSED_RESULT EINA_MALLOC
@classmethod
def error_new(cls, msg, error_name, error_msg):
@ -73,10 +73,10 @@ cdef class Message(object):
:param error_name: the error name
:param error_msg: the error message string
@return a new EDBus_Message, free with edbus_message_unref()
@return a new Eldbus_Message, free with eldbus_message_unref()
"""
EDBus_Message *edbus_message_error_new( const EDBus_Message *msg, const char *error_name, const char *error_msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eldbus_Message *eldbus_message_error_new( const_Eldbus_Message *msg, const char *error_name, const char *error_msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
@classmethod
def method_return_new(cls, msg):
@ -86,16 +86,16 @@ cdef class Message(object):
:param msg: the message we're replying to
@return new EDBus_Message, free with edbus_message_unref()
@return new Eldbus_Message, free with eldbus_message_unref()
"""
EDBus_Message *edbus_message_method_return_new( const EDBus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
Eldbus_Message *eldbus_message_method_return_new( const_Eldbus_Message *msg) EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT
def error_get(self, name, text):
"""
Get the error text and name from a EDBus_Message.
Get the error text and name from a Eldbus_Message.
If :param msg: is an error message return EINA_TRUE and fill in the name and
text of the error.
@ -106,18 +106,18 @@ cdef class Message(object):
desired.
"""
Eina_Bool edbus_message_error_get(self.msg, const char **name, const char **text) EINA_ARG_NONNULL(1)
Eina_Bool eldbus_message_error_get(self.msg, const_char **name, const char **text) EINA_ARG_NONNULL(1)
def arguments_get(self, signature, *args):
"""
Get the arguments from an EDBus_Message
Get the arguments from an Eldbus_Message
Get the arguments of an EDBus_Message storing them in the locations pointed
Get the arguments of an Eldbus_Message storing them in the locations pointed
to by the pointer arguments that follow :param signature:. Each pointer
argument must be of a type that is appropriate for the correspondent complete
type in :param signature:. For complex types such as arrays, structs,
dictionaries or variants, a pointer to EDBus_Message_Iter* must be provided.
dictionaries or variants, a pointer to Eldbus_Message_Iter* must be provided.
:param signature: The signature of the arguments user is expecting to read
@param ... The pointers in which to store the message arguments
@ -126,35 +126,35 @@ cdef class Message(object):
respective pointer arguments.
"""
Eina_Bool edbus_message_arguments_get(self.msg, const char *signature, ...)
Eina_Bool eldbus_message_arguments_get(self.msg, const_char *signature, ...)
def arguments_vget(self, signature):
"""
Get the arguments from an EDBus_Message using a va_list.
Get the arguments from an Eldbus_Message using a va_list.
:param signature: The signature user is expecting to read from :param msg:.
:param ap: The va_list containing the pointer arguments.
@see edbus_message_arguments_get()
@see eldbus_message_arguments_get()
@return EINA_TRUE if the arguments were read succesfully and stored in the
respective pointer arguments.
"""
Eina_Bool edbus_message_arguments_vget(self.msg, const char *signature, va_list ap)
Eina_Bool eldbus_message_arguments_vget(self.msg, const_char *signature, va_list ap)
def arguments_append(self, signature, *args):
"""
Append arguments into an EDBus_Message
Append arguments into an Eldbus_Message
Append arguments into an EDBus_Message according to the :param signature:
Append arguments into an Eldbus_Message according to the :param signature:
provided. For each complete type in :param signature:, a value of the
corresponding type must be provided.
This function supports only basic types. For complex types use
edbus_message_iter_* family of functions.
eldbus_message_iter_* family of functions.
:param signature: Signature of the arguments that are being appended.
@param ... Values of each argument to append in :param msg:.
@ -162,22 +162,22 @@ cdef class Message(object):
@return EINA_TRUE on success, EINA_FALSE otherwise.
"""
Eina_Bool edbus_message_arguments_append(self.msg, const char *signature, ...)
Eina_Bool eldbus_message_arguments_append(self.msg, const_char *signature, ...)
def arguments_vappend(self, signature, va_list_ap):
"""
Append arguments into an EDBus_Message using a va_list.
Append arguments into an Eldbus_Message using a va_list.
:param signature: Signature of the arguments that are being appended.
:param ap: The va_list containing the arguments to append.
@see edbus_message_arguments_append().
@see eldbus_message_arguments_append().
@return EINA_TRUE on success, EINA_FALSE otherwise.
"""
Eina_Bool edbus_message_arguments_vappend(self.msg, const char *signature, va_list ap)
Eina_Bool eldbus_message_arguments_vappend(self.msg, const_char *signature, va_list ap)
cdef class MessageIterator(object):
@ -186,7 +186,7 @@ cdef class MessageIterator(object):
Create and append a typed iterator to another iterator.
After append data to returned iterator it must be closed calling
edbus_message_iter_container_close().
eldbus_message_iter_container_close().
Container types are for example struct, variant, and array.
For variants, the contained_signature should be the type of the single
@ -201,65 +201,65 @@ cdef class MessageIterator(object):
@return the new iterator
"""
EDBus_Message_Iter *edbus_message_iter_container_new(EDBus_Message_Iter *iter, int type, const char* contained_signature) EINA_ARG_NONNULL(1, 3) EINA_WARN_UNUSED_RESULT
Eldbus_Message_Iter *eldbus_message_iter_container_new(Eldbus_Message_Iter *iter, int type, const_char* contained_signature) EINA_ARG_NONNULL(1, 3) EINA_WARN_UNUSED_RESULT
"""
Append a basic type into an EDBus_Iterator.
Append a basic type into an Eldbus_Iterator.
"""
Eina_Bool edbus_message_iter_basic_append(EDBus_Message_Iter *iter, int type, ...) EINA_ARG_NONNULL(1, 3)
Eina_Bool eldbus_message_iter_basic_append(Eldbus_Message_Iter *iter, int type, ...) EINA_ARG_NONNULL(1, 3)
"""
Append an argument into an EDBus_Message_Iter. For each complete type
Append an argument into an Eldbus_Message_Iter. For each complete type
you need to provide the correspondent value. In case of complex types you
need to provide an EDBus_Message_Iter** to be allocated and then filled in.
need to provide an Eldbus_Message_Iter** to be allocated and then filled in.
It's not possible to open two iterators at same iterator with this function.
For example, to create a message with signature="aiai" you need to create the
first container with edbus_message_iter_container_new(), fill the array,
close it with edbus_message_iter_container_close() and then do the same for