]> git.pld-linux.org Git - packages/bluez-pin.git/blob - bluez-pin-dbus.patch
- pl.po update
[packages/bluez-pin.git] / bluez-pin-dbus.patch
1 --- bluez-pin-0.26/Makefile.orig        2005-10-29 00:34:42.105626656 +0200
2 +++ bluez-pin-0.26/Makefile     2005-10-29 00:12:31.352931816 +0200
3 @@ -14,7 +14,7 @@
4  
5  CFLAGS += -O2 -g
6  
7 -CFLAGS += `pkg-config --cflags gtk+-2.0 libglade-2.0 dbus-glib-1 gconf-2.0` -DGTK_DISABLE_DEPRECATED -DDBUS_API_SUBJECT_TO_CHANGE
8 +CFLAGS += `pkg-config --cflags gtk+-2.0 libglade-2.0 dbus-glib-1 gconf-2.0` -DGTK_DISABLE_DEPRECATED -DDBUS_API_SUBJECT_TO_CHANGE -DHAVE_DBUS_MESSAGE_ITER_GET_BASIC
9  LDFLAGS += `pkg-config --libs gtk+-2.0 libglade-2.0 dbus-glib-1 gconf-2.0` -lbluetooth
10  CFLAGS += -Wall
11  
12 --- bluez-pin-0.26/main.c.orig  2005-09-05 21:11:20.000000000 +0200
13 +++ bluez-pin-0.26/main.c       2005-10-29 00:07:57.466568872 +0200
14 @@ -47,7 +47,7 @@
15      return bluez_pin_handle_dbus_request (connection, message);
16  
17    if (dbus_message_is_signal (message,
18 -                              DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL,
19 +                              DBUS_INTERFACE_LOCAL,
20                                "Disconnected"))
21      exit (0);
22    
23 @@ -84,7 +84,7 @@
24    dbus_connection_register_object_path (connection, new_object_path, &dbus_vtable, NULL);
25    dbus_connection_register_object_path (connection, old_object_path, &dbus_vtable, NULL);
26  
27 -  dbus_bus_acquire_service (connection, NEW_SERVICE_NAME, 0, &error);
28 +  dbus_bus_request_name (connection, NEW_SERVICE_NAME, 0, &error);
29    if (dbus_error_is_set (&error))
30      {
31        fprintf (stderr, "Failed to acquire %s service: %s\n", NEW_SERVICE_NAME, error.message);
32 @@ -92,7 +92,7 @@
33        errors++;
34      }
35  
36 -  dbus_bus_acquire_service (connection, OLD_SERVICE_NAME, 0, &error);
37 +  dbus_bus_request_name (connection, OLD_SERVICE_NAME, 0, &error);
38    if (dbus_error_is_set (&error))
39      {
40        fprintf (stderr, "Failed to acquire %s service: %s\n", OLD_SERVICE_NAME, error.message);
41 --- bluez-pin-0.26/pin-dbus.c.orig      2005-09-05 21:09:13.000000000 +0200
42 +++ bluez-pin-0.26/pin-dbus.c   2005-10-29 00:08:41.074939392 +0200
43 @@ -42,7 +42,7 @@
44  #ifndef HAVE_DBUS_MESSAGE_ITER_GET_BASIC
45    DBusMessageIter iter;
46  
47 -  dbus_message_append_iter_init (message, &iter);
48 +  dbus_message_iter_init_append (message, &iter);
49    if (pin)
50      dbus_message_iter_append_string (&iter, pin);
51  #else
This page took 0.028899 seconds and 3 git commands to generate.