blob: 1adec658d2e6742d00210b5da3edb87aee8cfe77 [file] [log] [blame]
// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
/*
* Copyright (C) 2024 Amlogic, Inc. All rights reserved
*/
#ifndef BINC_DESCRIPTOR_H
#define BINC_DESCRIPTOR_H
#include <gio/gio.h>
#include "forward_decl.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*OnDescReadCallback)(Device *device, Descriptor *descriptor, const GByteArray *byteArray, const GError *error);
typedef void (*OnDescWriteCallback)(Device *device, Descriptor *descriptor, const GByteArray *byteArray, const GError *error);
void binc_descriptor_read(Descriptor *descriptor);
void binc_descriptor_write(Descriptor *descriptor, const GByteArray *byteArray);
const char *binc_descriptor_get_uuid(const Descriptor *descriptor);
const char *binc_descriptor_to_string(const Descriptor *descriptor);
Characteristic *binc_descriptor_get_char(const Descriptor *descriptor);
Device *binc_descriptor_get_device(const Descriptor *descriptor);
#ifdef __cplusplus
}
#endif
#endif //BINC_DESCRIPTOR_H