File: transport.h

package info (click to toggle)
bluez 5.83-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 25,664 kB
  • sloc: ansic: 471,418; python: 4,751; sh: 4,580; makefile: 1,042; xml: 126
file content (26 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 *
 *  OBEX Server
 *
 *  Copyright (C) 2012 Intel Corporation
 *
 *
 */

typedef void (*obc_transport_func)(GIOChannel *io, GError *err,
							gpointer user_data);

struct obc_transport {
	const char *name;
	guint (*connect) (const char *source, const char *destination,
				const char *service, uint16_t port,
				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);
void obc_transport_unregister(struct obc_transport *transport);
struct obc_transport *obc_transport_find(const char *name);