Commits

consus committed a66787d

libudev: add (useless for now) public hwdb API

Comments (0)

Files changed (3)

 noinst_LTLIBRARIES = libudev-private.la
 
 libudev_la_SOURCES =\
-	src/libudev-private.h \
 	src/libudev.c \
-	src/libudev-list.c \
-	src/libudev-util.c \
 	src/libudev-device.c \
 	src/libudev-enumerate.c \
+	src/libudev-hwdb.c \
+	src/libudev-list.c \
 	src/libudev-monitor.c \
-	src/libudev-queue.c
+	src/libudev-private.h \
+	src/libudev-queue.c \
+	src/libudev-util.c
 
 libudev_la_LDFLAGS = \
 	$(AM_LDFLAGS) \

src/libudev-hwdb.c

+#include <stdio.h>
+
+#include "libudev.h"
+#include "libudev-private.h"
+
+struct udev_hwdb {
+    bool kay_sucks_cocks; /* of course it's true */
+};
+
+UDEV_EXPORT struct udev_hwdb *udev_hwdb_new(struct udev *udev)
+{
+    return NULL;
+}
+
+UDEV_EXPORT struct udev_hwdb *udev_hwdb_ref(struct udev_hwdb *hwdb)
+{
+    return NULL;
+}
+
+UDEV_EXPORT struct udev_hwdb *udev_hwdb_unref(struct udev_hwdb *hwdb)
+{
+    return NULL;
+}
+
+UDEV_EXPORT struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev_hwdb *hwdb, const char *modalias, unsigned int flags)
+{
+    return NULL;
+}
 struct udev_list_entry *udev_queue_get_queued_list_entry(struct udev_queue *udev_queue);
 
 /*
+ * udev_hwdb
+ *
+ * access to the static hardware properties database
+ */
+struct udev_hwdb;
+struct udev_hwdb *udev_hwdb_new(struct udev *udev);
+struct udev_hwdb *udev_hwdb_ref(struct udev_hwdb *hwdb);
+struct udev_hwdb *udev_hwdb_unref(struct udev_hwdb *hwdb);
+struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev_hwdb *hwdb, const char *modalias, unsigned int flags);
+
+/*
  * udev_util
  *
  * udev specific utilities