ObexFTP  0.24
Macros | Functions
multi_cobex.c File Reference

Detect, initiate and run OBEX over custom serial port protocols (Siemens, Ericsson, New-Siemens, Motorola, Generic). More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/select.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <openobex/obex.h>
#include "multi_cobex.h"
#include "multi_cobex_private.h"
#include <bfb/bfb.h>
#include <bfb/bfb_io.h>
#include <common.h>

Macros

#define _GNU_SOURCE
 

Functions

int cobex_connect (obex_t *self, void *data)
 Called from OBEX-lib to set up a connection. More...
 
int cobex_disconnect (obex_t *self, void *data)
 Called from OBEX-lib to tear down a connection. More...
 
int cobex_write (obex_t *self, void *data, uint8_t *buffer, int length)
 Called from OBEX-lib when data needs to be written. More...
 
int cobex_handleinput (obex_t *self, void *data, int timeout)
 Called when input data is needed. More...
 
obex_ctrans_t * cobex_ctrans (const char *tty)
 Create a new multi cobex instance for a given TTY. More...
 
void cobex_free (obex_ctrans_t *ctrans)
 Free all data related to a multi cobex instance. More...
 

Detailed Description

Detect, initiate and run OBEX over custom serial port protocols (Siemens, Ericsson, New-Siemens, Motorola, Generic).

ObexFTP library - language bindings for OBEX file transfer.

Copyright (c) 2002-2007 Christian W. Zuckschwerdt zany@.nosp@m.triq.nosp@m..net

ObexFTP is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with ObexFTP. If not, see http://www.gnu.org/.

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Function Documentation

◆ cobex_connect()

int cobex_connect ( obex_t *  self,
void *  data 
)

Called from OBEX-lib to set up a connection.

◆ cobex_ctrans()

obex_ctrans_t* cobex_ctrans ( const char *  tty)

Create a new multi cobex instance for a given TTY.

Parameters
ttythe TTY to use. Defaults to the first serial TTY if NULL.

◆ cobex_disconnect()

int cobex_disconnect ( obex_t *  self,
void *  data 
)

Called from OBEX-lib to tear down a connection.

◆ cobex_free()

void cobex_free ( obex_ctrans_t *  ctrans)

Free all data related to a multi cobex instance.

◆ cobex_handleinput()

int cobex_handleinput ( obex_t *  self,
void *  data,
int  timeout 
)

Called when input data is needed.

◆ cobex_write()

int cobex_write ( obex_t *  self,
void *  data,
uint8_t *  buffer,
int  length 
)

Called from OBEX-lib when data needs to be written.