1/*
2 * client.c
3 */
4
5/*-
6 * Copyright (c) 2006 Maksim Yevmenkin <m_evmenkin@yahoo.com>
7 * All rights reserved.
8 *
--- 14 unchanged lines hidden (view full) ---
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $Id: client.c,v 1.7 2006/09/07 21:06:53 max Exp $
31 * $FreeBSD: head/usr.sbin/bluetooth/bthidd/client.c 162494 2006-09-21 02:32:28Z emax $
32 */
33
34#include <sys/queue.h>
35#include <assert.h>
36#include <bluetooth.h>
37#include <errno.h>
38#include <fcntl.h>
39#include <stdio.h>
--- 74 unchanged lines hidden (view full) ---
114 * Process connect on the socket
115 */
116
117int32_t
118client_connect(bthid_server_p srv, int32_t fd)
119{
120 bthid_session_p s;
121 hid_device_p d;
122 int32_t error;
123 socklen_t len;
124
125 assert(srv != NULL);
126 assert(fd >= 0);
127
128 s = session_by_fd(srv, fd);
129 assert(s != NULL);
130
131 d = get_hid_device(&s->bdaddr);
--- 125 unchanged lines hidden ---
2 * client.c
3 */
4
5/*-
6 * Copyright (c) 2006 Maksim Yevmenkin <m_evmenkin@yahoo.com>
7 * All rights reserved.
8 *
--- 14 unchanged lines hidden (view full) ---
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $Id: client.c,v 1.7 2006/09/07 21:06:53 max Exp $
31 * $FreeBSD: head/usr.sbin/bluetooth/bthidd/client.c 162494 2006-09-21 02:32:28Z emax $
32 */
33
34#include <sys/queue.h>
35#include <assert.h>
36#include <bluetooth.h>
37#include <errno.h>
38#include <fcntl.h>
39#include <stdio.h>
--- 74 unchanged lines hidden (view full) ---
114 * Process connect on the socket
115 */
116
117int32_t
118client_connect(bthid_server_p srv, int32_t fd)
119{
120 bthid_session_p s;
121 hid_device_p d;
122 int32_t error;
123 socklen_t len;
124
125 assert(srv != NULL);
126 assert(fd >= 0);
127
128 s = session_by_fd(srv, fd);
129 assert(s != NULL);
130
131 d = get_hid_device(&s->bdaddr);
--- 125 unchanged lines hidden ---