Enlightenment CVS committal Author : rephorm Project : e17 Module : proto
Dir : e17/proto/e_dbus/src/bin Modified Files: .cvsignore hal.c nm.c test.c Log Message: use E_DBus_Connection in the api instead of DBusConnection add refcount of E_DBus_Connection share connections to the system/session bus (e_dbus_bus_get() will return a ref if it is has one) =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/bin/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- .cvsignore 15 Mar 2007 09:04:47 -0000 1.2 +++ .cvsignore 22 Mar 2007 01:44:12 -0000 1.3 @@ -4,3 +4,4 @@ .libs e_dbus_hal e_dbus_test +e_dbus_nm =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/bin/hal.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- hal.c 20 Mar 2007 06:34:13 -0000 1.2 +++ hal.c 22 Mar 2007 01:44:12 -0000 1.3 @@ -10,7 +10,7 @@ /* test app */ -static DBusConnection *conn; +static E_DBus_Connection *conn; static int mount_id = 0; #define DEVICE_TYPE_STORAGE 1 @@ -815,7 +815,7 @@ ecore_list_destroy(storage_devices); ecore_list_destroy(volumes); ewl_shutdown(); - e_dbus_connection_close(conn); + e_dbus_connection_unref(conn); e_dbus_shutdown(); ecore_string_shutdown(); ecore_shutdown(); =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/bin/nm.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- nm.c 21 Mar 2007 10:31:16 -0000 1.1 +++ nm.c 22 Mar 2007 01:44:12 -0000 1.2 @@ -44,8 +44,6 @@ main(int argc, char **argv) { NM_Manager *app; - DBusConnection *conn; - ecore_init(); ecore_string_init(); e_dbus_init(); @@ -62,6 +60,9 @@ e_nm_get_devices(app->ctx, cb_manager_get_devices, app); ecore_main_loop_begin(); + + e_nm_free(app->ctx); + free(app); e_dbus_shutdown(); ecore_string_shutdown(); ecore_shutdown(); =================================================================== RCS file: /cvs/e/e17/proto/e_dbus/src/bin/test.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- test.c 15 Mar 2007 08:59:18 -0000 1.1 +++ test.c 22 Mar 2007 01:44:12 -0000 1.2 @@ -62,7 +62,7 @@ } int -_setup(DBusConnection *conn) +_setup(E_DBus_Connection *conn) { E_DBus_Object *repeater; repeater = e_dbus_object_add(conn, "/org/e/Repeater", NULL); @@ -73,7 +73,7 @@ int main (int argc, char ** argv) { - DBusConnection *conn; + E_DBus_Connection *conn; ecore_init(); e_dbus_init(); @@ -82,7 +82,7 @@ if (conn) { if (_setup(conn)) ecore_main_loop_begin(); - e_dbus_connection_close(conn); + e_dbus_connection_unref(conn); } e_dbus_shutdown(); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs