fwupd/libfwupdplugin/fu-bluez-device.h
Richard Hughes 91bf84f7a0 trivial: Reduce runtime RSS requirement for each device subclass
Remove the FuDeviceClass padding, as this library now loaded using an rpath
rather than a shared library with a static API. This matches what we did for
the FuFirmwareClass objects a while ago.
2023-01-10 20:43:31 +00:00

28 lines
842 B
C

/*
* Copyright (C) 2021 Ricardo Cañuelo <ricardo.canuelo@collabora.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include "fu-device.h"
#define FU_TYPE_BLUEZ_DEVICE (fu_bluez_device_get_type())
G_DECLARE_DERIVABLE_TYPE(FuBluezDevice, fu_bluez_device, FU, BLUEZ_DEVICE, FuDevice)
struct _FuBluezDeviceClass {
FuDeviceClass parent_class;
};
GByteArray *
fu_bluez_device_read(FuBluezDevice *self, const gchar *uuid, GError **error);
gchar *
fu_bluez_device_read_string(FuBluezDevice *self, const gchar *uuid, GError **error);
gboolean
fu_bluez_device_write(FuBluezDevice *self, const gchar *uuid, GByteArray *buf, GError **error);
gboolean
fu_bluez_device_notify_start(FuBluezDevice *self, const gchar *uuid, GError **error);
gboolean
fu_bluez_device_notify_stop(FuBluezDevice *self, const gchar *uuid, GError **error);