mirror of
				https://git.proxmox.com/git/fwupd
				synced 2025-11-04 07:13:36 +00:00 
			
		
		
		
	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.
		
			
				
	
	
		
			28 lines
		
	
	
		
			727 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			727 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (C) 2021 Richard Hughes <richard@hughsie.com>
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: LGPL-2.1+
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "fu-udev-device.h"
 | 
						|
 | 
						|
#define FU_TYPE_I2C_DEVICE (fu_i2c_device_get_type())
 | 
						|
G_DECLARE_DERIVABLE_TYPE(FuI2cDevice, fu_i2c_device, FU, I2C_DEVICE, FuUdevDevice)
 | 
						|
 | 
						|
struct _FuI2cDeviceClass {
 | 
						|
	FuUdevDeviceClass parent_class;
 | 
						|
};
 | 
						|
 | 
						|
guint
 | 
						|
fu_i2c_device_get_bus_number(FuI2cDevice *self);
 | 
						|
void
 | 
						|
fu_i2c_device_set_bus_number(FuI2cDevice *self, guint bus_number);
 | 
						|
gboolean
 | 
						|
fu_i2c_device_read(FuI2cDevice *self, guint8 *buf, gsize bufsz, GError **error)
 | 
						|
    G_GNUC_WARN_UNUSED_RESULT;
 | 
						|
gboolean
 | 
						|
fu_i2c_device_write(FuI2cDevice *self, const guint8 *buf, gsize bufsz, GError **error)
 | 
						|
    G_GNUC_WARN_UNUSED_RESULT;
 |