mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2025-08-28 18:23:54 +02:00
154 lines
3.2 KiB
C
154 lines
3.2 KiB
C
/*
|
|
* Unix interface definitions
|
|
*
|
|
* Copyright 2024 Vibhav Pant
|
|
* Copyright 2025 Vibhav Pant
|
|
*
|
|
* This library 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.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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 this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#ifndef __WINE_WINEBTH_UNIXLIB_H
|
|
#define __WINE_WINEBTH_UNIXLIB_H
|
|
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
|
|
#include <bthsdpdef.h>
|
|
#include <bluetoothapis.h>
|
|
|
|
#include <wine/unixlib.h>
|
|
#include <wine/debug.h>
|
|
|
|
#include "winebth_priv.h"
|
|
|
|
#ifdef WINE_UNIX_LIB
|
|
typedef struct unix_name *unix_name_t;
|
|
typedef void *unix_handle_t;
|
|
#else
|
|
typedef UINT_PTR unix_name_t;
|
|
typedef UINT_PTR unix_handle_t;
|
|
#endif
|
|
|
|
struct bluetooth_adapter_free_params
|
|
{
|
|
unix_name_t adapter;
|
|
};
|
|
|
|
struct bluetooth_device_free_params
|
|
{
|
|
unix_name_t device;
|
|
};
|
|
|
|
struct bluetooth_gatt_service_free_params
|
|
{
|
|
unix_name_t service;
|
|
};
|
|
|
|
struct bluetooth_gatt_characteristic_free_params
|
|
{
|
|
unix_name_t characteristic;
|
|
};
|
|
|
|
struct bluetooth_device_disconnect_params
|
|
{
|
|
unix_name_t device;
|
|
};
|
|
|
|
struct bluetooth_adapter_get_unique_name_params
|
|
{
|
|
unix_name_t adapter;
|
|
|
|
char *buf;
|
|
SIZE_T buf_size;
|
|
};
|
|
|
|
struct bluetooth_adapter_set_prop_params
|
|
{
|
|
unix_name_t adapter;
|
|
ULONG prop_flag;
|
|
|
|
union winebluetooth_property *prop;
|
|
};
|
|
|
|
struct bluetooth_adapter_start_discovery_params
|
|
{
|
|
unix_name_t adapter;
|
|
};
|
|
|
|
struct bluetooth_adapter_stop_discovery_params
|
|
{
|
|
unix_name_t adapter;
|
|
};
|
|
|
|
struct bluetooth_adapter_remove_device_params
|
|
{
|
|
unix_name_t adapter;
|
|
unix_name_t device;
|
|
};
|
|
|
|
struct bluetooth_auth_send_response_params
|
|
{
|
|
unix_name_t device;
|
|
BLUETOOTH_AUTHENTICATION_METHOD method;
|
|
UINT32 numeric_or_passkey;
|
|
BOOL negative;
|
|
BOOL *authenticated;
|
|
};
|
|
|
|
struct bluetooth_device_start_pairing_params
|
|
{
|
|
unix_name_t device;
|
|
IRP *irp;
|
|
};
|
|
|
|
struct bluetooth_get_event_params
|
|
{
|
|
struct winebluetooth_event result;
|
|
};
|
|
|
|
enum bluetoothapis_funcs
|
|
{
|
|
unix_bluetooth_init,
|
|
unix_bluetooth_shutdown,
|
|
|
|
unix_bluetooth_adapter_set_prop,
|
|
unix_bluetooth_adapter_get_unique_name,
|
|
unix_bluetooth_adapter_start_discovery,
|
|
unix_bluetooth_adapter_stop_discovery,
|
|
unix_bluetooth_adapter_remove_device,
|
|
unix_bluetooth_adapter_free,
|
|
|
|
unix_bluetooth_device_free,
|
|
unix_bluetooth_device_disconnect,
|
|
unix_bluetooth_device_start_pairing,
|
|
|
|
unix_bluetooth_auth_agent_enable_incoming,
|
|
unix_bluetooth_auth_send_response,
|
|
|
|
unix_bluetooth_gatt_service_free,
|
|
|
|
unix_bluetooth_gatt_characteristic_free,
|
|
|
|
unix_bluetooth_get_event,
|
|
|
|
unix_funcs_count
|
|
};
|
|
|
|
#define UNIX_BLUETOOTH_CALL( func, params ) WINE_UNIX_CALL( unix_##func, params )
|
|
|
|
#endif /* __WINE_WINEBTH_UNIXLIB_H */
|