OSDN Git Service

obexd: Add getattribute to obc_transport
authorChristian Fetzer <christian.fetzer@bmw-carit.de>
Fri, 12 Apr 2013 09:29:02 +0000 (11:29 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 17 Apr 2013 10:31:05 +0000 (13:31 +0300)
This adds a getattribute function pointer to obc_transport, which allows
transports to provide the session specific service attributes.

obexd/client/transport.h

index 5140840..b035cfc 100644 (file)
@@ -31,6 +31,7 @@ struct obc_transport {
                                obc_transport_func func, void *user_data);
        int (*getpacketopt) (GIOChannel *io, int *tx_mtu, int *rx_mtu);
        void (*disconnect) (guint id);
+       const void *(*getattribute) (guint id, int attribute_id);
 };
 
 int obc_transport_register(struct obc_transport *transport);