diff options
Diffstat (limited to 'gusb/gusb-device-event-private.h')
-rw-r--r-- | gusb/gusb-device-event-private.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gusb/gusb-device-event-private.h b/gusb/gusb-device-event-private.h new file mode 100644 index 0000000..0e78cff --- /dev/null +++ b/gusb/gusb-device-event-private.h @@ -0,0 +1,26 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- + * + * Copyright (C) 2022 Richard Hughes <richard@hughsie.com> + * + * SPDX-License-Identifier: LGPL-2.1+ + */ + +#pragma once + +#include <gusb/gusb-device-event.h> +#include <json-glib/json-glib.h> +#include <libusb.h> + +G_BEGIN_DECLS + +GUsbDeviceEvent * +_g_usb_device_event_new(const gchar *id); +void +_g_usb_device_event_set_bytes_raw(GUsbDeviceEvent *self, gconstpointer buf, gsize bufsz); + +gboolean +_g_usb_device_event_load(GUsbDeviceEvent *self, JsonObject *json_object, GError **error); +gboolean +_g_usb_device_event_save(GUsbDeviceEvent *self, JsonBuilder *json_builder, GError **error); + +G_END_DECLS |