From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: References: Date: Thu, 05 Apr 2007 11:29:51 +0200 Message-Id: <1175765391.5815.595.camel@violet> Mime-Version: 1.0 Subject: Re: [Bluez-devel] intercept new authentication events Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Adolfo, > Hi guys, I'm developing a java apps that exploits the BlueZ stack via JNI > and some C functions. > Now, I'd like that my app intercept the event that happens when a new remote > device wants to authenticate itself with my bt dongle (i.e. wants to trigger > the pair procedure). > I've searched in the hcitool.c file and found and found the function: > static int conn_list(int s, int dev_id, long arg) > that prints all the active connections from and to my bt dongle. But this > function is not what I'm looking for, since it is not a callback function > and most important it prints out all the connections (including data ones). > Does exist a way to know if a new remote device want to pair with my bt > dongle? And if so, what are the functions I need to look at? you can register a default passkey agent via D-Bus and then you know when a device wants to pair. Otherwise there are no hooks. Regards Marcel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel