diff --git a/docs/reference/meson.build b/docs/reference/meson.build index c25c385..d30ed8b 100644 --- a/docs/reference/meson.build +++ b/docs/reference/meson.build @@ -10,7 +10,7 @@ gnome.gtkdoc('umockdev', content_files: [version_xml], gobject_typesfile: 'umockdev.types', scan_args: ['--ignore-decorators', 'VALA_EXTERN'], - ignore_headers: ['uevent_sender.h', 'ioctl.h', 'ioctl_tree.h', 'debug.h'], + ignore_headers: ['uevent_sender.h', 'cros_ec.h', 'ioctl_tree.h', 'debug.h'], dependencies: [glib, gobject, declare_dependency(link_with : [umockdev_lib])], install: true, ) diff --git a/src/ioctl.h b/src/cros_ec.h similarity index 88% rename from src/ioctl.h rename to src/cros_ec.h index 8454797..8b8874c 100644 --- a/src/ioctl.h +++ b/src/cros_ec.h @@ -1,5 +1,5 @@ -#ifndef __IOCTL_H -#define __IOCTL_H +#ifndef __CROS_EC_H +#define __CROS_EC_H #include diff --git a/src/ioctl.vapi b/src/ioctl.vapi index f22827b..1fa6dfa 100644 --- a/src/ioctl.vapi +++ b/src/ioctl.vapi @@ -132,9 +132,9 @@ namespace Ioctl { uint8 value[HID_MAX_DESCRIPTOR_SIZE]; } - [CCode (cheader_filename = "ioctl.h")] + [CCode (cheader_filename = "cros_ec.h")] public const int CROS_EC_DEV_IOCXCMD_V2; - [CCode (cname = "struct cros_ec_command_v2", cheader_filename = "ioctl.h")] + [CCode (cname = "struct cros_ec_command_v2", cheader_filename = "cros_ec.h")] public struct cros_ec_command_v2 { uint32 version; uint32 command; diff --git a/src/ioctl_tree.c b/src/ioctl_tree.c index b50772a..fe34664 100644 --- a/src/ioctl_tree.c +++ b/src/ioctl_tree.c @@ -29,7 +29,7 @@ #include "debug.h" #include "utils.h" -#include "ioctl.h" +#include "cros_ec.h" #include "ioctl_tree.h" #define TRUE 1