summaryrefslogtreecommitdiff
path: root/gusb/gusb-interface-private.h
blob: dcdfde160d6d9d09cfa08e804f9f3b35699e60c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 *
 * Copyright (C) 2015 Richard Hughes <richard@hughsie.com>
 *
 * SPDX-License-Identifier: LGPL-2.1+
 */

#pragma once

#include <gusb/gusb-interface.h>
#include <json-glib/json-glib.h>
#include <libusb.h>

G_BEGIN_DECLS

GUsbInterface *
_g_usb_interface_new(const struct libusb_interface_descriptor *iface);

gboolean
_g_usb_interface_load(GUsbInterface *self, JsonObject *json_object, GError **error);
gboolean
_g_usb_interface_save(GUsbInterface *self, JsonBuilder *json_builder, GError **error);

G_END_DECLS