ipc.h revision e343f2b21a2209d5713e20ad38bbcc862897380b
1/* 2 * 3 * BlueZ - Bluetooth protocol stack for Linux 4 * 5 * Copyright (C) 2004-2007 Marcel Holtmann <marcel@holtmann.org> 6 * 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * 22 */ 23 24#include <stdint.h> 25 26#define IPC_TYPE_CONNECT 0x0001 27 28#define IPC_SOCKET_NAME "\0/org/bluez/audio" 29 30#ifndef UNIX_PATH_MAX 31#define UNIX_PATH_MAX 108 32#endif 33 34struct ipc_hdr { 35 uint16_t id; 36 uint16_t type; 37 uint16_t seqnum; 38 uint16_t length; 39} __attribute__ ((packed)); 40 41struct ipc_connect_cmd { 42 uint8_t src[6]; 43 uint8_t dst[6]; 44 uint16_t uuid; 45} __attribute__ ((packed)); 46 47struct ipc_connect_evt { 48 uint16_t id; 49} __attribute__ ((packed)); 50