[Petter Reinholdtsen]
> Anyway, I believe the code in hwinfo-8.38/src/hd/edd.c need a complete
> rewrite to work with the new libsysfs. :(

I looked in the old library, and found the structs and functions
needed by hwinfo there.  When I inserted the struct in hd_int.h, the
code built but failed to link as the functions listed where missing:

struct sysfs_link {
  char name[SYSFS_NAME_LEN];
  char path[SYSFS_PATH_MAX];
  char target[SYSFS_PATH_MAX];
};
struct sysfs_directory {
  char name[SYSFS_NAME_LEN];
  char path[SYSFS_PATH_MAX];

  /* Private: for internal use only */
  struct dlist *subdirs;
  struct dlist *links;
  struct dlist *attributes;
};

/*
sysfs_open_directory
sysfs_close_directory
sysfs_read_all_subdirs
sysfs_get_directory_attribute
sysfs_get_directory_link
sysfs_get_classdev_driver
sysfs_open_subsystem_list
*/

Perhaps it will work to copy these functions from the old library into
the hwinfo source?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to