diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-21 03:19:07 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-21 03:19:07 +0000 | 
| commit | 1c9948d54b407ce9f80a41f8fc3aa2fec2aa3400 (patch) | |
| tree | 6b554473df16d45434fef9c2ebe3bdf7a61b8b6e /transfer/session.h | |
| parent | 3240a5476f0c18bc0a30b0e0c5d995b55320ae7e (diff) | |
First attempts for session and process handling
Diffstat (limited to 'transfer/session.h')
| -rw-r--r-- | transfer/session.h | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/transfer/session.h b/transfer/session.h index bc4c495a..c5a946b4 100644 --- a/transfer/session.h +++ b/transfer/session.h @@ -20,3 +20,21 @@   *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA   *   */ + +#include <bluetooth/bluetooth.h> + +struct session_data { +	DBusConnection *conn; +	DBusMessage *msg; +	uid_t uid; +	bdaddr_t bdaddr; +	uint8_t channel; +	char *identifier; +	GIOChannel *rfcomm_io; +}; + +struct session_data *session_create(DBusConnection *conn, DBusMessage *msg); +void session_destroy(struct session_data *session); + +const char *session_connect(struct session_data *session, +				const char *address, const char *pathname); | 
