summaryrefslogtreecommitdiff
path: root/gusb/gusb-device-event.h
diff options
context:
space:
mode:
Diffstat (limited to 'gusb/gusb-device-event.h')
-rw-r--r--gusb/gusb-device-event.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/gusb/gusb-device-event.h b/gusb/gusb-device-event.h
new file mode 100644
index 0000000..f44db43
--- /dev/null
+++ b/gusb/gusb-device-event.h
@@ -0,0 +1,24 @@
+/* -*- 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 <gio/gio.h>
+
+G_BEGIN_DECLS
+
+#define G_USB_TYPE_DEVICE_EVENT (g_usb_device_event_get_type())
+G_DECLARE_FINAL_TYPE(GUsbDeviceEvent, g_usb_device_event, G_USB, DEVICE_EVENT, GObject)
+
+const gchar *
+g_usb_device_event_get_id(GUsbDeviceEvent *self);
+GBytes *
+g_usb_device_event_get_bytes(GUsbDeviceEvent *self);
+void
+g_usb_device_event_set_bytes(GUsbDeviceEvent *self, GBytes *bytes);
+
+G_END_DECLS