-#sbs-git:slp/pkgs/e/edbus edbus 1.0.0.001+svn.69045slp2+build01 706f4acfdaf1b818e2387701a993eca929051358
Name: edbus
Summary: D-Bus and HAL wrapper libraries for EFL
-Version: 1.6.0+svn.76526slp2+build07
+Version: 1.6.0+svn.76526slp2+build10
Release: 1
-VCS: framework/uifw/edbus#1.6.0+svn.76526slp2+build06-0-gf8cc99cf55301331d3465870098a27d937bdb9aa
Group: System/Libraries
-License: BSD
+License: BSD 2-Clause
+URL: http://www.enlightenment.org/
Source0: %{name}-%{version}.tar.gz
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
D-Bus and HAL wrapper libraries for use with the EFL
-
%package devel
Summary: D-Bus and HAL wrapper libraries for EFL (devel)
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+
%description devel
D-Bus and HAL wrapper libraries for use with the EFL (devel)
+%package tools
+Summary: D-Bus and HAL wrapper libraries for EFL (tools)
+Group: Development/Tools
+Requires: %{name} = %{version}-%{release}
+Provides: %{name}-bin
+Obsoletes: %{name}-bin
+
+
+%description tools
+D-Bus and HAL wrapper libraries for use with the EFL (tools)
+
+
%prep
%setup -q
%build
-export CFLAGS+=" -fvisibility=hidden -fPIC"
+export CFLAGS+=" -fvisibility=hidden -fPIC -Wall"
export LDFLAGS+=" -fvisibility=hidden -Wl,--hash-style=both -Wl,--as-needed"
%autogen --disable-static
+
make %{?jobs:-j%jobs}
+
%install
-rm -rf %{buildroot}
%make_install
-mkdir -p %{buildroot}/usr/share/license
-cp %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/usr/share/license/%{name}
+mkdir -p %{buildroot}/%{_datadir}/license
+cp %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{_datadir}/license/%{name}
+cp %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{_datadir}/license/%{name}-tools
%post -p /sbin/ldconfig
+
%postun -p /sbin/ldconfig
+
%files
%defattr(-,root,root,-)
-%{_bindir}/e-*
-%{_bindir}/e_*
%{_libdir}/libe*.so.*
-/usr/share/e_dbus/logo.png
+%{_datadir}/license/%{name}
%manifest %{name}.manifest
-/usr/share/license/%{name}
+
%files devel
%defattr(-,root,root,-)
+%{_bindir}/e_dbus_async_client_test
+%{_bindir}/e_dbus_async_server_test
+%{_bindir}/e_dbus_bluez_test
+%{_bindir}/e_dbus_connman0_7x_test
+%{_bindir}/e_dbus_ofono_test
+%{_bindir}/e_dbus_test
+%{_bindir}/e_dbus_test_client
+%{_bindir}/e_dbus_ukit_test
%{_libdir}/libebluez.so
%{_libdir}/libeconnman0_7x.so
%{_libdir}/libedbus.so
%{_libdir}/pkgconfig/enotify.pc
%{_libdir}/pkgconfig/eofono.pc
%{_libdir}/pkgconfig/eukit.pc
-
%{_includedir}/e_dbus-1/E_Bluez.h
%{_includedir}/e_dbus-1/connman0_7x/E_Connman.h
%{_includedir}/e_dbus-1/E_DBus.h
%{_includedir}/e_dbus-1/E_Notify.h
%{_includedir}/e_dbus-1/E_Ofono.h
%{_includedir}/e_dbus-1/E_Ukit.h
+
+
+%files tools
+%{_bindir}/e-notify-send
+%{_bindir}/e_dbus_notification_daemon
+%{_bindir}/e_dbus_notify
+%{_datadir}/e_dbus/logo.png
+%{_datadir}/license/%{name}-tools
+%manifest %{name}-tools.manifest
#endif
/**
- * @mainpage EDbus
+ * @internal
+ * @page EDbus
*
* @section edbus_intro_sec Introduction
*
*/
/**
+ * @internal
* @defgroup EDbus_Group EDbus
+ * @ingroup EFL_Group
*
* @{
*/
/**
* @brief Initialize e_dbus
+ *
* @return 1 or greater on success, 0 otherwise
*
* This function sets up all the E_DBus library. It returns 0 on
/**
* Shutdown e_dbus.
+ *
* @return 0 if e_dbus shuts down, greater than 0 otherwise.
*
* This function shuts down the E_DBus library. It returns 0 when it has
/**
* Retrieve a connection to the bus and integrate it with the ecore main loop.
- * @param type the type of bus to connect to, e.g. DBUS_BUS_SYSTEM or DBUS_BUS_SESSION
+ *
+ * @param[in] type the type of bus to connect to, e.g. DBUS_BUS_SYSTEM or DBUS_BUS_SESSION
*/
EAPI E_DBus_Connection *e_dbus_bus_get(DBusBusType type);
/**
* Integrate a DBus connection with the ecore main loop
*
- * @param conn - a dbus connection
+ * @param[in] conn - a dbus connection
*/
EAPI E_DBus_Connection *e_dbus_connection_setup(DBusConnection *conn);
/**
* Close out a connection retrieved with e_dbus_bus_get()
- * @param conn the connection to close
+ *
+ * @param[in] conn the connection to close
*/
EAPI void e_dbus_connection_close(E_DBus_Connection *conn);
/**
* Add a method to an object
*
- * @param iface the E_DBus_Interface to which this method belongs
- * @param member the name of the method
- * @param signature an optional message signature. if provided, then messages
+ * @param[in] iface the E_DBus_Interface to which this method belongs
+ * @param[in] member the name of the method
+ * @param[in] signature an optional message signature. if provided, then messages
* with invalid signatures will be automatically rejected
* (an Error response will be sent) and introspection data
* will be available.
+ * @param[in] reply_signature an replay message signature
+ * @param[in] func the callback
*
* @return 1 if successful, 0 if failed (e.g. no memory)
*/
/**
* Add a signal to an object
*
- * @param iface the E_DBus_Interface to which this signal belongs
- * @param name the name of the signal
- * @param signature an optional message signature.
+ * @param[in] iface the E_DBus_Interface to which this signal belongs
+ * @param[in] name the name of the signal
+ * @param[in] signature an optional message signature.
*
* @return 1 if successful, 0 if failed (e.g. no memory)
*/
/**
* Add a dbus object.
*
- * @param conn the connection on with the object should listen
- * @param object_path a unique string identifying an object (e.g. org/enlightenment/WindowManager
- * @param data custom data to set on the object (retrievable via
+ * @param[in] conn the connection on with the object should listen
+ * @param[in] object_path a unique string identifying an object (e.g. org/enlightenment/WindowManager
+ * @param[in] data custom data to set on the object (retrievable via
* e_dbus_object_data_get())
*/
EAPI E_DBus_Object *e_dbus_object_add(E_DBus_Connection *conn, const char *object_path, void *data);
/**
* Free a dbus object
*
- * @param obj the object to free
+ * @param[in] obj the object to free
*/
EAPI void e_dbus_object_free(E_DBus_Object *obj);
/**
* @brief Fetch the data pointer for a dbus object
- * @param obj the dbus object
+ *
+ * @param[in] obj the dbus object
*/
EAPI void *e_dbus_object_data_get(E_DBus_Object *obj);
/**
* @brief Get the dbus connection of a dbus object
- * @param obj the dbus object
+ *
+ * @param[in] obj the dbus object
*/
EAPI E_DBus_Connection *e_dbus_object_conn_get(E_DBus_Object *obj);
/**
* @brief Get the path of a dbus object
- * @param obj the dbus object
+ *
+ * @param[in] obj the dbus object
*/
EAPI const char *e_dbus_object_path_get(E_DBus_Object *obj);
/**
* @brief Get the interfaces of a dbus object
- * @param obj the dbus object
+ *
+ * @param[in] obj the dbus object
*/
EAPI const Eina_List *e_dbus_object_interfaces_get(E_DBus_Object *obj);
/**
* @brief Sets the callback to fetch properties from an object
- * @param obj the object
- * @param func the callback
+ *
+ * @param[in] obj the object
+ * @param[in] func the callback
*/
EAPI void e_dbus_object_property_get_cb_set(E_DBus_Object *obj, E_DBus_Object_Property_Get_Cb func);
/**
* @brief Sets the callback to set properties on an object
- * @param obj the object
- * @param func the callback
+ *
+ * @param[in] obj the object
+ * @param[in] func the callback
*/
EAPI void e_dbus_object_property_set_cb_set(E_DBus_Object *obj, E_DBus_Object_Property_Set_Cb func);
/**
* @brief Send a DBus message with callbacks
- * @param conn The DBus connection
- * @param msg The message to send
- * @param cb_return A callback function for returns (only used if @a msg is a method-call)
- * @param timeout A timeout in milliseconds, after which a synthetic error will be generated
- * @param data custom data to pass in to the callback
+ *
+ * @param[in] conn The DBus connection
+ * @param[in] msg The message to send
+ * @param[in] cb_return A callback function for returns (only used if @a msg is a method-call)
+ * @param[in] timeout A timeout in milliseconds, after which a synthetic error will be generated
+ * @param[in] data custom data to pass in to the callback
* @return a DBusPendingCall that can be used to cancel the current call
*/
EAPI DBusPendingCall *e_dbus_message_send(E_DBus_Connection *conn, DBusMessage *msg, E_DBus_Method_Return_Cb cb_return, int timeout, void *data);
/**
* Add a signal handler
*
- * @param conn the dbus connection
- * @param sender name of the signal's sender
- * @param path the object path of the signal's sender
- * @param interface the signal's interface
- * @param member the signal's name
- * @param cb_signal a callback to call when the signal is received
- * @param data custom data to pass in to the callback
+ * @param[in] conn the dbus connection
+ * @param[in] sender name of the signal's sender
+ * @param[in] path the object path of the signal's sender
+ * @param[in] interface the signal's interface
+ * @param[in] member the signal's name
+ * @param[in] cb_signal a callback to call when the signal is received
+ * @param[in] data custom data to pass in to the callback
*/
EAPI E_DBus_Signal_Handler *e_dbus_signal_handler_add(E_DBus_Connection *conn, const char *sender, const char *path, const char *interface, const char *member, E_DBus_Signal_Cb cb_signal, void *data);
/**
* Delete a signal handler
*
- * @param conn the dbus connection
- * @param sh the handler to delete
+ * @param[in] conn the dbus connection
+ * @param[in] sh the handler to delete
*/
EAPI void e_dbus_signal_handler_del(E_DBus_Connection *conn, E_DBus_Signal_Handler *sh);
/**
* Calls the Introspect method on a given bus and object path.
- * @param conn The dbus connection to use
- * @param bus The bus to call the method on
- * @param object_path The path of the bus to call on
- * @param cb_return The callback to call on reply from dbus
- * @param data The data to associate with the callback
+ *
+ * @param[in] conn The dbus connection to use
+ * @param[in] bus The bus to call the method on
+ * @param[in] object_path The path of the bus to call on
+ * @param[in] cb_return The callback to call on reply from dbus
+ * @param[in] data The data to associate with the callback
* @return A pending dbus call
*/
EAPI DBusPendingCall *e_dbus_introspect(E_DBus_Connection *conn, const char *bus,
/**
* Ping the dbus peer
*
- * @param conn the dbus connection
- * @param destination the bus name that the object is on
- * @param path the object path
- * @param cb_return a callback for a successful return
- * @param data data to pass to the callbacks
+ * @param[in] conn the dbus connection
+ * @param[in] destination the bus name that the object is on
+ * @param[in] path the object path
+ * @param[in] cb_return a callback for a successful return
+ * @param[in] data data to pass to the callbacks
*/
EAPI DBusPendingCall *e_dbus_peer_ping(E_DBus_Connection *conn, const char *destination,
const char *path, E_DBus_Method_Return_Cb cb_return,
/**
* Get the UUID of the peer
*
- * @param conn the dbus connection
- * @param destination the bus name that the object is on
- * @param path the object path
- * @param cb_return a callback for a successful return
- * @param data data to pass to the callbacks
+ * @param[in] conn the dbus connection
+ * @param[in] destination the bus name that the object is on
+ * @param[in] path the object path
+ * @param[in] cb_return a callback for a successful return
+ * @param[in] data data to pass to the callbacks
*/
EAPI DBusPendingCall *e_dbus_peer_get_machine_id(E_DBus_Connection *conn,
const char *destination, const char *path,
/**
* Get the value of a property on an object
*
- * @param conn the dbus connection
- * @param destination the bus name that the object is on
- * @param path the object path
- * @param interface the interface name of the property
- * @param property the name of the property
- * @param cb_return a callback for a successful return
- * @param data data to pass to the callbacks
+ * @param[in] conn the dbus connection
+ * @param[in] destination the bus name that the object is on
+ * @param[in] path the object path
+ * @param[in] interface the interface name of the property
+ * @param[in] property the name of the property
+ * @param[in] cb_return a callback for a successful return
+ * @param[in] data data to pass to the callbacks
*/
EAPI DBusPendingCall *e_dbus_properties_get(E_DBus_Connection *conn, const char *destination,
const char *path, const char *interface,
/**
* Set the value of a property on an object
*
- * @param conn the dbus connection
- * @param destination the bus name that the object is on
- * @param path the object path
- * @param interface the interface name of the property
- * @param property the name of the property
- * @param value_type the type of the property's value
- * @param value a pointer to the value
- * @param cb_return a callback for a successful return
- * @param data data to pass to the callbacks
+ * @param[in] conn the dbus connection
+ * @param[in] destination the bus name that the object is on
+ * @param[in] path the object path
+ * @param[in] interface the interface name of the property
+ * @param[in] property the name of the property
+ * @param[in] value_type the type of the property's value
+ * @param[in] value a pointer to the value
+ * @param[in] cb_return a callback for a successful return
+ * @param[in] data data to pass to the callbacks
*/
EAPI DBusPendingCall *e_dbus_properties_set(E_DBus_Connection *conn, const char *destination,
const char *path, const char *interface,
/**
* @brief Create a callback structure
- * @param cb_func the callback function
- * @param user_data data to pass to the callback
+ *
+ * @param[in] cb_func the callback function
+ * @param[in] unmarshal_func the unmarshal function
+ * @param[in] free_func the free function
+ * @param[in] user_data data to pass to the callback
*/
EAPI E_DBus_Callback *e_dbus_callback_new(E_DBus_Callback_Func cb_func, E_DBus_Unmarshal_Func unmarshal_func, E_DBus_Free_Func free_func, void *user_data);
/**
* @brief Free a callback structure
- * @param callback the callback to free
+ *
+ * @param[in] callback the callback to free
*/
EAPI void e_dbus_callback_free(E_DBus_Callback *callback);
EAPI void e_dbus_callback_call(E_DBus_Callback *cb, void *data, DBusError *error);